From md2x
Creates flowcharts, sequence diagrams, state machines, class diagrams, Gantt charts, mindmaps, and more using Mermaid syntax. For process flows, API interactions, system architecture, and technical documentation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/md2x:mermaidThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Quick Start:** Identify diagram type (flowchart/sequence/state/class/ER/gantt/mindmap) → Define nodes with shapes → Connect with arrows → Wrap in ` ```mermaid ` fence. Default: top-to-bottom (`TD`), use `flowchart` over `graph`, Unicode supported.
Quick Start: Identify diagram type (flowchart/sequence/state/class/ER/gantt/mindmap) → Define nodes with shapes → Connect with arrows → Wrap in ```mermaid fence. Default: top-to-bottom (TD), use flowchart over graph, Unicode supported.
❌ [1. Item] → "Unsupported markdown: list"
✅ [1.Item] → Remove space after period
✅ [① Item] → Use circled numbers ①②③④⑤⑥⑦⑧⑨⑩
✅ [(1) Item] → Use parentheses
❌ subgraph AI Agent Core → Space without quotes
✅ subgraph agent["AI Agent Core"] → ID with display name
✅ subgraph agent → Simple ID only
❌ Title --> AI Agent Core → Reference display name
✅ Title --> agent → Reference subgraph ID
✅ ["Text with spaces"] → Quotes for spaces
✅ Use 『』 instead of "" → Avoid quotation marks
✅ Use 「」 instead of () → Avoid parentheses
❌ graph TD → Outdated
✅ flowchart TD → Supports subgraph directions, more features
| Issue | Solution |
|---|---|
| Diagram won't render | Check unmatched brackets, quotes |
| List syntax error | [1.Item] not [1. Item] |
| Subgraph reference fails | Use ID not display name |
| Too crowded | Split into multiple diagrams |
| Crossing connections | Use different layout direction or invisible edges ~~~ |
```mermaid
[diagram code]
```
For diagram-specific syntax and advanced features, refer to references below:
npx claudepluginhub larchliu/md2x --plugin md2xCreates Mermaid diagrams for flowcharts, sequences, ERDs, architectures, and more. Provides styling, accessibility, and export recommendations.
Guides creation of syntactically correct Mermaid diagrams including flowcharts, sequence diagrams, class diagrams, state diagrams, Gantt charts, ER diagrams, and data lineage visualizations.
Mermaid diagram creation for flowcharts, sequence diagrams, ERDs, state machines, Gantt charts, and architecture views. Use when creating or updating technical diagrams.