mermaid-diagramming
Use when selecting, writing, or reviewing Mermaid diagrams for technical documentation.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- mermaid-diagramming
- license
- MIT
- metadata
- { "owner": "Harley Bartles", "status": "active", "use_when": [ "selecting a diagram type for a process, interaction, data model, or state machine.", "writing or reviewing Mermaid syntax in documentation." ], "source-id": "mermaid-diagramming", "source-path": "skills/mermaid-diagramming/SKILL.md", "related_skills": [ "clean-architecture", "api-design", "writing-with-clarity" ], "do_not_use_when": [ "the audience needs interactive or pixel-perfect visuals that Mermaid cannot provide." ], "provenance-name": "Mermaid Diagramming first-party skill", "source-category": "first_party" }
- description
- Use when selecting, writing, or reviewing Mermaid diagrams for technical documentation.
02 资源文件 5
- 参考文档agents/openai.yaml414 B
- 资产文件assets/authority/authority.yaml870 B
- 资产文件assets/authority/CITATIONS.md864 B
- 资产文件assets/authority/source-map.yaml399 B
- 参考文档references/operational-guidance.md1.8 KB
03 SKILL.md 正文
Mermaid Diagramming
Overview
Express technical diagrams as plain text inside docs, ADRs, and READMEs so they stay versioned and easy to update.
When to Use
- Selecting a diagram type for a process, interaction, data model, or state machine.
- Writing or reviewing Mermaid syntax in documentation.
- Do not use when the audience needs interactive or pixel-perfect visuals that Mermaid cannot provide.
Core Pattern
- Choose the diagram type by what you want to show:
flowchartfor processes and decisions.sequenceDiagramfor actor interactions over time.erDiagramfor data relationships.classDiagramfor object structure and inheritance.stateDiagram-v2for state transitions.ganttfor schedules.journey,mindmap, ortimelinefor UX flows, idea maps, or chronology.
- Declare the diagram with the type keyword and keep one concept per diagram.
- Use descriptive node IDs and quoted labels for special characters; prefer
LRorTBdirection. - Group related nodes with
subgraphand label edges with-->|"reason"|. - Provide a basic and a styled version, plus a note about the target renderer such as GitHub, Mermaid Live Editor, or VS Code.
Common Mistakes
- Overloading a single diagram with 15+ nodes → split into focused views.
- Relying on color alone to convey meaning → add labels and shapes.
- Committing diagrams without rendering them on the target platform → verify before committing.
Load references/operational-guidance.md for detailed diagram selection and syntax guidance.
04 同仓库更多 Skills
writing
Use when drafting, revising, or reviewing prose for human readers and clarity, an authorised voice, or reader-fatigue concerns may interact.
writing-with-clarity
Use when drafting, revising, or reviewing prose intended for human readers, including documentation, README files, reports, explanations, UI copy, errors, comments, commit messages, and pull request text.
writing-style
Use when revising or reviewing human-facing prose against an authorised voice card or a contextual reader-fatigue profile.
skill
暂无简介
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment.
writing-roadmaps
Use when a goal is too large for one writing-plans plan and requires a sequenced roadmap of consecutive plans.