comol/ai_rules_1c/mermaid-diagrams
Claude Code and agent skill by comol/ai_rules_1c
- community
Checking that the SKILL.md file is still in the repository.
Practical guide for creating human-readable and agent-parseable diagrams using Mermaid. Includes conservative, renderer-compatible templates and when-to-use guidance.
Install
npx vskill@latest install comol/ai_rules_1c/mermaid-diagramsSKILL.md
Mermaid Diagrams Skill
Compatibility Rules (Read First)
- Prefer
graph LR/graph TBfor flowcharts; some renderers fail onflowchartkeyword. - Quote labels containing spaces/special characters:
A["Text (x|y) |"]. - Do not use literal `\n` inside labels — Mermaid does not interpret such line breaks. Use
<br/>for line breaks. - Advanced types like
quadrantChart,sankey-beta,requirementDiagram,gitGraphmay not be available. Use provided flowchart fallbacks. - Code fences must start at column 0 with language
mermaid.
ASCII/Unicode Sidecar (Human-Readable Raw Markdown)
To optimize for quick human scanning in raw Markdown and robust parsing by agents, always ship an ASCII/Unicode sidecar immediately below each Mermaid block.
Policy:
- MUST include a monospace, text-only diagram right under the Mermaid block using fenced code with language
text. - MUST keep Mermaid and sidecar in sync (same nodes/edges, same labels where feasible). If they diverge, treat Mermaid as the source of truth and update the sidecar.
- SHOULD limit width to ~80 columns for readability in diffs and terminals.
- SHOULD use simple line art characters (ASCII first; Unicode box-drawing optional when environment supports it).
- MAY add a one-line caption above the pair:
Diagram: <name> (<type>).
Recommended primitives:
- Boxes:
[Name],(Name),+-----+\n| N |\n+-----+ - Flows:
-->, decisions as{cond?}lines, lists with-. - Sequence (text-based):
Actor -> Actor: messagewith indented lifelines.
Example (Flowchart):
Example (Text-based Sequence):
Working Templates (Renderer-Compatible)
Flowchart
Sequence
Class
State (v2)
ER (Entity-Relationship)
Journey (User Journey)
Gantt
Pie (compatible syntax)
Quadrant — flowchart fallback
Requirement — flowchart fallback
Sankey — flowchart fallback (weights on edges)
Git graph — flowchart fallback (simple DAG)
When to Use Which Diagram
- Flowchart: General flows, decisions, and data movement in specs and PRDs.
- Sequence: Interactions over time between actors/services (APIs, requests, responses).
- Class: Domain models and static structure; useful for entity attributes and relations.
- State: Lifecycle of an entity/component (idle -> loading -> ready/error, nested states).
- ER: Database/logical data model with cardinalities.
- Journey: User experience across steps/sections (great for PRD acceptance flows).
- Gantt: Scheduling, releases, and dependencies by dates.
- Pie: Simple composition/ratios; prefer tables when precision matters.
- Quadrant (fallback): Prioritization matrix (Impact/Effort) without experimental chart support.
- Requirement (fallback): Traceability between requirements, tests, and system elements.
- Sankey (fallback): Convey relative volumes along a path when
sankeyis unavailable. - Git graph (fallback): Small branch/merge DAGs when
gitGraphis unavailable.
Troubleshooting
- If a diagram fails to render, try:
1) Replace flowchart with graph and simplify shapes. 2) Quote node texts. 3) Test in https://mermaid.live to isolate environment issues. 4) Fall back to the templates above for maximum compatibility.
Security
- Security scanPassed, 95 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 repositoryCheckingcontent/skills/mermaid-diagrams/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/comol/ai_rules_1c/mermaid-diagrams)