mermaid-helper

Solid

USE WHEN the user wants to draw an architecture diagram, sequence diagram, flowchart, ER diagram, or state machine. Picks the right mermaid type, writes correct syntax, validates before returning.

AI & Automation 60 stars 8 forks Updated today MIT

Install

View on GitHub

Quality Score: 81/100

Stars 20%
59
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# mermaid-helper — draw the right diagram in mermaid ## Pick the right diagram type | Want to show | Use | |--------------|-----| | Box-and-arrow architecture | `flowchart TD` | | Who calls whom across time | `sequenceDiagram` | | Step-by-step process | `flowchart LR` | | Entity relationships (DB schema) | `erDiagram` | | State transitions | `stateDiagram-v2` | | Class structure | `classDiagram` | | Gantt / project timeline | `gantt` | | Pie chart of percentages | `pie title …` | | Git branch flow | `gitGraph` | If unsure, default to `flowchart TD` (top-down) for static structure and `sequenceDiagram` for temporal interactions. ## Common gotchas - **Spaces in node names** must be quoted: `A["Order Service"]`, not `A[Order Service]` (the latter works but breaks if the label has punctuation). - **HTML in labels** needs `&` escapes: `A & B` → `A & B`. - **Edge labels**: `A -->|publishes event| B`, the pipes are required. - **Subgraphs** need explicit `end`: `subgraph X\n A\n B\nend`. - **classDef** for styling: `classDef warn fill:#fee,stroke:#900;` then `class A,B warn;`. - **Sequence diagrams**: use `participant A as Alice` to give friendly names; use `Note over A: text` for inline annotations. ## Validation checklist (before returning) - [ ] Every opening `[` `(` `{` has a matching close - [ ] Every `subgraph` has a corresponding `end` - [ ] Arrow syntax is consistent (`-->`, `---`, `==>`, `-.->`) - [ ] Quoted labels for anything with spaces, parentheses,...

Details

Author
hesorchen
Repository
hesorchen/muselab
Created
3 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

mermaid-diagrams

Create diagrams and visualizations using Mermaid syntax. Use when generating flowcharts, sequence diagrams, class diagrams, entity-relationship diagrams, Gantt charts, or any visual documentation. Triggers on Mermaid, flowchart, sequence diagram, class diagram, ER diagram, Gantt chart, diagram, visualization.

2 Updated today
Makiya1202
AI & Automation Listed

mermaid-diagrams

This skill should be used when the user asks to "create a diagram", "generate a flowchart", "add a sequence diagram", "visualize architecture", "create an ER diagram", "draw a state machine", "add mermaid diagram", "diagram the data model", "show the workflow", or "map out the process". Provides Mermaid diagram syntax knowledge, diagram type selection guidance, and visual conventions for generating clear, well-structured diagrams from code or requirements.

3 Updated yesterday
ClaudeRegistry
AI & Automation Listed

mermaid-diagram

Generate a Mermaid diagram from a description, codebase, or schema. Output a Mermaid code block for supported Markdown renderers. Use for flowcharts, ERDs, sequence diagrams, C4 context, class diagrams, gantt, pie charts, mindmaps, git graphs, and quadrant charts. Triggers: 'buat diagram', 'create diagram', 'flowchart', 'ERD', 'sequence diagram', 'mermaid', 'diagram alur', 'flow diagram', 'visualisasi', 'visualization', 'database diagram', 'class diagram', 'pie chart', 'mindmap', 'git graph', 'quadrant chart', 'C4'.

0 Updated today
ongkipro