config/skills/core/mermaid-diagrams/SKILL.md
Effective Mermaid diagrams. Use when creating markdown documents with human audiences.
npx skillsauth add gavinmcfall/agentic-config mermaid-diagramsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Diagrams reveal relationships that prose cannot express efficiently. Before creating one, ask if a list or table would work.
Never diagram linear sequences.
A --> B --> C --> D
This is a list pretending to be a diagram. Use a numbered list instead.
Test: If there are no branches, decisions, or parallel paths, use a list.
Invariant A diagram earns its place only when it reveals relationships or patterns that would require paragraphs to explain.
Example Request flows through validation, cache check, and database lookup with error handling at each branch. A flowchart shows all paths instantly; prose would need three paragraphs. //BOUNDARY: If deleting the diagram loses no critical information, delete it.
Depth
Invariant Quote labels containing spaces or special characters; escape markdown syntax in labels.
Example
graph LR
A["User Request"] --> B{Size?}
B -->|"> 1MB"| C["Process (async)"]
B -->|"< 1MB"| D["Process (sync)"]
//BOUNDARY: Unquoted labels with spaces break rendering.
Depth
>, <, - at start, 1. at start1. 2. 3.) in labels - breaks Mermaid syntaxreferences/syntax.mdInvariant
Document diagram meaning for both Claude (in %% comments) and users (in visible text or legend).
Example
graph TD
Request --> Check{Valid?}
Check -->|Yes| Success:::success
Check -->|No| Error:::error
classDef success fill:#90EE90,stroke:#2E7D32,color:#000
classDef error fill:#FFB6C1,stroke:#C62828,color:#000
%% MEANING: Request validation flow
%% GOTCHA: Retries omitted for clarity
Colors: Green = success path, Red = error path
Depth
%% comments: For Claude's context (invisible in rendered output)| Need | Use | Reference |
|------|-----|-----------|
| Process with branches/decisions | Flowchart | references/flowchart.md |
| Multi-party interactions over time | Sequence | references/sequence.md |
| State transitions | State diagram | references/state.md |
| Database schema | ER diagram | references/er-diagram.md |
| Code class hierarchy | Class diagram | references/class.md |
| Project schedule | Gantt chart | references/gantt.md |
| Historical events | Timeline | references/timeline.md |
| Concept hierarchy | Mindmap | references/mindmap.md |
| Quantity flows | Sankey | references/sankey.md |
| Proportions (3-7 items) | Pie chart | references/pie.md |
| Prioritization (2D) | Quadrant chart | references/quadrant.md |
| Trend/metric data | XY chart | references/xy-chart.md |
| Service topology (20+) | Architecture | references/architecture.md |
| Hierarchical proportions | Treemap | references/treemap.md |
| Workflow stages | Kanban | references/kanban.md |
Decision tree in your head:
Non-negotiable:
color:#000)Suggested semantic palette:
--success: fill:#90EE90,stroke:#2E7D32,color:#000
--error: fill:#FFB6C1,stroke:#C62828,color:#000
--warning: fill:#FFE082,stroke:#F57C00,color:#000
--info: fill:#81D4FA,stroke:#0277BD,color:#000
Before committing:
Consult for specific diagram types:
references/flowchart.md - Process with branches/decisionsreferences/sequence.md - Multi-party interactionsreferences/state.md - State transitionsreferences/er-diagram.md - Database schemareferences/class.md - OOP hierarchiesreferences/gantt.md - Project schedulesreferences/timeline.md - Historical eventsreferences/mindmap.md - Concept hierarchiesreferences/pie.md - Proportions (3-7 items)references/xy-chart.md - Trends and metricsreferences/quadrant.md - 2D prioritizationreferences/sankey.md - Quantity flowsreferences/treemap.md - Hierarchical proportionsreferences/architecture.md - Service topologyreferences/kanban.md - Workflow stagesreferences/syntax.md - Quoting, escaping, layout enginesDiagrams are expensive. Make them earn their place.
development
Deeply personal mentor and guide. Use when struggling, wanting to quit, feeling overwhelmed, or doubting yourself. Empathy-first. Build this skill around YOUR psychology.
tools
Build automation workflows with n8n for game dev tasks. Use when automating repetitive processes, setting up notifications, scheduling backups, or connecting services. Reduces manual overhead that ADHD brains find hardest to maintain.
testing
Query and diagnose the home Kubernetes cluster. Use when checking cluster health, troubleshooting pods/services/routes, inspecting storage, or understanding what's deployed. Covers Talos node management, Ceph storage, Cilium networking.
devops
Deploy and manage applications in the home-ops Kubernetes cluster via GitOps. Use when deploying new apps, modifying existing ones, adding routing, managing secrets, or working with the home-ops repo structure.