Skip to content
Back to skills

Uml Drawio

ASecurity

Generate, edit and export clean, strictly UML-compliant diagrams as editable draw.io files (use case, context, sequence, class, state, activity, package, component, deployment), with PDF/PNG/SVG export through the real draw.io renderer. Also writes the textual descriptions of use cases. Use whenever the user asks for a UML diagram, a use case description, a .drawio file, or to fix, restyle or export one. Also known as diagramme UML, cas d'utilisation, description textuelle, diagramme de séque...

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentspythongobashapi

Works with

  • vscode
  • cli
  • api

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add Chris-Manuelpipo/uml-drawio --skill uml-drawio --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Uml Drawio?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Uml Drawio
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/chris-manuelpipo-uml-drawio/badge)](https://www.skillsdirectory.com/skills/chris-manuelpipo-uml-drawio)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: uml-drawio
description: Generate, edit and export clean, strictly UML-compliant diagrams as editable draw.io files (use case, context, sequence, class, state, activity, package, component, deployment), with PDF/PNG/SVG export through the real draw.io renderer. Also writes the textual descriptions of use cases. Use whenever the user asks for a UML diagram, a use case description, a .drawio file, or to fix, restyle or export one. Also known as diagramme UML, cas d'utilisation, description textuelle, diagramme de séquence, diagramme de classes.
---

# UML diagrams in draw.io

Produce diagrams that a teacher or reviewer accepts as correct UML, that look drawn by hand
(sober, aligned, spaced, no crossings), and that stay **editable with the mouse** in draw.io.

## 0. First use on a machine

Run `python3 <path to this skill>/scripts/check.py`. If something is missing, show the user
the install command it prints and wait; do not try to work around a missing export engine.

## 1. Pick the notation profile (once per project)

Look for a line `UML profile: gi` or `UML profile: standard` in the project's `AGENTS.md` /
`CLAUDE.md`. If there is none, ask the user once, then write their answer there:

- **gi** (default, recommended): strict UML plus the conventions of French computer engineering
  ("génie informatique") courses: no diagram frame, barred-head system actors, `:Name` underlined
  lifelines, interface → controller → business objects in technical sequences. Read
  [references/profile-gi.md](references/profile-gi.md).
- **standard**: plain OMG UML 2.5. Read [references/profile-standard.md](references/profile-standard.md).

Always read [references/style.md](references/style.md) too: layout rules shared by both profiles.

**Language:** the diagram text follows the project's language (French project → French labels).
Never translate the user's names of actors, use cases or classes.

## 1b. Use case descriptions come first

When the work includes use cases, write (or check) the textual description of each one before
drawing its system sequence and activity diagrams, which are derived from it. Template, rules
and checklist: [references/use-case-descriptions.md](references/use-case-descriptions.md).

## 2. New diagram → generate it from Python

Write a description file (one per diagram family, e.g. `diagrams_src/use_cases.py`) with the
generator API ([references/api.md](references/api.md), working example: `examples/library.py`
at the repository root). Explicit coordinates on a 10 px grid; the generator measures text,
routes edges like draw.io and places multiplicities and labels precisely.

```bash
S=<path to this skill>/scripts          # needs Python 3.8+ and Pillow
python3 $S/generate.py diagrams_src/*.py -o diagrams/      # writes .drawio + runs the geometric lint
```

## 3. Existing or hand-edited diagram → edit it in place

A `.drawio` file the user has touched in draw.io is the source of truth: **never regenerate it**
(`generate.py` refuses unless `--force`). Edit cell by cell instead, keeping every other
coordinate untouched. See [references/editing.md](references/editing.md).

```bash
python3 $S/drawio_io.py list diagrams/x.drawio                  # ids, shapes, geometry, text
python3 $S/drawio_io.py set diagrams/x.drawio c12 --value 'New label' --move 0,40
```

## 4. Check, export, look

```bash
python3 $S/lint.py diagrams/ --profile gi                       # must print OK for every file
python3 $S/export.py diagrams/ -f png -o /tmp/preview           # then LOOK at every PNG
python3 $S/export.py diagrams/ -f pdf -o figures/               # vector PDF for LaTeX / Word
```

The lint catches overlaps, dangling edges, invented keywords, colours, frames and lifeline
names (`generate.py` also catches edges crossing shapes). It cannot judge aesthetics: **open each PNG and inspect it** for
labels touching lines, crossings, cramped or unbalanced areas, diagonal edges that could be
straight. Fix and repeat until it would pass a picky teacher's review.

Export engine: draw.io desktop CLI if installed, else headless Chrome + the draw.io viewer shipped
with the VS Code extension `hediet.vscode-drawio` (fully offline). `export.py` says which one it
used and how to install one if none is found.

## 5. Deliver

Give the user the `.drawio` files (editable) and the exports. If two formats of the same model
exist in the project (e.g. PlantUML too), report any change in both.

Files in this skill

  • SKILL.md4 KB
  • references/api.md5.3 KB
  • references/editing.md2.1 KB
  • references/profile-gi.md3.4 KB
  • references/profile-standard.md988 B
  • references/style.md1.7 KB
  • scripts/actdsl.py5.8 KB
  • scripts/check.py2.3 KB
  • scripts/dio.py45.6 KB
  • scripts/drawio_io.py5.9 KB
  • scripts/export.py8.2 KB
  • scripts/generate.py2.9 KB
  • scripts/lint.py7.1 KB
  • scripts/seqdsl.py5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.