analyzing-options
Analyzing different approaches for a task or problem with structured comparisons, effort…
Generating self-contained, Lerian-branded HTML artifacts — D2 diagrams, comparison tables/matrices, code diffs, dashboards, slide decks, and plan/diff/recap reviews — from mandatory templates, then opening them in the browser. Use for architecture overviews, any table with 4+
$ npx -y skills add LerianStudio/ring --skill visualizing --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/visualizingContext preview
The summary Claude sees to decide when to auto-load this skill.
Generating self-contained, Lerian-branded HTML artifacts — D2 diagrams, comparison tables/matrices, code diffs, dashboards, slide decks, and plan/diff/recap reviews — from mandatory templates, then opening them in the browser. Use for architecture overviews, any table with 4+
name: ring:visualizing description: "Generating self-contained, Lerian-branded HTML artifacts — D2 diagrams, comparison tables/matrices, code diffs, dashboards, slide decks, and plan/diff/recap reviews — from mandatory templates, then opening them in the browser. Use for architecture overviews, any table with 4+ rows or 3+ columns, slide presentations, or visual diff/plan/review output. Skip for simple tables that fit the terminal or text-only answers."
Do not use the markdown/prose skip when the user explicitly asks for visual, diagram, artifact, topology, comparison, map, matrix, quadrant, slides, or axis output. In those cases, generate the visual artifact unless they also explicitly ask for text-only output.
Generate self-contained HTML files for technical diagrams, visualizations, and data tables. Always open the result in the browser. Never fall back to ASCII art when this skill is loaded.
**Proactive table rendering:** If the table has 4+ rows or 3+ columns, use an HTML page. Don't wait for the user to ask.
Topology/connection diagrams are rendered by the **D2 CLI** to a static inline SVG, then embedded in the page. D2 (ELK/dagre layout) produces clean, deterministic layouts; the SVG is static, so there is no render flicker, no foreignObject breakage, and no theme-refresh bug. Dark/light is baked INTO the SVG by D2.
**Prerequisite — the `d2` binary:**
command -v d2 || brew install d2 # or: curl -fsSL https://d2lang.com/install.sh | sh
If `d2` is not installed and cannot be installed, fall back to CSS-grid card layouts (architecture.html) for structure — never to ASCII art.
**Generation flow:** 1. Write `diagram.d2`, starting with the **Lerian D2 preamble** (in `./templates/diagram.html` and `./references/libraries.md`). 2. `d2 --theme=0 --dark-theme=200 --layout=elk diagram.d2 diagram.svg` 3. Strip the leading `<?xml ...?>` declaration; paste the `<svg>...</svg>` into `.diagram-canvas`. 4. The pan/zoom engine in `diagram.html` is SVG-agnostic — it reads `viewBox` and works as-is.
**MUST Read `./templates/standard.html` before generating any HTML.** Copy verbatim: 1. Complete `<style>` block (above "DO NOT MODIFY" marker) 2. `<header class="lerian-header">` with inline Lerian logo SVG 3. `<footer class="lerian-footer">` with logo, company name, "Generated with Ring" 4. Date auto-fill `<script>`
**Fixed (cannot change):** Inter font, Lerian color palette (sunglow accent, zinc neutrals), logo, footer, dark mode. **Variable (customize per diagram):** Layout, secondary display font, background atmosphere, accent emphasis, animations.
1. Read `./templates/standard.html` (ALWAYS first) 2. Read the diagram-specific template for the selected row below 3. Read `./references/components.md` when the selected diagram row lists it or when composing reusable primitives such as summaries, legends, callouts, findings, comparison matrices, rails, source excerpts, or evidence blocks. Very simple single-diagram artifacts that use no component primitives may skip it only when their selected row does not list it.
| Diagram type | Template to read | Required references | |---|---|---| | Architecture (text-heavy, CSS cards) | `./templates/architecture.html` | `./references/css-patterns.md`, `./references/components.md` | | Architecture / flowchart / topology (D2)
Proven engineering practices, enforced through skills. Ring is a comprehensive skills library and workflow system for AI agents that transforms how AI assistants approach software development.
Repo: LerianStudio/ring
Analyzing different approaches for a task or problem with structured comparisons, effort…
Auditing a service's production readiness against Ring engineering standards across base…
Cleaning redundant and obvious comments following clean code principles while preserving…
Commit changes with scope allowlist enforcement, atomic grouping, GPG-signed conventional…
Creating a handoff document that captures session state (completed work, decisions, open…
Creating an isolated git worktree for parallel branch work: selects the directory by priority…