drawio
Vendored draw.io diagram generation
skill for Claude Code. Creates native .drawio files with optional export to
PNG, SVG, or PDF via the draw.io Desktop CLI.
Prerequisites
- draw.io Desktop — required for editing diagrams and CLI export
- macOS:
brew install --cask drawio - Linux: available via snap/apt/flatpak
- Windows: installer from draw.io releases
- macOS:
- @drawio/postprocess (optional) —
npx @drawio/postprocessfor edge routing optimization. Skipped silently if unavailable.
Usage
Invoke the skill with /drawio followed by a diagram description:
/drawio flowchart for user login→user-login.drawio/drawio png architecture overview→architecture-overview.drawio.png/drawio svg ER diagram for users→users-er.drawio.svg
Supported Formats
| Format | Embed XML | Notes |
|---|---|---|
.drawio | N/A | Native — always generated |
.drawio.png | Yes | Viewable everywhere, editable in draw.io |
.drawio.svg | Yes | Scalable, editable in draw.io |
.drawio.pdf | Yes | Printable, editable in draw.io |
Upstream Tracking
The vendored SKILL.md is synced weekly from
jgraph/drawio-mcp via the
sync-drawio-skill GitHub Actions workflow. Changes arrive as PRs.
The skill also vendors
shared/xml-reference.md
from upstream alongside SKILL.md, synced at the same SHA. Both files are
updated together by the sync-drawio-skill workflow.
See UPSTREAM.md for the current vendored commit SHA.
License
The vendored skill content is licensed under Apache 2.0 by JGraph Ltd. See LICENSE.