haowjy/orchestrate/mermaid
Claude Code and agent skill by haowjy/orchestrate
- community
Checking that the SKILL.md file is still in the repository.
Rules and validation for Mermaid diagrams. Use when creating or editing Mermaid diagrams in documentation.
Install
npx vskill@latest install haowjy/orchestrate/mermaidSKILL.md
Mermaid Diagram Rules
Always follow these rules when writing Mermaid diagrams. After writing or editing any Mermaid block, validate with the co-located script: scripts/check-mermaid.sh <file>.
Syntax Rules (Critical)
1. Always quote labels that contain special characters
Any label with (), [], <>, ", ,, <br/>, or emoji must be wrapped in ["..."]:
2. Quote edge labels that contain special characters
Edge labels with (), <>, <br/>, or [] must be quoted with |"..."|:
3. Never use <br/> inside labels — use multiline with \n or separate lines
Note: <br/> works in some Mermaid versions but not all. \n is safer.
4. Escape or avoid [] inside node text
5. No emoji in node IDs or unquoted labels
6. Do not hardcode colors — rely on Mermaid's built-in themes
Hardcoded style / classDef colors override Mermaid's theme engine and break when switching between light and dark mode. Let the built-in dark / default themes handle node colors.
For sequence diagram rect grouping, use near-transparent fills so they work in both themes:
7. Semicolons in sequence diagrams
Sequence diagram statements must end with a newline, not a semicolon followed by more statements on the same line:
Quick Reference: When to Quote
| Context | Needs quotes? | Example | |||
|---|---|---|---|---|---|
| Simple text only | No | A[Hello World] | |||
Contains () | Yes | A["Config (optional)"] | |||
Contains [] | Yes | A["items list"] (avoid [] entirely) | |||
Contains <br/> | Avoid | Use \n instead | |||
| Contains emoji | Yes | A["Done ✓"] | |||
Contains " | Escape | A["Say 'hello'"] | |||
| Edge with specials | Yes | `A -->\ | "data (raw)"\ | B` |
Validation
The validation script lives at scripts/check-mermaid.sh within this skill directory. It extracts each `mermaid block, validates it with mmdc, and reports file + line number for failures.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mermaid/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/haowjy/orchestrate/mermaid)