From ring-default
Generates self-contained HTML artifacts with D2 diagrams, comparison tables, code diffs, dashboards, and slide decks. Opens in browser. Use for architecture overviews, complex tables, or visual reviews.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ring-default:visualizingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- User asks for a visual explanation, architecture overview, or comparison table
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:
diagram.d2, starting with the Lerian D2 preamble (in ./templates/diagram.html and ./references/libraries.md).d2 --theme=0 --dark-theme=200 --layout=elk diagram.d2 diagram.svg<?xml ...?> declaration; paste the <svg>...</svg> into .diagram-canvas.diagram.html is SVG-agnostic — it reads viewBox and works as-is.MUST Read ./templates/standard.html before generating any HTML. Copy verbatim:
<style> block (above "DO NOT MODIFY" marker)<header class="lerian-header"> with inline Lerian logo SVG<footer class="lerian-footer"> with logo, company name, "Generated with Ring"<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.
./templates/standard.html is the only copy foundation. Start every artifact from its foundation, header, footer, and date script.<!-- Artifact brief: ... -->, <!-- Visual thesis: ... -->, and <!-- Design choices: ... -->../templates/standard.html (ALWAYS first)./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) | ./templates/diagram.html | ./references/libraries.md, ./references/css-patterns.md, ./references/components.md |
| Data tables / comparisons | ./templates/data-table.html | ./references/css-patterns.md, ./references/components.md |
| Code diffs / reviews | ./templates/code-diff.html | ./references/css-patterns.md, ./references/libraries.md, ./references/responsive-nav.md, ./references/components.md |
| Slide decks / presentations | ./templates/slide-deck.html | ./references/slide-patterns.md, ./references/css-patterns.md |
| Any page with 4+ sections | - | ./references/responsive-nav.md |
| Any page using CDN libraries | - | ./references/libraries.md (NEVER use CDN URLs from memory) |
| Type | Rendering approach |
|---|---|
| Architecture (connections matter) | D2 with semantic classes, ELK layout |
| Architecture (rich card content) | CSS Grid cards + flow arrows |
| Flowchart / pipeline | D2 (elk layout; dagre alternative) |
| Sequence diagram | D2 shape: sequence_diagram |
| ER / schema | D2 shape: sql_table |
| State machine | D2 (nodes + edges, or dagre for compact states) |
| Mind map / hierarchy | D2 (nested containers) |
| Data table / comparison | HTML <table> (semantic, accessible, copy-paste) |
| Timeline / roadmap | CSS central line + cards |
| Dashboard / metrics | CSS Grid + Chart.js (CDN from libraries.md) |
| Code diff / change review | @pierre/diffs (MANDATORY - no hand-rolled CSS diff panels) |
| Slide deck | 100dvh slides using ./references/slide-patterns.md |
D2: Always start the .d2 source with the Lerian preamble (dual-theme vars + semantic classes). Apply roles with shape.class: source etc. Leave nodes unclassed to inherit the neutral theme. Render with d2 --theme=0 --dark-theme=200 --layout=elk. Copy the embed + pan/zoom pattern from ./templates/diagram.html.
Code diffs: MUST use @pierre/diffs from ./references/libraries.md. HTML strings embedded in <script> blocks: escape </script> as <\/script>.
Comparison diagrams: Default to semantic HTML tables, matrices, quadrants, or axis layouts. Generic card grids are banned unless each card encodes materially different, source-backed attributes that cannot be compared more clearly in a table, matrix, quadrant, or axis.
classes (source, process, datastore, decision, critical, external) to distinguish roles. Mark the critical path visually and explain it in nearby copy.--bg, --surface, --accent, etc.). Prefer OKLCH for new raw colors. Do not introduce pure black or pure white hex tokens.fadeUp for panels, fadeScale for source-backed counts/badges, countUp for real numbers. Respect prefers-reduced-motion.Before writing HTML, define:
Output to ~/.agent/diagrams/ with descriptive filename. For D2 diagrams, generate the .svg first, embed it, then open the page.
# macOS
open ~/.agent/diagrams/filename.html
# Linux
xdg-open ~/.agent/diagrams/filename.html
Tell the user the file path.
These reuse the foundation, templates, and references above. They are output formats, not analysis engines.
./templates/slide-deck.html + ./references/slide-patterns.md. Use when the user asks for slides or a presentation. Inventory the source first and map every item to a slide; do not drop content to fit a fixed slide count — add slides. Diagram slides embed a D2 SVG.git show, classify each as verified / corrected / unsupported / unverifiable, and correct in place with a verification summary.ring:reviewing-code (which dispatches the reviewer subagent pool) or ring:writing-plans (the planning engine). Correct composition: the engine produces findings → this mode renders them. Color language: red=removed, green=added, amber=modified/risk, blue=context.Verify before delivering:
font-family: 'Inter'--bg, --surface, --text, --accent, etc../references/components.md follows its intent, required source data, accessibility notes, and CSS referenceSOURCE_* placeholders are removed, and remaining rendered facts are replaced only with source-backed factsArtifact brief:, Visual thesis:, and Design choices: labelsmin-width: 0; overflow-wrap: break-word on panels--theme=0 --dark-theme=200<?xml?> declaration stripped); the pan/zoom shell from diagram.html is present./references/libraries.md (not from memory)@pierre/diffs (NOT hand-rolled CSS diff panels)100dvh viewport, nav chrome present, source coverage preservedSingle self-contained .html file. No external assets except CDN links. Order: standard template foundation, diagram-specific styles below the "TEMPLATE-SPECIFIC STYLES" marker, content, optional CDN libraries.
npx claudepluginhub p/lerianstudio-ring-default-defaultGenerates self-contained HTML pages for technical diagrams, architecture reviews, diff reviews, plans, and comparisons. Renders complex tables as styled HTML instead of ASCII.
Generates visual artifacts: diagrams, slide decks, diff visualizations, and plan-rendering HTML in markdown or self-contained format. For explaining code, architecture, or git diffs without a live server.
Generates self-contained HTML pages for visual explanations: diagrams, architecture overviews, diff/plan reviews, project recaps, comparison tables, and slide decks. Uses Mermaid for flowcharts and sequence diagrams, CSS grids for text-heavy layouts, and semantic HTML for data tables.