src/process/resources/skills/mermaid/references/syntax.md
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
C --> E[End]
D --> E
Directions: TD (top-down), LR (left-right), BT, RL
Node shapes:
A[text] - rectangleA(text) - roundedA{text} - diamondA([text]) - stadiumA[[text]] - subroutineA[(text)] - cylinderA((text)) - circlesequenceDiagram
participant A as Alice
participant B as Bob
A->>B: Hello
B-->>A: Hi
A->>+B: Request
B->>-A: Response
Note over A,B: Shared note
Arrows: ->> solid, -->> dashed, -x cross, -) open
stateDiagram-v2
[*] --> Idle
Idle --> Running: start
Running --> Idle: stop
Running --> [*]: terminate
classDiagram
class Animal {
+String name
+eat()
}
class Dog {
+bark()
}
Animal <|-- Dog
Relations: <|-- inheritance, *-- composition, o-- aggregation, --> association
erDiagram
USER ||--o{ ORDER : places
ORDER ||--|{ LINE-ITEM : contains
PRODUCT ||--o{ LINE-ITEM : includes
Cardinality: || one, o| zero or one, }| one or more, }o zero or more