PlantUML Diagrams
Use PlantUML when a formal UML or C4-style representation is useful.
Workflow
- Select the diagram family before writing source.
- Gather entities, relationships, lifecycle states, actors, or deployment nodes from real artifacts.
- Write
.pumlas the source of truth. - Render locally if PlantUML is available; otherwise use Kroki only if network access is acceptable.
- Keep generated images next to the
.pumlfile and report both paths.
Diagram Selection
- Sequence: API calls, protocol flow, review/approval workflows.
- Activity: pipelines, decision logic, manuscript or experiment process.
- Class/component: codebase architecture and interfaces.
- Deployment: infrastructure, runtime topology, services.
- C4: context/container/component documentation.
Boundaries
- Do not force PlantUML for informal ideation; use Mermaid or Excalidraw instead.
- Do not send private architecture to remote Kroki without permission.
- Do not invent classes or services that are not present in source artifacts.