mirror of
https://github.com/magnus919/agent-skills.git
synced 2026-09-18 23:16:38 +03:00
* 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>
1.4 KiB
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 |
Link Styles
| 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.