/mermaid-diagrams:mermaid-diagramsfrom mermaid-diagrams
Creates, edits, and fixes Mermaid diagrams for software architecture visualization. Only activates when user explicitly requests Mermaid.
Ships in mermaid-diagrams. 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.
This skill helps create clean, well-organized Mermaid diagrams for software engineering and architecture visualization.
<when_to_use> Use this skill specifically for creating, editing, fixing, or improving Mermaid diagrams:
For simply reading or interpreting existing diagrams, proceed directly without this skill. </when_to_use>
<diagram_types>
This skill supports all major Mermaid diagram types for software engineering:
references/syntax-flowchart.mdreferences/syntax-sequence.mdreferences/syntax-class.mdreferences/syntax-er.mdreferences/syntax-state.mdreferences/syntax-c4.mdreferences/syntax-git.mdRead on demand:
references/styling.md - themes and colors, when the user asks for a look or the diagram needs emphasized elementsreferences/patterns.md - architecture patterns (microservices, hexagonal, CQRS, etc.), when the diagram shows a system design
Pre-built, well-commented templates are available in assets/templates/:
flowchart-template.md - Organized flowchart with sectionssequence-template.md - Sequence diagram with best practicesclass-template.md - Domain model class diagramer-template.md - Database schema ER diagramUse templates when:
<best_practices>
Use the same principles as code:
%% to explain sectionsExample:
flowchart TB
%% =================================================================
%% USER AUTHENTICATION FLOW
%% =================================================================
%% -----------------------------------------------------------------
%% Entry Point
%% -----------------------------------------------------------------
Start[User enters credentials]
%% -----------------------------------------------------------------
%% Validation
%% -----------------------------------------------------------------
Validate[Validate input format]
CheckDB{Credentials valid?}
%% ... rest of diagram
For large diagrams:
Structure pattern:
%% Section 1: Definition
[define elements]
%% Section 2: Connections
[define relationships]
%% Section 3: Styling
[define styles]
When diagrams get large:
Before finalizing any diagram, check:
<syntax_reference>
%% Use quotes for special characters
A["Function with (parentheses)"]
B["Text with [brackets]"]
%% Or use HTML entities
C[getData#40;#41;] %% getData()
Flowcharts:
--> solid arrow-.-> dotted arrow==> thick arrowClass diagrams:
<|-- inheritance*-- compositiono-- aggregation--> association..> dependencyER diagrams:
||--|| one-to-one||--o{ one-to-many}o--o{ many-to-many
</syntax_reference>"Parse error" → Check syntax matches diagram type
"Syntax error in text" → Escape special characters or use quotes
Blank output → Check browser console, usually invalid syntax
Wrong appearance → Verify correct diagram type declaration
<editing_tips>
When editing existing diagrams:
assets/templates/class-template.md (opens in a new tab)assets/templates/er-template.md (opens in a new tab)assets/templates/flowchart-template.md (opens in a new tab)assets/templates/sequence-template.md (opens in a new tab)references/gotchas.md (opens in a new tab)references/patterns.md (opens in a new tab)references/styling.md (opens in a new tab)references/syntax-c4.md (opens in a new tab)references/syntax-class.md (opens in a new tab)references/syntax-er.md (opens in a new tab)references/syntax-flowchart.md (opens in a new tab)references/syntax-git.md (opens in a new tab)references/syntax-sequence.md (opens in a new tab)references/syntax-state.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub bengous/claude-code-plugins --plugin mermaid-diagrams