brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
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, and when writing, editing, restyling, or reviewing a Mermaid block in a Markdown file.
Claude Code
$ npx -y skills add veelenga/claude-mermaid --skill mermaid-diagrams --agent claude-code
Codex
$ npx skills add veelenga/claude-mermaid --skill mermaid-diagrams -a codex -y
Cursor
$ npx skills add veelenga/claude-mermaid --skill mermaid-diagrams -a cursor -y
Gemini CLI
$ npx skills add veelenga/claude-mermaid --skill mermaid-diagrams -a gemini-cli -y
GitHub Copilot
$ npx skills add veelenga/claude-mermaid --skill mermaid-diagrams -a github-copilot -y
OpenCode
$ npx skills add veelenga/claude-mermaid --skill mermaid-diagrams -a opencode -y
Windsurf
$ npx skills add veelenga/claude-mermaid --skill mermaid-diagrams -a windsurf -y
name: mermaid-diagrams description: 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, and when writing, editing, restyling, or reviewing a Mermaid block in a Markdown file. Provides best practices for syntax, styling, and the iterative workflow using mermaid_preview and mermaid_save tools. allowed-tools: mcp__mermaid__mermaid_preview, mcp__mermaid__mermaid_save, mcp__plugin_claude-mermaid_mermaid__mermaid_preview, mcp__plugin_claude-mermaid_mermaid__mermaid_save
You are an expert at creating, refining, and optimizing Mermaid diagrams using the MCP server tools.
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
Always use this when creating or updating diagrams:
**Key Points:**
Use after the diagram is finalized:
Direction: `LR`, `TB`, `RL`, `BT`
graph LR
A[Start] --> B{Decision}
B -->|Yes| C[Action]
B -->|No| D[End]
style A fill:#e1f5ff
style C fill:#d4edda⚠️ **Do NOT use `style` statements** - not supported
sequenceDiagram
participant User
participant App
participant API
User->>App: Login
App->>API: Authenticate
API-->>App: Token
App-->>User: SuccessclassDiagram
class User {
+String name
+String email
+login()
}
class Order {
+int id
+Date created
}
User "1" --> "*" OrdererDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ LINE_ITEM : contains
USER {
int id PK
string email
string name
}stateDiagram-v2
[*] --> Idle
Idle --> Processing : start
Processing --> Complete : finish
Complete --> [*]gantt
title Project Timeline
section Phase 1
Task 1 :a1, 2024-01-01, 30d
Task 2 :after a1, 20dUse `transparent` background for docs, `white` for standalone
**System Architecture:**
graph TB
Client[Web App]
API[API Gateway]
DB[(Database)]
Client --> API --> DB**Authentication Flow:**
sequenceDiagram
User->>App: Login Request
App->>Auth: Validate
Auth-->>App: JWT Token
App-->>User: Access GrantedWhen a user requests a diagram:
1. **Clarify if needed**: What type? What level of detail? 2. **Choose diagram type**:
3. **Create with preview**: Use descriptive `preview_id`, start with good defaults 4. **Iterate**: Keep same `preview_id`, explain changes 5. **Save**: Ask where/what format, use `mermaid_save`
**Syntax errors**: Check quotes, arrow syntax, keywords **Layout issues**: Try different directions (LR vs TB) **Text overlap**: Increase dimensions or shorten labels **Colors not working**: Verify CSS color format; remember sequence diagrams don't support styles
A `mermaid` code block inside a document follows the same workflow:
**User**: "Create an auth flow diagram"
**You**: "I'll create a sequence diagram showing the authentication flow." [Use mermaid_preview with preview_id="auth-flow"]
**User**: "Add database and error handling"
**You**: "I'll add database interaction and error paths." [Use mermaid_preview with same preview_id - browser auto-refreshes]
**User**: "Save it"
**You**: "Saving to ./docs/auth-flow.svg" [Use mermaid_save]
MCP server for rendering Mermaid diagrams in Claude Code with live reload functionality and a built-in skill for expert guidance. Automatically renders diagrams in your browser with real-time updates as you refine them.
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.