From visualization
References Mermaid syntax for diagram types like flowcharts, sequences, ER, Gantt, class diagrams; includes examples, patterns, and Markdown integration for GitHub, GitLab, VS Code.
npx claudepluginhub melodic-software/claude-code-plugins --plugin visualizationThis skill is limited to using the following tools:
Mermaid is a JavaScript-based diagramming tool that renders diagrams from Markdown-inspired text definitions. Diagrams render as SVG directly in browsers and are natively supported by GitHub, GitLab, Azure DevOps, Obsidian, and Notion.
Provides Mermaid syntax reference for 23 diagram types including flowcharts, sequences, ER, Gantt, C4, mindmaps, timelines, plus node shapes, styling, theming, configs, and rendering errors.
References Mermaid syntax for all diagram types including flowcharts, sequences, classes, states, ER, gantt, git graphs, mindmaps, timelines, pie charts, quadrant, XY, sankey, C4, and kanban. Use to construct or debug Mermaid diagrams.
Creates Mermaid diagrams including flowcharts, sequence diagrams, ERDs, state machines, Gantt charts, and architecture views for technical documentation.
Share bugs, ideas, or general feedback.
Mermaid is a JavaScript-based diagramming tool that renders diagrams from Markdown-inspired text definitions. Diagrams render as SVG directly in browsers and are natively supported by GitHub, GitLab, Azure DevOps, Obsidian, and Notion.
Key advantages:
Limitations:
| Type | Keyword | Best For |
|---|---|---|
| Flowchart | flowchart or graph | Process flows, decision trees, workflows |
| Sequence | sequenceDiagram | API calls, request/response flows |
| Class | classDiagram | OOP structures, inheritance, relationships |
| State | stateDiagram-v2 | State machines, lifecycle states |
| ER | erDiagram | Database schemas, entity relationships |
| Gantt | gantt | Project timelines, schedules |
| Pie | pie | Distribution, proportions |
| Git Graph | gitGraph | Branching strategies, commit history |
| C4 Context | C4Context | System architecture (experimental) |
| Timeline | timeline | Chronological events |
Mermaid diagrams are embedded in Markdown using fenced code blocks:
```mermaid
flowchart TD
A[Start] --> B[End]
```
Platform support:
flowchart TD
A[Box] --> B{Decision}
B -->|Yes| C[Action]
B -->|No| D[Other]
sequenceDiagram
A->>B: Request
B-->>A: Response
classDiagram
class Name {
+attribute type
+method() return
}
A <|-- B : inherits
stateDiagram-v2
[*] --> State1
State1 --> State2 : event
State2 --> [*]
erDiagram
ENTITY1 ||--o{ ENTITY2 : relationship
ENTITY1 {
type attribute PK
}
For detailed syntax and complete examples, see:
| Reference | Content | When to Load |
|---|---|---|
| flowchart.md | Node shapes, edge types, subgraphs | Creating flowcharts |
| sequence.md | Participants, arrows, activation, alt/loop | Creating sequence diagrams |
| class.md | Classes, visibility, relationships, cardinality | Creating class diagrams |
| state-er.md | State machines, ER diagrams, relationships | Creating state/ER diagrams |
| special-diagrams.md | Gantt, Git Graph, C4, styling, gotchas | Creating special diagrams |
Query: "Create a Mermaid flowchart for user registration process"
Expected: Skill activates, provides flowchart syntax with decision nodes and subgraphs
Query: "Generate a Mermaid sequence diagram for API authentication"
Expected: Skill activates, provides sequence syntax with participants and alt/loop blocks
Query: "Create a Mermaid ER diagram for a blog database"
Expected: Skill activates, directs to state-er.md reference for entity attributes and relationships
Last Updated: 2025-12-28 Mermaid Version: 10.x / 11.x