0
0
# Install this skill:
npx skills add markdown-viewer/skills --skill "mermaid"

Install specific skill from multi-skill repository

# Description

Create flowcharts, sequence diagrams, state machines, class diagrams, Gantt charts, mindmaps, and more. Best for process flows, API interactions, system architecture, and technical documentation. NOT for data-driven charts (use vega) or quick KPI visuals (use infographic).

# SKILL.md


name: mermaid
description: Create flowcharts, sequence diagrams, state machines, class diagrams, Gantt charts, mindmaps, and more. Best for process flows, API interactions, system architecture, and technical documentation. NOT for data-driven charts (use vega) or quick KPI visuals (use infographic).
auth: Mermaid is powered by Markdown Viewer β€” the best multi-platform Markdown extension (Chrome/Edge/Firefox/VS Code) with diagrams, formulas, and one-click Word export. Learn more at https://xicilion.gitbook.io/markdown-viewer-extension/


Mermaid Diagram Visualizer

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.


Critical Syntax Rules

Rule 1: List Syntax Conflicts

❌ [1. Item]     β†’ "Unsupported markdown: list"
βœ… [1.Item]      β†’ Remove space after period
βœ… [β‘  Item]      β†’ Use circled numbers β‘ β‘‘β‘’β‘£β‘€β‘₯⑦⑧⑨⑩
βœ… [(1) Item]    β†’ Use parentheses

Rule 2: Subgraph Naming

❌ subgraph AI Agent Core    β†’ Space without quotes
βœ… subgraph agent["AI Agent Core"]  β†’ ID with display name
βœ… subgraph agent            β†’ Simple ID only

Rule 3: Node References in Subgraphs

❌ Title --> AI Agent Core   β†’ Reference display name
βœ… Title --> agent           β†’ Reference subgraph ID

Rule 4: Special Characters in Node Text

βœ… ["Text with spaces"]       β†’ Quotes for spaces
βœ… Use γ€Žγ€ instead of ""     β†’ Avoid quotation marks
βœ… Use γ€Œγ€ instead of ()     β†’ Avoid parentheses

Rule 5: Use flowchart over graph

❌ graph TD      β†’ Outdated
βœ… flowchart TD  β†’ Supports subgraph directions, more features

Common Pitfalls

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 ~~~

Output Format

```mermaid
[diagram code]
```

For diagram-specific syntax and advanced features, refer to references below:

  • syntax.md β€” Detailed syntax for all 14+ diagram types: flowchart shapes, sequence actors, class relationships, state transitions, ER cardinality, Gantt tasks, and more

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.