/mermaid:mermaidfrom mermaid
Creates and validates Mermaid diagrams in markdown files. Supports flowcharts, sequence diagrams, state diagrams, and ER diagrams with a built-in validator.
Ships in mermaid. 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; scripts run unread.
Write Mermaid diagrams in markdown that parse cleanly. The work is done when the validator exits 0 on every file you touched:
bun ${CLAUDE_SKILL_DIR}/scripts/validate.ts <file.md>...
It prints each failing block's line and parser message. Add --json for structured output.
| Type | Directive | Use For | Reference |
|---|---|---|---|
| Flowchart | flowchart TB | Process flows, decision trees, architecture | flowchart.md |
| Sequence | sequenceDiagram | API interactions, message passing, protocols | sequence.md |
| State | stateDiagram-v2 | State machines, lifecycles | state.md |
| ER | erDiagram | Database schemas, entity relationships | er.md |
Write node and message labels in a few words, with full descriptions in the surrounding prose.
references/er.md (opens in a new tab)references/flowchart.md (opens in a new tab)references/sequence.md (opens in a new tab)references/state.md (opens in a new tab)scripts/fixtures/invalid.md (opens in a new tab)scripts/fixtures/no-mermaid.md (opens in a new tab)scripts/fixtures/valid.md (opens in a new tab)scripts/validate.test.ts (opens in a new tab)scripts/validate.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
mermaid, diagrams, markdown, flowchart, sequence-diagram, entity-relationship
npx claudepluginhub bendrucker/claude --plugin mermaidOther plugins' skills for the same job