Loading...
Loading...
Authoritative reference for PlantUML diagram syntax. Provides UML and non-UML diagram types, syntax patterns, examples, and setup guidance for generating accurate PlantUML diagrams.
npx skill4agent add melodic-software/claude-code-plugins plantuml-syntaxdocker run -p 8080:8080 plantuml/plantuml-server| Type | Keywords | Best For |
|---|---|---|
| Sequence | | Interactions, API flows, protocols |
| Use Case | | Requirements, user stories |
| Class | | OOP design, domain models |
| Activity | | Workflows, processes |
| Component | | System structure |
| Deployment | | Infrastructure, deployment |
| State | | State machines |
| Type | Keywords | Best For |
|---|---|---|
| JSON | | JSON structure visualization |
| YAML | | YAML structure visualization |
| Wireframe | | UI mockups |
| Gantt | | Project timelines |
| MindMap | | Hierarchical ideas |
| WBS | | Work breakdown |
| ER | | Database schemas |
| C4 | | Software architecture |
@startuml
' Your diagram code here
@enduml' This is a comment/' This is a block comment '/@startuml
title My Diagram Title
caption This is a caption
header Page Header
footer Page Footer
' Diagram content
@enduml@startuml
participant A
participant B
A -> B: Message
A <-- B: Response
@enduml@startuml
class Name {
- private
+ public
+ method()
}
A <|-- B : extends
A *-- B : contains
@enduml@startuml
start
:Action;
if (condition?) then (yes)
:True path;
else (no)
:False path;
endif
stop
@enduml@startuml
[*] --> State1
State1 --> State2 : event
State2 --> [*]
@enduml@startuml
[Component1] --> [Component2]
database DB
Component2 --> DB
@enduml| Reference | Content | When to Load |
|---|---|---|
| sequence.md | Participants, arrows, activation, groups, notes | Creating sequence diagrams |
| class.md | Classes, visibility, relationships, cardinality | Creating class diagrams |
| activity.md | Conditions, swimlanes, fork/join | Creating activity diagrams |
| state-component.md | State machines, components, deployment | Creating state/component diagrams |
| c4.md | C4 context, container, component diagrams | Creating C4 architecture diagrams |
| special-diagrams.md | ER, JSON, MindMap, Gantt | Creating non-UML diagrams |
| styling-setup.md | Skinparams, themes, installation | Customizing diagrams, setting up PlantUML |
| Extension | Description |
|---|---|
| Standard PlantUML file |
| Alternative extension |
| Short extension |
| Include file |