drawio-skill: editable draw.io diagrams from text or code
Agents365-ai/drawio-skill
Your AI assistant draws diagrams you can still edit: architecture maps, flowcharts, database charts, org charts and more, saved as draw.io files. It can also read your code, server setup files or database tables and draw them for you. It checks its own picture, fixes overlaps and shows you a draft before the final export.
Pack description by its author: “Your AI assistant draws diagrams you can still edit: architecture maps, flowcharts, database charts, org charts and more, saved as draw.io files. It can also read your code, server setup files or database tables and draw them for you. It checks its own picture, fixes overlaps and shows you a draft before the final export.”
Documents, slides and spreadsheetsGives your assistant new abilities with scriptsKnowledge and rules for your assistant
1. Changes your files
None of its skills edits your files.
github.com/Agents365-ai/drawio-skill/blob/5727082/2. Runs code on your machine
Install: Markdown, data files and Python scripts are copied. No hooks, no install scripts. Every diagram: The assistant runs the bundled Python scripts (diagramctl.py, validate.py and others) and writes .drawio, PNG, HTML or JSON files where you ask, by default in the working folder. Core commands are offline.
github.com/Agents365-ai/drawio-skill/blob/5727082/3. Sends data
Only install from github.com/Agents365-ai/drawio-skill. The skill runs bundled Python scripts and asks for command, file and web-fetch tools. Treat labels and source files as data, and use sanitized JSON for live infrastructure, since secrets in it end up inside the diagram.
github.com/Agents365-ai/drawio-skill/blob/5727082/Checked against the pack's files at commit 5727082, on Nov 6, 2026. Tap a verdict to see its source.How we checkedReport an error
The pack has changed since AgentGid checked it on Nov 6, 2026. Some details may be out of date.
Good for you if
- You want a diagram you can open and change in draw.io, not a flat picture
- You want a map of an existing project, its servers or its database drawn from the real files
- You make slides or documents with system diagrams and want real AWS, Kubernetes or AI brand icons
- You use Claude Code, Cursor, Copilot, Codex or a similar assistant that can run commands
Probably not for you if
- A simple text diagram in your docs is enough: the author points to Mermaid or PlantUML for that
- You want a hand-drawn whiteboard look: the author points to its sibling excalidraw-skill or tldraw-skill
What you'll notice
- A .drawio file plus a PNG in your working folder by default
- A draft first: the assistant looks at its own picture, fixes overlaps and clipped labels (up to two rounds), then asks you
- Python helper tools run on your computer; the draw.io desktop app makes the PNG, SVG and PDF files
- Saved styles of your own live in a folder in your home folder (~/.drawio-skill/styles/)
What you need
- Claude Code, Cursor, Copilot, OpenClaw, Codex, Autohand Code and 1 more
- Free, MIT license
- One command (skills installer) or copy one folder; install the draw.io desktop app for exports
- Python 3 is required. Graphviz is optional, for automatic layout of large graphs. draw.io 30 or newer unlocks Mermaid conversion.
Words on this page
- Skill
- A set of written instructions your AI assistant follows. Installing one is like giving it a playbook.
- CLI
- A program you run by typing commands in a terminal.
- MCP
- A standard way to connect an AI assistant to outside tools and data.
- Repository
- A project folder on GitHub with its files and history.
| Repository | Agents365-ai/drawio-skill · website |
|---|---|
| GitHub stars | 10,895 |
| Skills | 1 · 1 with scripts |
| Category | Documents, slides and spreadsheets |
| License | MIT |
| Last updated | Nov 22, 2026 · card checked Nov 6, 2026 at commit 5727082 |
| Install counts | Agents365-ai/drawio-skill on skills.sh, Vercel's skills directory, which shows installs and security audits per skill |
Agents365-ai/drawio-skill popularity over time
What drawio-skill does
- Picks a route for the request: hand-written draw.io XML for precise styling, Mermaid conversion for standard charts (draw.io 30+), automatic layout for graphs of about 15+ nodes
- Imports real sources into diagrams: Python, JS/TS, Go and Rust code, Terraform, Kubernetes, docker-compose, SQL tables, OpenAPI, AsyncAPI, Protobuf, GraphQL and CI pipelines
- Keeps one model of the system (Diagram IR) and projects executive, system, deployment, data-flow and security views from it
- Updates a diagram from changed sources without losing your manual layout; removed parts stay as faded, reviewable elements
- Checks diagrams: a structural linter with a score, architecture rules from a policy file, queries, a written review and failure what-if
- Searches over 10,000 official draw.io shapes and 321 AI brand logos instead of guessing icon names
- Exports to PNG, SVG and PDF, and repurposes a diagram as an HTML viewer, slide deck, Mermaid, Markdown, animated SVG or a click-through walkthrough
- Rebuilds an editable diagram from a screenshot or a whiteboard photo
Never cut, per the skill: Source-backed relationships over guesses; inferred findings are not presented as verified facts; no secrets in diagram properties.
From the pack's SKILL.md files, summarised by AgentGid.
The skill, explained
drawio-skill
Draws, updates, checks and exports editable draw.io diagrams; writes new diagram files, not your code
You give
- What to draw, in words (or a screenshot or whiteboard photo)
- Or the source to draw from: a code folder, Terraform, Kubernetes or compose files, SQL, an API schema
- Optional: a style name (corporate, dark, colorblind-safe, handdrawn or your own)
- Optional: the output formats you want (PNG, SVG, PDF)
You get
- An editable .drawio file
- A PNG by default; SVG or PDF with the diagram embedded on request
- A validation score and, on request, an architecture review in Markdown
- Optional extras: linked views, a what-if impact report, an offline HTML walkthrough
Its rules, in pictures
Default fill colours by role: services, databases, queues, gateways, errors, external, security
Drawn by AgentGid from the values in the skill's files. This is not output of the skill; sample text is ours.
See it in action
Same task, same model, with and without the skill
Prompt: Create a microservices e-commerce architecture with Mobile/Web/Admin clients, API Gateway (auth + rate limiting + routing), Auth/User/Order/Product/Payment services, Kafka message queue, Notification service, and User DB / Order DB / Product DB / Redis Cache / Stripe API
The author's rendered result is assets/microservices-example.png, with the editable source in assets/microservices-example.drawio..
Source: README.md. AgentGid did not run it.
Prompt: python3 examples/architecture-studio/generate.py
Code becomes a model and an editable import graph; a manually tuned diagram is reconciled with label conflicts marked; a checkout architecture gets linked views, a policy result, a failure overlay and an offline HTML walkthrough. All outputs are in examples/architecture-studio/generated/..
Source: examples/architecture-studio/README.md. AgentGid did not run it.
When to reach for it
| You want | Use |
|---|---|
| A new diagram from a description | /drawio-skill plus what to draw |
| A map of your codebase or infrastructure | "Visualize the module structure of this Python project" (diagramctl.py build) |
| Update a diagram after the code changed without losing your layout | diagramctl.py sync |
| Check a diagram against architecture rules | diagramctl.py test --rules policy.yml |
| The same look on every diagram | "Learn my style from brand.drawio as mybrand", then name the style |
| An editable diagram from a whiteboard photo | Give the photo and ask for an editable .drawio |
Skills in Agents365-ai/drawio-skill
| Skill | In plain words | Changes files? | What it does (author) |
|---|---|---|---|
drawio-skill/drawio-skill, then describe the diagram (Codex: $drawio-skill) |
Draws, updates, checks and exports editable draw.io diagrams; writes new diagram files, not your code | No | Create and edit draw.io/diagrams.net diagrams as editable `.drawio` files. Covers architecture, UML/ERD/sequence, BPMN, network, and swimlane views authored from a description or converted from code, IaC, SQL, and API schemas, plus sync, query, test, review, export, and publish of existing… has scriptsnpx skills add Agents365-ai/drawio-skill --skill drawio-skill |
The author's descriptions come from each skill's SKILL.md; the plain-words column is AgentGid's.
Good to know before you install
- In Claude Code it does not switch on by itself: the skill file disables automatic loading, so call it by name.
- Codex may pick it up on its own: its agent file allows implicit invocation.
- It asks for broad tools: running commands, reading and writing files, and fetching web pages.
- It writes outside your project: style presets you save go to ~/.drawio-skill/styles/, after you approve a preview.
- AI brand logos load from a public icon CDN when the diagram is opened, unless you ask for embedded icons.
- Keep secrets out of diagram labels and properties: they are saved inside the .drawio and HTML files.
Before you start
Works in
- Claude Code: skills folder
- Codex: plugin or skills folder
- OpenCode: skills folder
- Any agent (Cursor, Copilot and others): skills CLI
- Claude Desktop, Cursor, VS Code: MCP server (optional)
You will need
- Python 3: All bundled scripts are Python
- draw.io desktop app: PNG, SVG and PDF exports; version 30+ for Mermaid conversion
- Graphviz (optional): Automatic layout of large graphs
- git: History and PR diff workflows
Steps only you can do
- Install the draw.io desktop app (version 30 or newer recommended) for PNG, SVG and PDF exports (https://github.com/jgraph/drawio-desktop/releases)
Then: The agent exports drafts and final files with the drawio command - For live infrastructure diagrams, export the state yourself (terraform show -json, docker inspect or kubectl ... -o json) and remove secrets (skills/drawio-skill/references/live-infra.md)
Then: The agent imports the sanitized JSON into a diagram - For the PR diff bot, add the GitHub workflow to your repository and allow it to write pull request comments (skills/drawio-skill/references/pr-bot.md)
Then: Each pull request that touches a .drawio file gets a rendered before/after comment
Mistakes to avoid
Clone the whole repository into the skills folder
Clone it elsewhere and link or copy only skills/drawio-skill into the skills folder
The host must find SKILL.md one level down; a nested repository root is not discovered reliablyExpect Claude Code to use the skill on its own when you ask for a diagram
Call /drawio-skill by name
The skill file turns off automatic invocationExport an AI or data-store logo diagram offline without --embed
Pass --embed to inline the icons, or use generic local shapes
Logos are linked from a CDN by default, so an offline render shows empty boxesUse -e on the draft PNG or combine --width with -s in one export
Draft PNG without -e; final PNG with -e and -s, then run repair_png.py
The skill's export rules forbid both combinationsSync with --prune to tidy an updated diagram
Run sync without --prune and review the faded removed elements
--prune is the only mode that deletes retired parts from the new file
Which one to pick
| If you need | Pick |
|---|---|
| You want editable draw.io files, imports from code, IaC and SQL, and architecture checks | This pack |
| You want a self-contained HTML and SVG editorial diagram rather than a draw.io file | cathrynlavery/diagram-design |
| You want an interactive diagram of an idea, plan or codebase | tt-a1i/archify |
| You want themed Mermaid diagrams rendered as SVG or terminal ASCII | imxv/Pretty-mermaid-skills |
Works well with
- claude-code: The README shows the Claude Code install and the skill is called as /drawio-skill
- openai-codex: The repo ships a Codex plugin manifest and a Codex agent file
- skills: The README installs the skill with npx skills add
May I use it like this?
| Use | Answer | Condition |
|---|---|---|
| In a commercial app | Yes | MIT: keep the license notice |
| Passing the files on | With conditions | MIT notice for the skill; the bundled shape index comes from Apache 2.0 sources, so keep its attribution file |
| Work for clients | With conditions | MIT allows it; brand logos in diagrams are third-party trademarks used for identification only |
What leaves your machine
- Requests for AI and data-store logo SVGs → The icon CDNs on the skill's allow-list (unpkg, simple-icons, the Databricks icons site), When aiicons.py or dbxicons.py runs with --embed. Opt out: Use generic or local shapes, or skip --embed and brand logos
- Requests for logo images linked inside the diagram → The unpkg CDN, Each time a diagram with linked (not embedded) logos is opened or rendered. Opt out: Pass --embed to inline the icons
- A comment with rendered before/after diagram images → GitHub, on the pull request, Only if you set up the optional PR diff GitHub Action. Opt out: Do not add the workflow
Install drawio-skill
Official commands from the repository
npx skills add Agents365-ai/drawio-skill -g
Update with npx skills update drawio-skill -g.
mkdir -p ~/src git clone https://github.com/Agents365-ai/drawio-skill.git ~/src/drawio-skill mkdir -p ~/.claude/skills ln -s ~/src/drawio-skill/skills/drawio-skill ~/.claude/skills/drawio-skill
Use cp -R instead of ln -s on hosts that do not follow symlinks. Link only the skills/drawio-skill folder, not the whole repository.
Remove: delete ~/.claude/skills/drawio-skill (and ~/src/drawio-skill)
Same folder, other skill roots: ~/.agents/skills/ (Codex), ~/.config/opencode/skills/, ~/.openclaw/skills/, ~/.autohand/skills/.
brew install --cask drawio
macOS; Windows and Linux use the installers from jgraph/drawio-desktop releases. Check with drawio --version.
claude mcp add drawio-skill -- python3 <path>/scripts/diagramctl_mcp.py
Optional: exposes build, sync, views, test, review, query, what-if and story as MCP tools to Claude Desktop, Cursor, VS Code or Codex.
Or with the open-source skills CLI: npx skills add Agents365-ai/drawio-skill. Skills are instructions your agent follows: read them before installing.
What it installs and runs on your machine
Read in the code at commit 5727082, Nov 6, 2026
| When | What happens |
|---|---|
| Install | Markdown, data files and Python scripts are copied. No hooks, no install scripts. |
| Every diagram | The assistant runs the bundled Python scripts (diagramctl.py, validate.py and others) and writes .drawio, PNG, HTML or JSON files where you ask, by default in the working folder. Core commands are offline. |
| Export and layout | Launches the local draw.io desktop app, Graphviz dot, and git for history or pull-request diffs. Subprocesses use argument lists, not a shell. |
| Saving a style preset | Writes a temp file /tmp/drawio-preset-<name>.json, then ~/.drawio-skill/styles/<name>.json after you approve. |
| Network: --embed icons | aiicons.py --embed and dbxicons.py --embed download icons only from allow-listed HTTPS hosts (unpkg, simple-icons, the Databricks icons site). Without --embed the diagram links to those URLs. |
| Network: maintainer refresh | dbxicons.py --refresh-manifest calls the GitHub API; the docs say not to run it for normal diagrams. |
| No draw.io app | encode_drawio_url.py puts the diagram into a diagrams.net link fragment; nothing is uploaded until you open it, and the fragment stays in your browser. |
| Optional MCP server | diagramctl_mcp.py runs over stdio when you register it; no network, no GUI launch. |
| Live infrastructure | Only reads JSON you supply from terraform show, docker inspect or kubectl; it does not choose credentials. |
The author's numbers, as reported
AgentGid did not run these tests
Quick answers
- Is it free?
- Yes, MIT license.
- Do I need the draw.io app?
- For PNG, SVG and PDF exports, yes. Without it the skill can still write the .drawio file or give you a diagrams.net link.
- Does it send my code or diagrams anywhere?
- Core commands are offline. Network use is limited to downloading icons with --embed, icon links opened when you view a diagram, and a maintainer-only refresh.
- Will it overwrite my hand-tuned diagram?
- No. Sync writes a separate output and keeps your layout; parts are deleted only with --prune when you ask.
- Does it start by itself in Claude Code?
- No. The skill file turns off automatic loading, so call /drawio-skill. In Codex it may be used automatically.
Checked by AgentGid on Nov 6, 2026 against commit 5727082 of the pack's own files. Related: Agents365-ai/excalidraw-skill, Agents365-ai/mermaid-skill, Agents365-ai/plantuml-skill, Agents365-ai/tldraw-skill, jgraph/drawio-mcp. agent.md for AI agents · Report a mistake
More documents, slides and spreadsheets skill packs
| # | Install | |||||
|---|---|---|---|---|---|---|
| 1 |
Anthropic's own collection of 19 skills for Claude. Four of them make and edit Word, Excel, PowerPoint and PDF files. The others help with design, art, team updates, longer documents, testing web pages and building new skills. |
199K | +13.9K | 19 | ||
| 2 |
OpenDesign is a free design app that uses the AI coding assistant you already have to make web pages, slide decks, documents, images and short videos in your brand's style. Its skills folder holds 169 design playbooks. About half are full workflows and templates; the other half only point to skills in other places. Most skills work best inside the app. |
109K | +6,718 | 415 | ||
| 3 |
virgiliojr94/book-to-skill
Checked
You point your AI assistant at a book or a folder of documents you own. It pulls the text out on your computer, then writes a new skill from it: the book's key ideas, a file per chapter, a glossary and a one-page cheat sheet. Later you ask that skill about a topic and the assistant reads the right chapter before it answers. |
38.7K | +3,002 | 1 | ||
| 4 |
Makes a slide deck as one web page that opens in any browser. It asks about your talk first, shows you three different looks as real title slides, and builds the whole deck in the one you pick. It can also turn a PowerPoint file into such a deck, and share it as a link or a PDF. |
32.8K | +1,672 | 1 | ||
| 5 |
AgriciDaniel/claude-seo
Checked
Give your assistant a website address and it checks the site the way an SEO consultant would: speed, indexing, content quality, structured data, local search and AI search. It saves a report and a to-do list sorted from critical to nice-to-have. Separate commands plan a strategy, write content briefs and watch a page for changes. |
31.5K | +10.5K | 35 | ||
| 6 |
op7418/guizang-ppt-skill
Checked
Your assistant builds a slide deck as one web page that you open in a browser and swipe through sideways. You pick one of two looks: an editorial magazine style or a strict Swiss grid style. The deck has a speaker view with notes, timers and rehearsal, and a second window for the audience. |
30.2K | +1,855 | 1 |
No pack matches.