plantuml
Files
Install
/plugin install doc-skills@llm-skills
/doc-skills:plantuml
SKILL.md
name: plantuml description: Use when a task involves PlantUML source, UML-style diagrams, sequence or component diagrams, includes, themes, stdlib usage, or PlantUML rendering and export workflows.
PlantUML Diagrams
Intent Router
Load sections based on the task:
- Diagram families and syntax patterns ->
references/diagram-families.md - Includes, themes, and stdlib usage ->
references/includes-themes-and-stdlib.md - Rendering, layout, and troubleshooting ->
references/render-and-debug.md
Overview
This skill covers PlantUML authoring and rendering. Use it for UML-oriented diagrams, architecture views, text-first diagram maintenance, and export workflows driven by the PlantUML toolchain.
The guidance follows the official PlantUML documentation and standard rendering patterns.
Quick Start
Before promising an export, verify that PlantUML is actually runnable in the current environment:
plantuml -version
# or use Java plus a jar when the native launcher is unavailable
export PLANTUML_JAR_PATH=/absolute/path/to/plantuml.jar
python plantuml/scripts/render.py system.puml --to svg --output out
python plantuml/scripts/render.py sequence.puml --to png --output out --theme plain
If neither the native launcher nor the JAR workflow is available, stop and surface the install guidance from plantuml/scripts/render.py.
Preferred Workflow
- Choose the PlantUML diagram family that best matches the model instead of forcing everything into a sequence diagram.
- Keep includes and themes explicit so output is reproducible.
- Prefer text-level layout hints before manual image editing.
- Render locally before embedding diagrams in docs or slide material.
- Narrow the source to a small failing example when debugging parser or layout issues.
Authoring Guidance
This skill is the right fit for:
- UML class, sequence, activity, component, and deployment diagrams
- C4-style diagrams where PlantUML support is already part of the workflow
- reusable diagram includes and stdlib-backed notation
- architecture diagrams that benefit from text review and diffability
- export pipelines based on the PlantUML CLI or JAR path
Rendering and Export
PlantUML can run through its native launcher or a Java plus JAR workflow. SVG and PNG are the most common output targets, with text-based exports useful for lightweight review paths.
plantuml -tsvg diagram.puml
plantuml -tpng diagram.puml
Portability and Troubleshooting
Common problems include missing Java runtime support, unresolved includes, theme drift, and layout directives that make output less predictable instead of more readable. Shrink the source until the failing construct is obvious.
Official References
Primary sources:
- PlantUML documentation: https://plantuml.com/
- PlantUML guide pages: https://plantuml.com/guide
Deep-dive references for this skill:
references/diagram-families.mdreferences/includes-themes-and-stdlib.mdreferences/render-and-debug.md