plantuml
Generate PlantUML diagrams from text descriptions and convert them to PNG/SVG images. Use when asked to "create a diagram", "generate PlantUML", "convert puml…
от SpillwaveSolutions★ 46 звёзд на GitHub
Установить plantuml в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
PlantUML Diagram Generation and Conversion
Table of Contents
- Purpose
- When to Use This Skill
- Prerequisites
- Creating Diagrams
- Converting Source Code to Diagrams
- Converting Diagrams to Images
- Best Practices
- Troubleshooting
- References
Purpose
This skill enables comprehensive PlantUML diagram creation and conversion workflows. PlantUML is a text-based diagramming tool that generates professional diagrams from simple, intuitive syntax.
Core capabilities:
- Create diagrams from natural language descriptions
- Convert source code to architecture diagrams (Spring Boot, FastAPI, Python ETL, Node.js, React)
- Convert standalone
.pumlfiles to PNG or SVG images - Extract
pumlcode blocks from markdown and convert to images - Process linked
.pumlfiles in markdown () - Validate PlantUML syntax without conversion
- Replace markdown diagrams with image links for publication (Confluence, Notion)
When to Use This Skill
Activate for:
- Diagram creation requests (e.g., "Create a sequence diagram showing authentication flow")
- Code architecture visualization (e.g., "Create deployment diagram for my Spring Boot app")
.pumlfile to image conversion- Markdown files containing ```puml code blocks or linked .puml files
- Confluence or Notion markdown preparation (documents with PlantUML diagrams require conversion first)
- Specific diagram types: UML (sequence, class, activity, state, component, deployment, use case, object, timing) or non-UML (ER, Gantt, mindmap, WBS, JSON/YAML, network, Archimate, wireframes)
- PlantUML syntax validation
Confluence/Notion uploads: If markdown contains PlantUML diagrams, run conversion FIRST before upload.
Prerequisites
Before creating diagrams, verify the PlantUML setup:
python scripts/check_setup.py
Required components:
| Component | Purpose | Installation |
|---|---|---|
| Java JRE/JDK 8+ | Runtime | https://www.oracle.com/java/technologies/downloads/ |
| plantuml.jar | Diagram generator | https://plantuml.com/download (place in ~/plantuml.jar or set PLANTUML_JAR) |
| Graphviz (optional) | Complex layouts | https://graphviz.org/download/ |
Creating Diagrams
Diagram Type Identification
Identify the appropriate diagram type based on user intent:
| User Intent | Diagram Type | Reference |
|---|---|---|
| Interactions over time | Sequence | references/sequence_diagrams.md |
| System structure with classes | Class | references/class_diagrams.md |
| Workflows, decision flows | Activity | references/activity_diagrams.md |
| Object states and transitions | State | references/state_diagrams.md |
| Database schemas | ER (Entity Relationship) | references/er_diagrams.md |
| Project timelines | Gantt | references/gantt_diagrams.md |
| Idea organization | MindMap | references/mindmap_diagrams.md |
| System architecture | Component | references/component_diagrams.md |
| Actors and features | Use Case | references/use_case_diagrams.md |
| All 19 types | See navigation hub | references/toc.md |
Syntax resources:
references/toc.md: Navigation hub linking to all diagram typesreferences/common_format.md: Universal elements (delimiters, metadata, comments, notes)references/styling_guide.md: Modern<style>syntax for visual customization
Resilient Workflow (Primary - Recommended)
For reliable diagram generation with error recovery, follow the 4-step resilient workflow:
Step 1: Identify Diagram Type & Load Reference
- Identify diagram type from user intent
- Load
references/[diagram_type]_diagrams.mdfor syntax guide - Consult
references/toc.mdif ambiguous
Step 2: Create File with Structured Naming
./diagrams/<markdown_name>_<num>_<type>_<title>.puml
Example: ./diagrams/architecture_001_sequence_user_auth.puml
Step 3: Convert with Error Handling (max 3 retries)
If conversion fails:
- Check
references/troubleshooting/toc.mdfor error classification - Load specific guide from
references/troubleshooting/[category]_guide.md - Check
references/common_syntax_errors.mdfor diagram type
Step 4: Validate & Integrate
- Verify image file exists
- Add image link:
 - Keep .puml source file for future edits
Full documentation: references/workflows/resilient-execution-guide.md
Quick Synt
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- .skilz-manifest.yaml
- CHANGELOG.md
- FINAL_SUMMARY.md
- PDA_OPTIMIZATION_SUMMARY.md
- README.md
- SKILL-PDA.md
- examples/fastapi/README.md
- examples/fastapi/deployment-diagram.puml
- examples/python-etl/architecture-diagram.puml
- examples/spring-boot/README.md
- examples/spring-boot/component-diagram.puml
- examples/spring-boot/deployment-diagram.puml
- examples/spring-boot/sequence-diagram.puml
- examples/test_linked_puml.md
- examples/test_resilient.md
- references/activity_diagrams.md
- references/archimate_diagrams.md
- references/class_diagrams.md
- references/common_format.md
- references/common_syntax_errors.md
- references/component_diagrams.md
- references/deployment_diagrams.md
- references/ditaa_diagrams.md
- references/er_diagrams.md
- references/gantt_diagrams.md
- references/json_yaml_diagrams.md
- references/mindmap_diagrams.md
- references/network_diagrams.md
- references/object_diagrams.md
- references/plantuml_reference.md
- references/sequence_diagrams.md
- references/state_diagrams.md
- references/styling_guide.md
- references/timeline_diagrams.md
- references/timing_diagrams.md
- references/toc.md
- references/troubleshooting/activity_diagrams_guide.md
- references/troubleshooting/arrows_relationships_guide.md
- references/troubleshooting/class_diagrams_guide.md
- references/troubleshooting/er_diagrams_guide.md
FAQ
Что делает скилл plantuml?
Generate PlantUML diagrams from text descriptions and convert them to PNG/SVG images. Use when asked to "create a diagram", "generate PlantUML", "convert puml to image", "extract diagrams from markdown", or "prepare markdown for Confluence". Supports all PlantUML diagram types including UML (sequence, class, activity, state, component, deployment, use case, object, timing) and non-UML (ER diagrams, Gantt charts, JSON/YAML visualization, mindmaps, WBS, network diagrams, wireframes, and more).
Как установить скилл plantuml?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл plantuml запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…