From visual-explainer
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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/visual-explainer:visual-explainerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate self-contained HTML pages that explain systems, code changes, plans, data, and technical concepts visually. Use this skill for diagram requests, architecture overviews, diff/plan reviews, project recaps, comparison tables, slide decks, and any visual explanation.
commands/diff-review.mdcommands/fact-check.mdcommands/generate-slides.mdcommands/generate-visual-plan.mdcommands/generate-web-diagram.mdcommands/plan-review.mdcommands/project-recap.mdextension.tsreferences/css-patterns.mdreferences/libraries.mdreferences/responsive-nav.mdreferences/slide-patterns.mdtemplates/architecture.htmltemplates/data-table.htmltemplates/mermaid-flowchart.htmltemplates/slide-deck.htmlGenerate self-contained HTML pages that explain systems, code changes, plans, data, and technical concepts visually. Use this skill for diagram requests, architecture overviews, diff/plan reviews, project recaps, comparison tables, slide decks, and any visual explanation.
~/.agent/diagrams/ or the explicit eval output path. Use descriptive filenames.visual_explainer with prepare for planning/context and render only after the complete HTML document exists.Read only the references needed for the current output:
| Need | Read |
|---|---|
| Text-heavy architecture/cards | ./templates/architecture.html |
| Mermaid flowcharts, sequence, ER, state, class, C4, data flow | ./templates/mermaid-flowchart.html, Mermaid sections in ./references/libraries.md |
| Data tables, comparisons, audits | ./templates/data-table.html |
| Slide decks | ./templates/slide-deck.html, ./references/slide-patterns.md |
| CSS layout, overflow, depth, collapsibles, SVG connectors, generated images | ./references/css-patterns.md |
| Pages with 4+ major sections | ./references/responsive-nav.md |
| Prose-heavy pages | “Prose Page Elements” in css-patterns.md, typography sections in libraries.md |
| Content | Default representation |
|---|---|
| Flowchart, pipeline, state machine, decision tree | Mermaid |
| Sequence, ER/schema, class, C4, topology-focused architecture | Mermaid |
| Text-heavy architecture, module internals, implementation plans | CSS grid cards, optionally with a Mermaid overview |
| 15+ element architecture | Hybrid: small Mermaid overview + CSS detail cards |
| Comparison/audit/status matrix | Semantic HTML <table> |
| Timeline/roadmap | CSS timeline |
| Dashboard/metrics | CSS grid + charts/KPIs |
| Slide deck | 100dvh slides using slide template patterns |
theme: 'base' with custom themeVariables matching the page palette.<pre class="mermaid">.diagram-shell pattern from templates/mermaid-flowchart.html: .diagram-shell > .mermaid-wrap > .zoom-controls + .mermaid-viewport > .mermaid-canvas.flowchart TD for complex diagrams. Use LR only for simple 3–4 node linear flows.<br/> in quoted flowchart labels. Do not use escaped \n labels..node; Mermaid uses it internally. Use namespaced page classes such as .ve-card.<table>, headings, lists, <details>, captions.--bg, --surface, --border, --text, --text-dim, and 3–5 accents.#8b5cf6, #7c3aed, #a78bfa, #d946ef); no cyan+magenta+purple neon dashboard; no gradient-mesh blobs.min-width: 0 on grid/flex children, overflow-wrap: break-word for long text, and scroll containers for wide tables/code.display: flex directly on <li> when list markers matter.prefers-reduced-motion. Do not use continuous glow, pulse, or breathing effects on static content.Use slides only when explicitly requested or when a command asks for slides. Slides are a different medium, not a paginated article:
100dvh) with no page-level scrolling.slide-deck.html: prev/next controls, slide count, keyboard navigation, and carousel dots/indicators.slide-patterns.md: Title, Section Divider, Content, Split, Diagram, Dashboard, Table, Code, Quote, Full-Bleed.If surf is available, generated images may be embedded as base64 for hero banners, conceptual illustrations, or educational visuals. Skip images for data-heavy, structural, or Mermaid/CSS-suitable content. Pages must stand on CSS, typography, and diagrams without images.
Before delivery, verify:
diagram-shell with zoom/pan/expand;npx claudepluginhub nicobailon/visual-explainer --plugin visual-explainerGenerates 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 artifacts with D2 diagrams, comparison tables, code diffs, dashboards, and slide decks. Opens in browser. Use for architecture overviews, complex tables, or visual reviews.