utility-drawio
Skill by skanehira
Generates draw.io diagrams as editable .drawio files and can export them to PNG, SVG or PDF with the diagram XML embedded. Built for users who want diagrams from an AI assistant saved as native draw.io files.
Install utility-drawio
Built from the published package, never by AI.
git clone --depth 1 https://github.com/skanehira/dotfiles /tmp/dotfiles && mkdir -p ~/.claude/skills && cp -r /tmp/dotfiles/agents/skills/utility-drawio ~/.claude/skills/utility-drawioRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/skanehira/dotfiles /tmp/dotfiles && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/dotfiles/agents/skills/utility-drawio ~/.gemini/antigravity-cli/skills/utility-drawioAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
utility-drawio is an agent skill that generates draw.io diagrams as native .drawio files. The assistant writes mxGraphModel XML for the requested diagram, saves it to the current working directory, and opens the result. If the user asks for PNG, SVG or PDF, the skill exports the file with the draw.io command-line interface using embedded diagram XML, so the exported file stays editable in draw.io. The intermediate .drawio file is deleted after a successful export.
The skill includes guidance on edge routing, asking the assistant to add waypoints so connectors do not cross unrelated shapes, and rules for well-formed XML. It is aimed at users of AI assistants who need flowcharts, architecture overviews, ER diagrams or similar diagrams saved as editable files. The source credits jgraph/drawio-mcp as the original.
Written from the project's SKILL.md and checked against it.
What it can do
- Generate .drawio filesWrites native mxGraphModel XML for a requested diagram to a .drawio file.
- Export to PNG, SVG or PDFExports diagrams with the draw.io CLI and embeds the diagram XML so they stay editable.
- Export to JPGExports JPG files, which the source notes do not support embedded XML.
- Edge routing with waypointsAdds waypoints so connectors route around shapes instead of crossing them.
- Multi-page PDF exportExports all pages of a diagram to PDF or selects a specific page.
- Descriptive file namingNames files from diagram content, using lowercase hyphens and double extensions for exports.
What you need
- draw.io desktop app with its command-line interface for exports
- Bash and Write tools available to the assistant
- macOS, Linux or Windows for the CLI paths given in the source
Try asking
- Create a flowchart for the login process and save it as a .drawio file
- Make a png flowchart for the checkout flow
- Draw an ER diagram for a blog database and export it as svg
Good to know
- Exports to PNG, SVG and PDF embed the XML, but JPG export does not.
- Export requires the draw.io desktop app and its CLI.
- Mermaid and CSV formats are not saved as native files, so the skill always generates XML directly.
- Transparent background is available for PNG export only.
Security check
B- Allowed to use Bash, Write without limitsIn
SKILL.md
Checked automatically: agents/skills/utility-drawio/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: BashWrite
Alternatives to utility-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
utility-drawio: common questions
Does the exported file stay editable in draw.io?
Yes. The source says PNG, SVG and PDF exports use --embed-diagram, so opening the exported file in draw.io recovers the full editable diagram.
What happens to the .drawio file after export?
The source says the intermediate .drawio file is deleted after a successful export, since the exported file contains the full diagram.
How does the skill keep connectors from crossing shapes?
The skill tells the assistant to trace each edge before writing XML and to add mxPoint waypoints to route around intervening shapes.
How do I install utility-drawio?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is utility-drawio free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is utility-drawio safe to use?
It scores 58 of 100. Grades: maintenance A, licence A, quality B. Security check: grade B (allowed to use bash, write without limits). Review the code before you install. How grades work.
What are alternatives to utility-drawio?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
