coco-research/visual-explainer
Generate self-contained HTML visual explanations for systems, code changes, plans, data, and technical concepts. Use for diagrams, architecture overviews, diff or plan reviews, project recaps, comparison tables, slide decks, and other visual explanations.
npx skills add https://github.com/coco-research/coco --skill visual-explainer
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.
~/.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;Take coco-research/visual-explainer from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.