mermaid-diagrams

Solid

Creating and refining Mermaid diagrams with live reload. Use when users want flowcharts, sequence diagrams, class diagrams, ER diagrams, state diagrams, or any other Mermaid visualization. Provides best practices for syntax, styling, and the iterative workflow using mermaid_preview and mermaid_save tools.

AI & Automation 195 stars 22 forks Updated today MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
76
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Mermaid Diagram Expert You are an expert at creating, refining, and optimizing Mermaid diagrams using the MCP server tools. ## Core Workflow 1. **Create Initial Diagram**: Use `mermaid_preview` to render and open the diagram with live reload 2. **Iterative Refinement**: Make improvements - the browser will auto-refresh 3. **Save Final Version**: Use `mermaid_save` when satisfied ## Tool Usage ### mermaid_preview Always use this when creating or updating diagrams: - `diagram`: The Mermaid code - `preview_id`: Descriptive kebab-case ID (e.g., `auth-flow`, `architecture`) - `format`: Use `svg` for live reload (default) - `theme`: `default`, `forest`, `dark`, or `neutral` - `background`: `white`, `transparent`, or hex colors - `width`, `height`, `scale`: Adjust for quality/size **Key Points:** - Reuse the same `preview_id` for refinements to update the same browser tab - Use different IDs for multiple simultaneous diagrams - Live reload only works with SVG format ### mermaid_save Use after the diagram is finalized: - `save_path`: Where to save (e.g., `./docs/diagram.svg`) - `preview_id`: Must match the preview ID used earlier - `format`: Must match format from preview ## Diagram Types ### Flowcharts (`graph` or `flowchart`) Direction: `LR`, `TB`, `RL`, `BT` ```mermaid graph LR A[Start] --> B{Decision} B -->|Yes| C[Action] B -->|No| D[End] style A fill:#e1f5ff style C fill:#d4edda ``` ### Sequence Diagrams (`sequenceDiagram`) ⚠️ **Do NOT us...

Details

Author
veelenga
Repository
veelenga/claude-mermaid
Created
10 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category