create-mermaid-diagrams

v2026.09.24

Create, revise, convert, or validate Mermaid diagrams, including flowcharts, sequence, ER, class, state, Gantt, and optional SVG rendering for documents or slides.

GitHub
安装命令
npx skhub add narumiruna/create-mermaid-diagrams
Markdown
SKILL.md

Mermaid Diagrams

Preserve editable Mermaid source. Temporary renders used only for validation are allowed; preserve or deliver a static asset only when the consumer requires one.

Route by Structure

TypeBest forBasic source
Flowchartprocesses and decisionsassets/examples/flowchart/basic.mmd
Sequenceordered system interactionsassets/examples/sequence/basic.mmd
Classobject modelsassets/examples/class/basic.mmd
Statelifecycle transitionsassets/examples/state/basic.mmd
ERdata entities and relationshipsassets/examples/er/basic.mmd
OtherGantt, pie, git, journey, timeline, mindmap, requirement, C4assets/examples/other/gantt-basic.mmd

Read references/types.md only for type-specific decisions or syntax beyond the basic source.

Workflow

  1. Identify the relationships, sequence, or states the diagram must communicate and choose the matching type.
  2. Write one focused .mmd source with descriptive labels and simple alphanumeric or underscore IDs. Split a graph that becomes unreadable.
  3. Validate with the consumer's Mermaid renderer when known. Otherwise, use Mermaid CLI when available:
mmdc -i diagram.mmd -o /tmp/diagram-check.svg
  1. 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.
  2. 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.

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

2026年9月24日

分类

未分类

许可证

MIT

源路径

skills/optional/create-mermaid-diagrams

默认分支

main

最新提交

519bdaa

Tree SHA

973f4e0