Loading...
Loading...
Generate diagrams (state machines, class diagrams) from natural language requirements using Umple. Use when user requests: (1) State machine diagrams (2) UML class diagrams (3) Diagram generation from text descriptions, (4) Any mention of Umple diagram generation, (5) Visual representation of states, transitions, events, classes, or relationships. Outputs SVG diagrams with organized folder structure.
npx skill4agent add umple/umple-skills umple-diagram-generator.ump| Type | Umple generator | Read before writing Umple |
|---|---|---|
| | |
| | |
scripts/main.tsnpx -y bun# Folder mode: organized output with all files (.ump, .gv, .svg)
npx -y bun ${SKILL_DIR}/scripts/main.ts --input model.ump --output ./diagrams --name "light-controller"
# Exact path mode: save SVG to specific file path
npx -y bun ${SKILL_DIR}/scripts/main.ts --input model.ump --output ./my-diagram.svg
# Class diagram with custom name
npx -y bun ${SKILL_DIR}/scripts/main.ts --input model.ump --output ./diagrams --name "user-system" --type class-diagram${SKILL_DIR}| Option | Description |
|---|---|
| Input |
| Output path: directory for folder mode, or |
| Diagram name for folder mode (optional, triggers folder mode) |
| Diagram type: |
| GvStateDiagram suboption (repeatable) |
| JSON output with details |
| Show help |
--name--output.ump.gv.svg--name<sanitized-name>_<timestamp>/--name<diagram-type>_<timestamp>/diagrams/
└── light-controller_20260121_183045/
├── model.ump
├── model.gv
└── model.svg--output.svgnpx -y bun ${SKILL_DIR}/scripts/main.ts --input model.ump --output /path/to/my-diagram.svg
# Result: /path/to/my-diagram.svg (only SVG, no folder created)| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Missing dependencies (umple or dot) |
| 2 | Umple validation/compilation failed |
| 3 | SVG generation failed or unsupported diagram type |
command -v umplecommand -v dot.svgumple.svg