/diagram-code:mermaidfrom diagram-code
Generates Mermaid diagrams for flowcharts, sequence diagrams, class diagrams, ER diagrams, state diagrams, Gantt charts, pie charts, mindmaps, timelines, and git graphs. Outputs as markdown code blocks or .mmd/.mermaid files.
Ships in diagram-code. 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.
Generate text-based diagrams using Mermaid syntax. Mermaid diagrams render directly in GitHub, GitLab, Notion, and many markdown viewers.
Minimal flowchart:
flowchart TD
A[Start] --> B[End]
Markdown code block - Embed in .md files:
```mermaid
flowchart TD
A --> B
```
Standalone file - .mmd or .mermaid extension:
flowchart TD
A --> B
Direction: TD (top-down), LR (left-right), BT, RL
flowchart TD
A[Start] --> B{Decision?}
B -->|Yes| C[Process]
B -->|No| D[End]
C --> D
sequenceDiagram
participant U as User
participant S as Server
U->>S: Request
S-->>U: Response
classDiagram
class Animal {
+String name
+makeSound()
}
class Dog {
+bark()
}
Animal <|-- Dog
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ LINE_ITEM : contains
PRODUCT ||--o{ LINE_ITEM : "ordered in"
stateDiagram-v2
[*] --> Idle
Idle --> Processing : start
Processing --> Done : complete
Done --> [*]
gantt
title Project Timeline
dateFormat YYYY-MM-DD
section Phase 1
Task A :a1, 2024-01-01, 30d
Task B :after a1, 20d
pie title Distribution
"Category A" : 40
"Category B" : 30
"Category C" : 30
mindmap
root((Central Topic))
Branch A
Leaf 1
Leaf 2
Branch B
Leaf 3
timeline
title History
2020 : Event A
2021 : Event B
2022 : Event C
gitGraph
commit
branch develop
checkout develop
commit
checkout main
merge develop
commit
| Shape | Syntax | Use For |
|---|---|---|
| Rectangle | [text] | Process/action |
| Rounded | (text) | Start/end |
| Stadium | ([text]) | Terminal |
| Subroutine | [[text]] | Subprocess |
| Database | [(text)] | Data store |
| Circle | ((text)) | Connector |
| Diamond | {text} | Decision |
| Hexagon | {{text}} | Preparation |
| Parallelogram | [/text/] | Input/Output |
| Trapezoid | [/text\] | Manual operation |
| Arrow | Syntax | Meaning |
|---|---|---|
| Solid | --> | Flow |
| Dotted | -.-> | Optional/async |
| Thick | ==> | Important |
| With text | `--> | label |
| Open | --- | Association |
flowchart TD
A[Start]:::green --> B[End]:::red
classDef green fill:#90EE90
classDef red fill:#FFB6C1
%%{init: {'theme': 'forest'}}%%
flowchart TD
A --> B
Available themes: default, forest, dark, neutral, base
A["Text with (parens)"]end keywordflowchart TD
subgraph Group1[First Group]
A --> B
end
subgraph Group2[Second Group]
C --> D
end
B --> C
See references/diagram-types.md for complete examples of each diagram type.
See references/syntax-reference.md for detailed syntax and configuration options.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/excalidrawGenerate Excalidraw diagrams (.excalidraw JSON files) for whiteboarding, flowcharts, architecture diagrams, sequence diagrams, mind maps, wireframes, and org charts. Use when user requests diagrams, visual documentation, system architecture visualization, process flows, or any hand-drawn style diagram. Triggers on requests mentioning Excalidraw, diagram creation, flowcharts, architecture diagrams, sequence diagrams, wireframes, or visual documentation./graphvizGenerate GraphViz DOT files (.dot) for directed/undirected graphs, hierarchical layouts, network diagrams, dependency graphs, state machines, and complex graph visualizations. Use when precise node positioning is needed, when rendering to PNG/SVG/PDF is required, when complex graph algorithms (clustering, ranking) are needed, or when dealing with large graphs (100+ nodes). Triggers on requests mentioning GraphViz, DOT language, network diagrams, dependency graphs, or when sophisticated graph layout is required.npx claudepluginhub johnlarkin1/claude-code-extensions --plugin diagram-codeOther plugins' skills for the same job