Files
magnus919_agent-skills/mermaid-diagrams/references/flowchart.md
Magnus HedemarkandGitHub 7057f3ce86 feat: add mermaid-diagrams skill (#14)
* feat: add mermaid-diagrams skill

Signed-off-by: Magnus Hedemark <magnus919@pm.me>

* fix: harden portable skill guidance

Signed-off-by: Magnus Hedemark <magnus919@pm.me>

* fix: remove nonportable source assumptions

Signed-off-by: Magnus Hedemark <magnus919@pm.me>

* fix: generalize portable examples

Signed-off-by: Magnus Hedemark <magnus919@pm.me>

---------

Signed-off-by: Magnus Hedemark <magnus919@pm.me>
2026-07-12 14:44:39 -04:00

1.4 KiB

Mermaid Flowchart Reference

Basic Syntax

flowchart LR
  A[Start] --> B[Process]
  B --> C{Decision}
  C -->|Yes| D[Outcome]
  C -->|No| E[Alternative]

Node Shapes (v11.3+)

Shape Syntax Description
Rectangle A[text] Default process node
Rounded A(text) Start/end
Stadium A([text]) Terminal
Subroutine A[[text]] Predefined process
Cylinder A[(text)] Database
Circle A((text)) Junction/connector
Asymmetric A>text] Output
Parallelogram A[/text/] Input/output
Trapazoid A[/text\\] Input (reverse)
Hexagon A{{text}} Preparation
Diamond A{text} Decision
Double Circle A(((text))) Multi-junction
Syntax Description
A-->B Arrow
A---B Line
A--text-->B Arrow with label
A-.->B Dotted arrow
A==>B Thick arrow
A--oB Open circle arrow
A--xB X arrow

Subgraphs

flowchart TB
  subgraph Service["Service Name"]
    A --> B
  end

Styling

flowchart LR
  A[Critical] --> B[Normal]
  style A fill:#f00,stroke:#333,stroke-width:4px
  style B fill:#0f0,stroke:#333
  classDef critical fill:#f00,color:#fff
  class A critical

C4 Workaround

See references/c4-mermaid.md for the flowchart-based C4 approximation pattern.