Generates Mermaid.js v11 diagrams — flowcharts, sequence, class, state, ER, Gantt, timelines, and 24+ types. Covers CLI rendering to SVG/PNG/PDF, JS API integration, theming, and accessibility.
Ships in mermaidjs-v11. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Create text-based diagrams using Mermaid.js v11 declarative syntax. Convert code to SVG/PNG/PDF via CLI or render in browsers/markdown files.
Basic Diagram Structure:
{diagram-type}
{diagram-content}
Common Diagram Types:
flowchart - Process flows, decision treessequenceDiagram - Actor interactions, API flowsclassDiagram - OOP structures, data modelsstateDiagram - State machines, workflowserDiagram - Database relationshipsgantt - Project timelinesjourney - User experience flowsSee references/diagram-types-core.md and references/diagram-types-planning.md / references/diagram-types-technical.md for all 24+ types.
Inline Markdown Code Blocks:
```mermaid
flowchart TD
A[Start] --> B{Decision}
B -->|Yes| C[Action]
B -->|No| D[End]
```
Configuration via Frontmatter:
```mermaid
---
theme: dark
---
flowchart LR
A --> B
```
Comments: Use %% prefix for single-line comments.
Convert .mmd files to images:
# Installation
npm install -g @mermaid-js/mermaid-cli
# Basic conversion
mmdc -i diagram.mmd -o diagram.svg
# With theme and background
mmdc -i input.mmd -o output.png -t dark -b transparent
# Custom styling
mmdc -i diagram.mmd --cssFile style.css -o output.svg
See references/cli-commands.md for Docker, flags, and troubleshooting.
See references/cli-workflows.md for config files, Node.js API, and CI/CD patterns.
HTML Embedding:
<pre class="mermaid">
flowchart TD
A[Client] --> B[Server]
</pre>
<script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
<script>mermaid.initialize({ startOnLoad: true });</script>
See references/integration-browser.md for React, Vue, and Markdown integration.
See references/integration-api.md for API methods and advanced rendering patterns.
Common Options:
theme: "default", "dark", "forest", "neutral", "base"look: "classic", "handDrawn"fontFamily: Custom font specificationsecurityLevel: "strict", "loose", "antiscript"See references/configuration-options.md for core options, layout, security.
See references/configuration-theming.md for theme variables, icons, math, accessibility.
Load references/examples-core.md, references/examples-data.md, and references/examples-advanced.md for real-world diagram patterns.
references/diagram-types-core.md - Flowchart, sequence, class, state, ER, Gantt syntaxreferences/diagram-types-planning.md - Journey, kanban, C4, architecture, pie, data vizreferences/diagram-types-technical.md - Git graph, timeline, mindmap, packet, ZenUMLreferences/configuration-options.md - Config options, layout, security, validationreferences/configuration-theming.md - Themes, theme variables, icons, math, accessibilityreferences/cli-commands.md - CLI install, commands, flags, Docker, troubleshootingreferences/cli-workflows.md - Config files, Node.js API, CI/CD workflowsreferences/integration-browser.md - HTML, React, Vue, Markdown embeddingreferences/integration-api.md - JS API methods, events, advanced patternsreferences/examples-core.md - Architecture, API docs, state machines, CI/CDreferences/examples-data.md - Database schemas, OOP class diagrams, REST mapsreferences/examples-advanced.md - Planning, C4, git branching, infra, data vizconfig.yaml (opens in a new tab)references/cli-commands.md (opens in a new tab)references/cli-workflows.md (opens in a new tab)references/configuration-options.md (opens in a new tab)references/configuration-theming.md (opens in a new tab)references/diagram-types-core.md (opens in a new tab)references/diagram-types-planning.md (opens in a new tab)references/diagram-types-technical.md (opens in a new tab)references/examples-advanced.md (opens in a new tab)references/examples-core.md (opens in a new tab)references/examples-data.md (opens in a new tab)references/integration-api.md (opens in a new tab)references/integration-browser.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/mermaidjs-v11:mermaidjs-v11from mermaidjs-v11
npx claudepluginhub kettleofketchup/kettleofskills --plugin mermaidjs-v11