cli-anything-drawio
Skill by HKUDS
Lets AI assistants create, edit, and export Draw.io diagrams through a command-line interface. It is built for scripted diagram work and for agents, with a JSON output mode. Requires Python 3.10+ and drawio installed on the system.
Install cli-anything-drawio
Built from the published package, never by AI.
git clone --depth 1 https://github.com/HKUDS/CLI-Anything /tmp/CLI-Anything && mkdir -p ~/.claude/skills && cp -r /tmp/CLI-Anything/skills/cli-anything-drawio ~/.claude/skills/cli-anything-drawioRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/HKUDS/CLI-Anything /tmp/CLI-Anything && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/CLI-Anything/skills/cli-anything-drawio ~/.gemini/antigravity-cli/skills/cli-anything-drawioAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install cli-anything-drawio in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
cli-anything-drawio is a command-line harness for Draw.io. It lets users create new diagram projects, open and save .drawio project files, and add, move, resize, and style shapes. It can also add and style connectors between shapes, manage pages, and export diagrams.
The CLI runs in two modes. Without a subcommand it starts an interactive REPL with tab-completion and history. Every command also supports a --json flag that returns structured output for agent use. The source says undo and redo keep up to 50 levels of history. The tool is installed with pip and needs Python 3.10+ and drawio on the system. The source describes it for users who want to script diagram work and for AI agents that call the CLI.
Written from the project's SKILL.md and checked against it.
What it can do
- ProjectCreate, open, save, and inspect diagram project files, and print their raw XML.
- ShapeAdd, remove, list, label, move, resize, and style shapes on a diagram page.
- ConnectAdd, remove, label, and style connectors between shapes, and list edge styles.
- PageAdd, remove, rename, and list pages in a diagram.
- ExportRender the diagram to PNG, PDF, or SVG and list available export formats.
- SessionCheck session status, undo and redo operations, and save or list session state.
What you need
- Python 3.10+
- drawio installed on your system
Try asking
- Create a new Draw.io project file called myproject.json.
- Add two shapes to my diagram and connect them with an arrow.
- Export my diagram to a PDF file named output.pdf.
Good to know
- Undo and redo history holds up to 50 levels.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/cli-anything-drawio/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to cli-anything-drawio
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
cli-anything-drawio: common questions
Does this need Draw.io installed?
Yes. The source lists drawio as a prerequisite that must be installed on your system.
How does it work with AI agents?
Use the --json flag for parseable output, check return codes (0 for success), and parse stderr for error messages.
Which export formats are supported?
The export group renders diagrams to PNG, PDF, and SVG. The formats command lists the available options.
How do I install cli-anything-drawio?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cli-anything-drawio free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is cli-anything-drawio safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cli-anything-drawio?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
