AGENT SKILL

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

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

  1. Choose the diagram type by what you want to show:
    • flowchart for processes and decisions.
    • sequenceDiagram for actor interactions over time.
    • erDiagram for data relationships.
    • classDiagram for object structure and inheritance.
    • stateDiagram-v2 for state transitions.
    • gantt for schedules.
    • journey, mindmap, or timeline for UX flows, idea maps, or chronology.
  2. Declare the diagram with the type keyword and keep one concept per diagram.
  3. Use descriptive node IDs and quoted labels for special characters; prefer LR or TB direction.
  4. Group related nodes with subgraph and label edges with -->|"reason"|.
  5. 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