Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create Mermaid diagrams in Obsidian including flowcharts, sequence diagrams, class diagrams, and more. Use when visualizing processes, system architectures, workflows, or any structured relationships in Obsidian notes.
.claude/skills/aiskillstore-mermaid-diagramming/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 224% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 117% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 134% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 429% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 110% | 0% |
Obsidian has built-in Mermaid support. Use fenced code blocks with mermaid language identifier.
For common syntax (styling, comments, themes), see reference.md.
Rendering Differences: Obsidian's Mermaid version may lag behind mermaid.js releases. Some cutting-edge features may not work.
Theme Interaction: Diagram colors adapt to Obsidian theme. Use explicit styles for consistent appearance across themes.
Performance: Very large diagrams (50+ nodes) may slow down rendering. Split into multiple diagrams if needed.
Export: PDF export converts diagrams to images. For external sharing, capture as PNG/SVG.
No JavaScript: Click events and JavaScript callbacks are disabled for security.
| Use Case | Diagram Type | Keyword | |----------|--------------|---------| | Process flow, decision trees | Flowchart | flowchart | | API calls, message passing | Sequence | sequenceDiagram | | OOP design, relationships | Class | classDiagram | | Project timeline, scheduling | Gantt | gantt | | State machine, lifecycle | State | stateDiagram-v2 | | Git branching strategy | Gitgraph | gitGraph | | Brainstorming, hierarchies | Mindmap | mindmap | | Proportions, percentages | Pie Chart | pie | | Database schema, entities | ER Diagram | erDiagram | | User experience steps, satisfaction | User Journey | journey | | Historical events, milestones | Timeline | timeline | | Priority matrix, 2D positioning | Quadrant Chart | quadrantChart | | Flow visualization, proportional bands | Sankey Diagram | sankey-beta | | Numerical data visualization | XY Chart | xychart-beta | | Precise element positioning, layouts | Block Diagram | block-beta | | Cloud services, service relationships | Architecture | architecture-beta |
mermaidflowchart TD A[Start] --> B{Decision} B -->|Yes| C[Action 1] B -->|No| D[Action 2] C --> E[End] D --> E
Key syntax:
TD (top-down), LR (left-right), BT, RL[rect], (rounded), {diamond}, [(cylinder)], ((circle))-->, -.-> (dotted), ==> (thick)-->|text| or -- text -->For details: flowchart.md
mermaidsequenceDiagram participant C as Client participant S as Server participant D as Database C->>S: HTTP Request activate S S->>D: Query D-->>S: Result S-->>C: Response deactivate S
Key syntax:
->> (sync), -->> (response), -) (async)activate/deactivate or +/- suffixloop, alt/else, opt, par/and, criticalNote right of A: text, Note over A,B: textFor details: sequence.md
mermaidclassDiagram class Animal { +String name +int age +makeSound() void } class Dog { +fetch() void } Animal <|-- Dog : extends
Key syntax:
+ public, - private, # protected, ~ package<|-- inheritance, *-- composition, o-- aggregation, --> association+method(args) returnTypeFor details: class-diagram.md
mermaidgantt title Project Timeline dateFormat YYYY-MM-DD section Planning Requirements :a1, 2024-01-01, 7d Design :a2, after a1, 5d section Development Implementation :2024-01-15, 14d Testing :7d
Key syntax:
dateFormat: Date format (YYYY-MM-DD, etc.)name :id, start, duration or name :after id, durationdone, active, crit, milestoneFor details: gantt.md
mermaidstateDiagram-v2 [*] --> Idle Idle --> Processing : start Processing --> Success : complete Processing --> Error : fail Success --> [*] Error --> Idle : retry
Key syntax:
[*]State1 --> State2 : eventstate Name { ... }state fork_name <<fork>>, <<join>>For details: state.md
mermaidgitGraph commit id: "init" branch develop checkout develop commit id: "feat-1" commit id: "feat-2" checkout main merge develop id: "v1.0" tag: "release"
Key syntax:
commit: Add commit, optional id:, tag:, type:branch name: Create branchcheckout name: Switch branchmerge name: Merge branchFor details: gitgraph.md
mermaidmindmap root((Project)) Frontend React TypeScript Backend Node.js PostgreSQL DevOps Docker CI/CD
Key syntax:
root((circle)), (rounded), [square], ))cloud((For details: mindmap.md
mermaidpie showData title Browser Market Share "Chrome" : 65 "Safari" : 19 "Firefox" : 8 "Edge" : 5 "Other" : 3
Key syntax:
title: Optional chart titleshowData: Display values on segments"Label" : valueFor details: pie.md
mermaiderDiagram CUSTOMER ||--o{ ORDER : places ORDER ||--|{ LINE-ITEM : contains CUSTOMER { int id PK string email UK string name }
Key syntax:
ENTITY_NAMEtype name [PK/FK/UK]||--o{ (one to many), ||--|| (one to one)ENTITY1 REL ENTITY2 : labelFor details: er-diagram.md
mermaidjourney title Customer Support section Contact Submit ticket: 2: Customer Receive notice: 4: Agent section Resolution Troubleshoot issue: 3: Agent Confirm solution: 5: Customer
Key syntax:
section nameTask name: score: actorFor details: journey.md
mermaidtimeline title Product Roadmap section 2023 Q1 2023 : MVP launch Q4 2023 : v1.0 release section 2024 Q2 2024 : Major features Q4 2024 : v2.0
Key syntax:
period : eventperiod : event1 : event2For details: timeline.md
mermaidquadrantChart title Feature Prioritization x-axis Effort --> Value y-axis Complexity --> Impact Dark Mode: [0.4, 0.7] Search: [0.6, 0.8] Export PDF: [0.7, 0.6] Fix UI Bug: [0.2, 0.3]
Key syntax:
x-axis label --> label and y-axis label --> labelName: [x, y] (coordinates 0.0-1.0)For details: quadrant-chart.md
mermaidsankey-beta A,B,10 A,C,15 B,D,8 C,D,22
Key syntax:
source, target, valueFor details: sankey.md
mermaidxychart-beta title "Sales Data" x-axis [Jan, Feb, Mar, Apr, May] y-axis "Revenue" 0 --> 100 line [30, 45, 55, 70, 85]
Key syntax:
xychart-beta or xychart-beta horizontal[categories] or min --> max"label" min --> maxline [values] or bar [values]For details: xychart.md
mermaidblock-beta columns 2 A["Frontend"]:1 B["Backend"]:1 C["Database"]:2 style A fill:#e3f2fd,stroke:#1565c0,color:#0d47a1 style B fill:#f3e5f5,stroke:#7b1fa2,color:#4a148c style C fill:#e8f5e9,stroke:#2e7d32,color:#1b5e20
Key syntax:
ID["Label"]:SPAN - Each block on new linecolumns N - Define layout widthstyle ID fill:#hex,stroke:#hex,color:#hex:N suffix - How many columns block occupiesFor details: block.md
mermaidarchitecture-beta group Cloud(cloud)[Cloud Infrastructure] service web(server)[Web Server] in Cloud service api(server)[API Server] in Cloud service db(database)[Database] web:R --> L:api api:R --> L:db
Key syntax:
group {id}({icon})[{label}] - Organize servicesservice {id}({icon})[{label}] (in {parent})? - Available icons: server, database, cloud, disk, internetin {parent_id} - Place service/group inside parent group{id1}:{pos} {arrow} {pos}:{id2} - Position: L(eft), R(ight), T(op), B(ottom)--> (right), <-- (left), -- (both)For details: architecture.md
mermaidflowchart LR A[Normal] --> B[Styled] style B fill:#f96,stroke:#333,stroke-width:2px
mermaidflowchart LR A:::highlight --> B --> C:::highlight classDef highlight fill:#ff0,stroke:#f00,stroke-width:2px
mermaidflowchart TD %% This is a comment A --> B
For complete documentation on common features:
For diagram-specific guides:
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 8,751 | 12,466 | +42% | 1 | 1 | 0% | 1,510 | 4,894 | +224% | 0 | 0 | — |
case-02 | pass→pass | 12,553 | 12,468 | -1% | 1 | 1 | 0% | 2,224 | 4,673 | +110% | 0 | 0 | — |
case-17 | fail→pass | 25,648 | 9,139 | -64% | 1 | 1 | 0% | 2,218 | 4,821 | +117% | 0 | 0 | — |
case-03 | pass→pass | 4,741 | 4,776 | +1% | 1 | 1 | 0% | 766 | 4,142 | +441% | 0 | 0 | — |
case-04 | pass→pass | 5,455 | 8,095 | +48% | 1 | 1 | 0% | 960 | 3,902 | +306% | 0 | 0 | — |
case-05 | pass→pass | 6,640 | 8,811 | +33% | 1 | 1 | 0% | 1,123 | 4,129 | +268% | 0 | 0 | — |
case-06 | pass→pass | 4,494 | 9,077 | +102% | 1 | 1 | 0% | 801 | 4,104 | +412% | 0 | 0 | — |
case-18 | pass→pass | 13,724 | 11,274 | -18% | 1 | 1 | 0% | 1,987 | 4,294 | +116% | 0 | 0 | — |
case-07 | pass→pass | 7,000 | 8,058 | +15% | 1 | 1 | 0% | 1,173 | 3,917 | +234% | 0 | 0 | — |
case-08 | pass→pass | 5,396 | 9,190 | +70% | 1 | 1 | 0% | 871 | 4,172 | +379% | 0 | 0 | — |
case-09 | pass→pass | 5,330 | 7,761 | +46% | 1 | 1 | 0% | 774 | 3,885 | +402% | 0 | 0 | — |
case-10 | pass→pass | 6,335 | 8,515 | +34% | 1 | 1 | 0% | 1,084 | 3,963 | +266% | 0 | 0 | — |
case-15 | fail→pass | 11,027 | 3,421 | -69% | 1 | 1 | 0% | 1,685 | 3,950 | +134% | 0 | 0 | — |
case-11 | pass→pass | 10,877 | 9,362 | -14% | 1 | 1 | 0% | 990 | 4,114 | +316% | 0 | 0 | — |
case-12 | pass→pass | 10,655 | 8,498 | -20% | 1 | 1 | 0% | 1,006 | 3,982 | +296% | 0 | 0 | — |
case-13 | pass→pass | 4,879 | 2,651 | -46% | 1 | 1 | 0% | 741 | 3,779 | +410% | 0 | 0 | — |
case-14 | pass→pass | 10,520 | 7,539 | -28% | 1 | 1 | 0% | 1,006 | 3,817 | +279% | 0 | 0 | — |
case-16 | pass→pass | 18,476 | 12,270 | -34% | 1 | 1 | 0% | 2,139 | 4,522 | +111% | 0 | 0 | — |
case-19 | fail→pass | 4,433 | 4,492 | +1% | 1 | 1 | 0% | 803 | 4,246 | +429% | 0 | 0 | — |
case-20 | pass→pass | 4,220 | 7,370 | +75% | 1 | 1 | 0% | 389 | 3,795 | +876% | 0 | 0 | — |
case-21 | pass→pass | 11,053 | 10,892 | -1% | 1 | 1 | 0% | 1,139 | 4,530 | +298% | 0 | 0 | — |
case-22 | pass→pass | 9,224 | 8,871 | -4% | 1 | 1 | 0% | 749 | 4,082 | +445% | 0 | 0 | — |
case-23 | pass→pass | 5,241 | 9,997 | +91% | 1 | 1 | 0% | 914 | 4,215 | +361% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +17 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.