Gitpedia

Drawio skill

Generate draw.io diagrams from natural language with 6 presets and a 2-round self-check loop. Exports to PNG/SVG/PDF/JPG.

From Agents365-ai·Updated May 30, 2026·View on GitHub·

**English** · [中文](README_CN.md) · [📖 Online Docs](https://agents365-ai.github.io/drawio-skill/) The project is written primarily in Python, distributed under the MIT License license, first published in 2026. It has gained significant community traction with 1,981 stars and 119 forks on GitHub. Key topics include: agent-skill, agent-skills, architecture-diagram, claude-code, claude-code-skill.

Latest release: v1.5.2v1.5.2 — Plugin Marketplace + Modular SKILL.md
May 17, 2026View Changelog →

drawio-skill — From Text to Professional Diagrams

License: MIT
GitHub stars
GitHub forks
Latest Release
Last Commit

SkillsMP
ClawHub
Claude Code Plugin
Agent Skills
Discord

English · 中文 · 📖 Online Docs

A skill that turns natural-language descriptions into .drawio XML and exports them to PNG / SVG / PDF / JPG via the native draw.io desktop CLI. Works with Claude Code, Cursor, Copilot, OpenClaw, Codex, Hermes, and any agent compatible with the Agent Skills format.

<p align="center"> <img src="assets/microservices-example.png" width="900" alt="Microservices Architecture — generated from a single natural-language prompt"> </p>

✨ Highlights

  • 6 diagram type presets — ERD, UML Class, Sequence, Architecture, ML/Deep Learning, Flowchart
  • Self-check + auto-fix — reads its own PNG output and auto-fixes overlaps, clipped labels, stacked edges, and more (up to 2 rounds)
  • Iterative feedback loop — up to 5 rounds of targeted refinement
  • Style presets — capture your visual style from a .drawio file or image, reuse on demand
  • Clean layout — grid-aligned, spacing scales with diagram size, connectors routed clear of nodes
  • Multi-agent, zero-config — runs from a single SKILL.md; no MCP server, no background daemon (the optional npx installer needs Node, the skill itself does not)

🖼️ Examples

[!TIP]
The hero image above was generated from this single 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 skill is designed to route edges cleanly across different topologies, avoiding lines that cross through shapes:

<table> <tr> <td align="center" width="33%"> <img src="assets/demo-star.png" alt="Star topology" width="100%"><br> <b>Star</b> · 7 nodes<br> <sub>Central message broker with 6 microservices radiating outward, no edge crossings on this example.</sub> </td> <td align="center" width="33%"> <img src="assets/demo-layered.png" alt="Layered flow" width="100%"><br> <b>Layered</b> · 10 nodes / 4 tiers<br> <sub>E-commerce stack with horizontal and diagonal cross-connections routed via corridors.</sub> </td> <td align="center" width="33%"> <img src="assets/demo-ring.png" alt="Ring cycle" width="100%"><br> <b>Ring</b> · 8 nodes<br> <sub>CI/CD pipeline with a closed loop and 2 spur branches flowing along the perimeter.</sub> </td> </tr> </table>

Full walkthrough in docs/USAGE.md.

🚀 Installation

1. Install the draw.io desktop CLI

PlatformCommand
macOSbrew install --cask drawio
WindowsDownload installer
Linux.deb/.rpm from releases; sudo apt install xvfb for headless

Verify with drawio --version. Full recipes in docs/INSTALL_CLI.md.

2. Install the skill

bash
# Any agent (Claude Code, Cursor, Copilot, ...) npx skills add Agents365-ai/365-skills -g
text
# Claude Code plugin marketplace > /plugin marketplace add Agents365-ai/365-skills > /plugin install drawio
bash
# Manual install git clone https://github.com/Agents365-ai/drawio-skill.git \ ~/.claude/skills/drawio-skill

Also indexed on SkillsMP and ClawHub.

Updating: /plugin update drawio (Claude Code), skills update drawio-skill (SkillsMP), clawhub update drawio-pro-skill (OpenClaw), or git pull for manual installs — see docs/INSTALL_SKILL.md#updates.

⚡ Quick Start

After installation, just describe what you want. For example, an ML model:

Draw a Transformer encoder-decoder for machine translation: 6-layer encoder
with self-attention, 6-layer decoder with cross-attention, input embeddings
(batch × 512 × 768), positional encoding, and a final output projection.
Annotate tensor shapes between layers and color-code by layer type.

The skill plans the layout, generates the .drawio XML, exports to your chosen format, self-checks the result, and lets you iterate.

🧩 Supported Diagram Types

CategoryExamplesNotable features
Architecturemicroservices, cloud (AWS/GCP/Azure), network topology, deploymentTier-based swimlanes, hub-center strategy
ML / Deep LearningTransformer, CNN, LSTM, GRUTensor shape annotations, layer-type color coding
Flowchartsbusiness processes, workflows, decision trees, state machinesSemantic shapes (parallelogram I/O, diamond decisions)
UMLclass diagrams, sequence diagramsInheritance / composition / aggregation arrows; lifelines + activation boxes
DataER diagrams, data flow diagrams (DFD)Table containers, PK/FK notation
Otherorg charts, mind maps, wireframes

🎨 Style Presets

Capture a visual style once, reuse it everywhere. Three presets are built in — default, corporate, handdrawn — and you can teach the skill your own style from a .drawio file or a flat image:

Draw a microservices architecture using my "corporate" style
Learn my style from ~/diagrams/brand.drawio as "mybrand"

The skill extracts colors, shapes, fonts, and edge style, renders a preview, and only saves the preset after you approve. Full preset-management commands in docs/STYLE_PRESETS.md.

🔄 How it works

<p align="center"> <img src="assets/workflow.png" width="700" alt="Internal workflow"> </p>

Behind the scenes: check dependencies → plan layout → generate .drawio XML → export draft PNG → self-check + auto-fix (up to 2 rounds) → show to user → 5-round feedback loop until approved → final export.

🆚 Comparison

vs Native Agent (no skill)

FeatureNative agentdrawio-skill
Self-check after export✅ reads PNG, auto-fixes 6 issue types
Iterative review loop❌ manual re-prompt✅ targeted edits, 5-round safety valve
Diagram type presets✅ 6 presets (ERD, UML, Seq, Arch, ML, Flow)
Grid-aligned layout✅ 10px snap, routing corridors
Color paletterandom / inconsistent✅ 7-color semantic system
Style presets✅ learn from .drawio file or image

vs Other draw.io Skills & Tools

Featuredrawio-skilljgraph/drawio-mcp (official)<br>starsbahayonghang/drawio-skills<br>starsGBSOSS/ai-drawio<br>stars
ApproachPure SKILL.mdSKILL.md / MCP / ProjectYAML DSL + CLI (MCP optional)Claude Code plugin
Dependenciesdraw.io desktop onlydraw.io desktopdraw.io desktop (MCP optional)draw.io plugin + browser
Multi-agent✅ 6 platforms❌ Claude apps only✅ Claude / Gemini / Codex❌ Claude Code only
Self-check + auto-fix✅ 2-round (reads PNG)✅ validation + strict mode❌ screenshot only
Iterative review✅ 5-round loop❌ generate once✅ 3 workflows
Diagram presets✅ 6 types✅ paper-mode classifier
ML/DL diagrams✅ tensor shapes, layer colors
Color system✅ 7-color semantic✅ 6 themes
Browser fallback✅ diagrams.net URL❌ inline preview only✅ via optional MCP✅ diagrams.net viewer (primary)
Zero-config✅ copy skills/drawio-skill/✅ desktop-only mode❌ needs plugin install

Full comparison + key-advantages summary in docs/COMPARISON.md (with audit timestamp).

Part of the Agents365-ai diagram-skill family — pick the right tool for the job:

SkillStyleBest for
excalidraw-skillHand-drawn / sketchyWhiteboard mockups, informal diagrams
mermaid-skillText-based, auto-layoutREADME-embeddable, version-control friendly
plantuml-skillUML-focusedClass / sequence diagrams in CI pipelines
tldraw-skillWhiteboard collaborationCasual sketches, FigJam-style boards

💬 Community

<p align="center"> <img src="https://raw.githubusercontent.com/Agents365-ai/images_payment/main/qrcode/agents365ai_wechat_1.png" width="200" alt="WeChat Community Group"> </p>

❤️ Support

If this skill helps you, consider supporting the author:

<table> <tr> <td align="center"> <img src="https://raw.githubusercontent.com/Agents365-ai/images_payment/main/qrcode/wechat-pay.png" width="180" alt="WeChat Pay"> <br> <b>WeChat Pay</b> </td> <td align="center"> <img src="https://raw.githubusercontent.com/Agents365-ai/images_payment/main/qrcode/alipay.png" width="180" alt="Alipay"> <br> <b>Alipay</b> </td> <td align="center"> <img src="https://raw.githubusercontent.com/Agents365-ai/images_payment/main/qrcode/buymeacoffee.png" width="180" alt="Buy Me a Coffee"> <br> <b>Buy Me a Coffee</b> </td> <td align="center"> <img src="https://raw.githubusercontent.com/Agents365-ai/images_payment/main/awarding/award.gif" width="180" alt="Give a Reward"> <br> <b>Give a Reward</b> </td> </tr> </table>

👤 Author

Agents365-ai

📄 License

MIT

Contributors

Showing top 3 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from Agents365-ai/drawio-skill via the GitHub API.Last fetched: 5/30/2026