From viz
Display Mermaid diagrams as interactive HTML pages. Activated when the user asks to visualize, diagram, chart, or draw system architecture, data flows, process workflows, sequence diagrams, class diagrams, state machines, ER diagrams, or any relationships better shown graphically. Renders as HTML by default; PNG/SVG only when explicitly requested.
How this skill is triggered — by the user, by Claude, or both
Slash command
/viz:mermaid-displayThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Render Mermaid diagrams as interactive HTML pages with zoom/pan controls, dark mode, and responsive layout.
Render Mermaid diagrams as interactive HTML pages with zoom/pan controls, dark mode, and responsive layout.
Use when:
Do NOT use when:
Based on user requirements, create valid Mermaid syntax. Choose the appropriate diagram type from references/diagram-types.md.
Wrap the Mermaid code as a markdown document:
# {Diagram Title}
```mermaid
{mermaid code}
`` `
Write this markdown content to a temp file /tmp/viz-diagram-{name}.md using the Write tool.
Then run the render script via Bash:
bash "${CLAUDE_PLUGIN_ROOT}/lib/render.sh" "/tmp/viz-diagram-{name}.md" "diagram-{name}"
Report what was created and the output path printed by the render script.
Only when the user explicitly asks for a PNG or SVG file:
/tmp/mermaid-diagram-{timestamp}.mmdreferences/render-script.sh with INPUT_FILE set to the .mmd path:
INPUT_FILE="/tmp/mermaid-diagram-{timestamp}.mmd" bash references/render-script.sh
Theme configuration for HTML output uses browser-side Mermaid.js with system dark mode auto-detection.
For PNG/SVG output, environment variables apply:
export MERMAID_OUTPUT_FORMAT=png # or svg
export MERMAID_COLOR_SCHEME=tokyo-night
See ../mermaid-theme/references/color-schemes.md for all 8 built-in schemes + custom option.
| Issue | Solution |
|---|---|
| No renderer (PNG/SVG only) | Install Node.js: brew install node |
| Invalid syntax | Check syntax, suggest testing at https://mermaid.live |
| Complex diagram unreadable | Split into multiple smaller diagrams |
references/diagram-types.mdreferences/render-script.sh../mermaid-theme/references/color-schemes.mdnpx claudepluginhub musingfox/cc-plugins --plugin vizGenerates Mermaid diagrams—flowcharts, sequence, ERD, class, state, Gantt—from text using mmdc CLI. Outputs SVG, PNG, PDF for Markdown docs and READMEs.
Creates and refines Mermaid diagrams (flowcharts, sequence, class, ER, state, Gantt) with live preview and save tools. Supports iterative workflows with theme and format options.
Generates Mermaid diagrams from text descriptions by analyzing intent to select types like activity, sequence, deployment, architecture, class, ER, or state.