Claude-skill-registry-data mermaid-diagramming
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry-data
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry-data "$T" && mkdir -p ~/.claude/skills && cp -r "$T/data/mermaid-diagramming" ~/.claude/skills/majiayu000-claude-skill-registry-data-mermaid-diagramming && rm -rf "$T"
manifest:
data/mermaid-diagramming/SKILL.mdsource content
[H1][MERMAID-DIAGRAMMING]
<br>Dictum: Modern Mermaid syntax produces consistent, styled diagrams.
Mermaid v11+ diagram creation with frontmatter YAML, ELK layout, Dracula palette. 22 diagram types across 5 semantic categories.
Scope:
- Create: New diagrams from requirements. Select category, load syntax reference, apply styling.
- Reference: Syntax lookup for nodes, edges, relationships, charts, architecture.
Domain Navigation:
- [CONFIG] — Frontmatter YAML, ELK 5-phase layout, direction, limits. Load FIRST for all diagrams.
- [STYLING] — Theme presets, themeVariables, classDef, linkStyle, palette. Load for visual customization.
- [GRAPH] — Flowchart, mindmap, block. Load for: decision trees, hierarchies, system decomposition.
- [INTERACTION] — Sequence, journey. Load for: protocols, request-response, user experience.
- [MODELING] — State, ER, class, requirement. Load for: FSM, data models, OOP structure, traceability.
- [CHARTS] — Pie, quadrant, sankey, xy, radar, gantt, treemap. Load for: data visualization, project timelines.
- [ARCHITECTURE] — C4, architecture-beta, packet-beta, timeline, gitgraph, kanban. Load for: system views, infrastructure, network protocols, version control flow, project boards.
[1][INSTRUCTIONS]
<br>Dictum: Progressive loading optimizes context.
Required Tasks:
- Read →global-config.md: Frontmatter YAML, ELK layout (required for ALL diagrams).
- Read →styling.md: Theme, classDef, palette.
- Select diagram category per §2 table, load corresponding syntax reference.
[REFERENCE]: →index.md — Complete file listing.
Guidance:
— Frontmatter YAML must precede diagram declaration. Mermaid parses config before nodes.Config First
— ELK provides comprehensive graph layout via five algorithmic phases: cycle breaking, layering, crossing minimization, node placement, edge routing.ELK Layout
Best-Practices:
- Load Sequence — global-config.md → styling.md → {category}.md → compose. Never skip configuration.
- Frontmatter Only —
directives deprecated v10.5.0. Use YAML frontmatter exclusively.%%{init:...}%%
[2][DIAGRAM_SELECTION]
<br>Dictum: Category determines semantic structure.
| [CATEGORY] | [TYPES] | [REFERENCE] |
|---|---|---|
| Graph | flowchart, mindmap, block | →graph.md |
| Interaction | sequence, journey | →interaction.md |
| Modeling | state, ER, class, requirement | →modeling.md |
| Charts | pie, quadrant, sankey, xy, radar, gantt, treemap | →charts.md |
| Architecture | C4, architecture, packet, timeline, gitgraph, kanban | →architecture.md |
Type Headers:
| [INDEX] | [TYPE] | [HEADER] | [DIR] | [CATEGORY] |
|---|---|---|---|---|
| [1] | Flowchart | | LR | Graph |
| [2] | Mindmap | | — | Graph |
| [3] | Block | | — | Graph |
| [4] | Sequence | | TB | Interaction |
| [5] | Journey | | — | Interaction |
| [6] | State | | TB | Modeling |
| [7] | ER | | LR | Modeling |
| [8] | Class | | TB | Modeling |
| [9] | Requirement | | — | Modeling |
| [10] | Pie | | — | Charts |
| [11] | Quadrant | | — | Charts |
| [12] | Sankey | | — | Charts |
| [13] | XY | | — | Charts |
| [14] | Radar | | — | Charts |
| [15] | Gantt | | — | Charts |
| [16] | Treemap | | — | Charts |
| [17] | C4 | | — | Architecture |
| [18] | Architecture | | — | Architecture |
| [19] | Packet | | — | Architecture |
| [20] | Timeline | | — | Architecture |
| [21] | GitGraph | | — | Architecture |
| [22] | Kanban | | — | Architecture |
Guidance:
— Horizontal flow matches reading order. Sequence/State force TB implicitly.LR Default
— block, sankey, xy, radar, treemap, architecture, packet, kanban are beta; syntax may change.Beta Status
Best-Practices:
- Category Match — Select by primary concern: flow→Graph, time→Interaction, structure→Modeling, data→Charts, system→Architecture.
[3][VALIDATION]
<br>Dictum: Gates prevent rendering failures.
[VERIFY] Before diagram creation:
- Frontmatter: valid YAML with
key (before diagram declaration).config: - Direction: LR for flowchart/ER, implicit TB for sequence/state.
- Reserved words avoided:
,end
,default
,subgraph
in node IDs.class - classDef: placed at diagram end, after node definitions.
- Accessibility: accTitle/accDescr present after diagram type.
[REFERENCE]: →validation.md — Full validation checklists and anti-patterns.