draw-io
Skill by ekusiadadus
Generates and validates draw.io diagrams in XML format for AI assistants. It applies 23 quality rules covering fonts, edge routing, containers, layers and Japanese text. Aimed at people making flowcharts, architecture and sequence diagrams in .drawio format.
Install draw-io
Built from the published package, never by AI.
git clone --depth 1 https://github.com/ekusiadadus/draw-mcp /tmp/draw-mcp && mkdir -p ~/.claude/skills && cp -r /tmp/draw-mcp/skills/draw-io ~/.claude/skills/draw-ioRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/ekusiadadus/draw-mcp /tmp/draw-mcp && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/draw-mcp/skills/draw-io ~/.gemini/antigravity-cli/skills/draw-ioAntigravity 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
draw-io is a skill that tells an AI assistant how to write draw.io diagrams as XML files. The specification sets MUST and SHOULD rules covering file structure, style strings, font settings, edge routing, containers, layers and Japanese text. Rules are graded as errors, warnings or info.
A 23-rule validator, run with the draw-mcp-validate CLI, checks generated files and can output text or JSON, filter by severity, and process multiple files. The source also recommends PNG export with the drawio command for verification. It is aimed at flowcharts, architecture diagrams and sequence diagrams in .drawio format, and it suggests Mermaid.js for simple flowcharts or ER diagrams instead.
Written from the project's SKILL.md and checked against it.
What it can do
- Generate draw.io XMLWrites .drawio diagrams in XML with fonts, containers and layers set per the spec.
- Edge routing rulesCovers orthogonal connectors, waypoints, jump styles and connection points.
- Container rulesCovers group containers, swimlanes and child coordinates relative to the parent.
- Japanese text guidanceSets character width guidance and Noto Sans JP as the default font.
- draw-mcp-validateValidates files against 23 rules with text or JSON output and a severity filter.
- PNG verificationExports a PNG with the drawio command to check how the diagram renders.
What you need
- draw.io desktop CLI (drawio command) for PNG export
- draw-mcp-validate CLI for validation
Try asking
- Draw a flowchart of our order process as a .drawio file
- Create an architecture diagram with swimlanes for each service
- Validate my diagram.drawio and list any errors
Good to know
- The spec covers XML output; simple diagrams may suit Mermaid.js via MCP instead.
- SHOULD rules are warnings, so they flag quality issues without failing the file.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/draw-io/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to draw-io
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
draw-io: common questions
What does the validator check?
It checks 23 rules across structure, style, edge, container, text and export modules, at error, warning or info severity.
Does it support Japanese text?
Yes. It has rules for Japanese character width and recommends Noto Sans JP as the default font.
When should I use Mermaid instead?
The source suggests Mermaid.js via MCP for simple flowcharts, sequence and ER diagrams, and XML for custom styling and precise positioning.
How do I install draw-io?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is draw-io free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is draw-io safe to use?
It scores 54 of 100. Grades: maintenance C, licence A, quality C. 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 draw-io?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
