Creating mermaid diagrams
Skill narumiruna/skills/skills/slides-visuals/creating-mermaid-diagrams
Create, revise, convert, or validate Mermaid diagrams, including flowcharts, sequence, ER, class, state, Gantt, and optional SVG rendering for documents or slides.From its SKILL.md
npx -y skills add narumiruna/skills --skill creating-mermaid-diagramsAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 10 stars10 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 1 command, including `mmdc -i diagram.mmd -o /tmp/diagram-check.svg`.
SKILL.md
1.9 KB, 390 tokens by cl100k_base, as published. Nobody here has run it
Mermaid Diagrams
Preserve editable Mermaid source. Render a static asset only when the consumer requires one.
Route by Structure
| Type | Best for | Reference | Example |
|---|---|---|---|
| Flowchart | processes and decisions | references/flowchart.md | assets/examples/flowchart/basic.mmd |
| Sequence | ordered system interactions | references/sequence.md | assets/examples/sequence/basic.mmd |
| Class | object models | references/class.md | assets/examples/class/basic.mmd |
| State | lifecycle transitions | references/state.md | assets/examples/state/basic.mmd |
| ER | data entities and relationships | references/er.md | assets/examples/er/basic.mmd |
| Other | Gantt, pie, git, journey, timeline, mindmap, requirement, C4 | references/other-types.md | assets/examples/other/gantt-basic.mmd |
Load only the matching reference.
Workflow
- Identify the relationships, sequence, or states the diagram must communicate and choose the matching type.
- Write one focused
.mmdsource with descriptive labels and simple alphanumeric or underscore IDs. Split a graph that becomes unreadable. - Validate with the consumer's Mermaid renderer when known. Otherwise, use Mermaid CLI when available:
mmdc -i diagram.mmd -o /tmp/diagram-check.svg
- If a slide or document needs a static asset, render the requested SVG with an appropriate theme, background, and dimensions, then inspect it in the target artifact.
- Return or preserve the source, any requested rendered artifact, validation performed, and renderer/version compatibility caveats.
Quote labels containing punctuation. Prefer high contrast for slides. Diagram creation does not authorize a Git commit or publication.
What ships with it: 13 files
6.5 KB alongside SKILL.md
agents/
- openai.yaml286 B
assets/
references/
- class.md793 B
- er.md723 B
- flowchart.md637 B
- other-types.md1.7 KB
- sequence.md816 B
- state.md712 B