
Draw.io Command-Line Diagrams
Lets an agent create, edit and export Draw.io diagrams through a command-line tool
- Repository
- HKUDS/CLI-Anything
- Stars
- 58,084
- Licence
- Apache-2.0
- Files
- 1 file
What it does
This skill teaches an AI agent to work with Draw.io diagrams by running a command-line program called cli-anything-drawio. Once installed, the agent can create a new diagram project, add shapes and connectors, move or restyle them, manage multiple pages, undo and redo changes, and export the result to PNG, PDF or SVG. It can also return results in a structured JSON format that is easier for software to read.
Great for
- Developers who want an agent to generate or update architecture or flow diagrams from scripts
- Designers or analysts who want repeatable diagram exports from a text request
- Teams automating documentation that includes Draw.io diagrams
Skip it if
- Users who only need to draw a diagram by hand in the Draw.io web app, since this adds setup without benefit
- Environments where the agent must not run installed software or install Python packages, since the skill depends on running a CLI tool
- Sensitive diagrams uploaded to a third-party service, because the file itself does not state whether any data leaves the machine
Try asking
- “Create a new Draw.io project and add three boxes connected by arrows”
- “Export my project.json diagram to a PDF with overwrite enabled”
- “Move and resize the shapes on page two, then undo the last change”
- “List all shapes in the diagram and return the output as JSON”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 1 original files, the Apache-2.0 licence and an attribution note.
skills.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip skills.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip skills.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Ask the agent to use absolute file paths, as the skill recommends, to avoid losing output files
- Check that drawio is installed before asking for exports, since rendering depends on it
- Save the project to a JSON file regularly so work can be reopened later
What's inside
- SKILL.md
Redistributed unmodified from HKUDS/CLI-Anything under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.