← Open Source

Agent skill that draws editorial diagrams as native, editable draw.io files: 52 types, brand profiles, a checker and CLI export.

Python
Momentum
+0stars in 24 hours0.0%
227
Stars
19
Forks
1
Contributors
Created 2026-11-29 · Updated 2026-12-06 · #27663 today
Top developers
MitchStares
README

drawio-design

An agent skill that draws editorial diagrams as native, editable draw.io files.

52 visual types · brand profiles · light and dark · a technical checker · PNG, SVG and PDF export

Install · Gallery · Usage · Brand profiles · Development



Ask your coding agent for a diagram. You get a .drawio file with real vertices and connected orthogonal edges. Open it in draw.io, drag a box, and its arrows follow. Every image on this page came from a file that you can edit.

drawio-design is a port of diagram-design by Cathryn Lavery. It keeps her design system, her rules and her 52 visual types, and changes the medium from HTML/SVG to draw.io.

Why use it

Without it With drawio-design
The agent writes Mermaid or loose SVG. Nobody can edit the result in the tool the team uses. The output is an uncompressed .drawio file. It opens in draw.io desktop, diagrams.net, the VS Code extension and the Confluence and Jira apps.
Every box has the same weight, and colour marks everything as "important". The accent goes on one or two focal elements. Shape and fill carry the node type.
draw.io's router produces stacked, wandering connectors. Every bend has an explicit point. Ports fan out along a box edge. A checker fails diagonals and shared ports.
Someone types brand colours and fonts in by hand, diagram by diagram. A profile holds the brand. The same script draws the default skin, a dark skin or your client's brand.
Nobody looks at the picture before it ships. The agent renders a preview, looks at it and names the defects before it delivers.

Install

Pick the line for your agent. Each one installs the same skill from skills/drawio-design/.

Agent Command
Any agent (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode and many more) npx skills add MitchStares/drawio-design
Claude Code (plugin, with updates) /plugin install drawio-design --marketplace MitchStares/drawio-design
Codex (plugin) codex plugin marketplace add MitchStares/drawio-design
Gemini CLI (extension) gemini extensions install https://github.com/MitchStares/drawio-design
claude.ai and Claude desktop Download drawio-design.zip from the latest release. Upload it under Customize → Skills.

On Claude Code before 2.1.275, install the plugin in two steps:

/plugin marketplace add MitchStares/drawio-design
/plugin install drawio-design@mitchstares-skills

Requirements: Python 3.10 or later. For PNG, SVG and PDF export, also install draw.io desktop and the three default fonts. docs/install.md has the per-agent details, the font setup for each OS, updates and troubleshooting.

Use it

Ask in plain words. The skill picks the visual type, states its plan, builds the file, checks it and looks at a render.

Draw our checkout flow as a swimlane: customer, web app, payments API, warehouse.
Turn docs/architecture.mmd into a draw.io architecture diagram with a dark variant.
Make a Gantt chart of the Q3 plan in plan.md, then export it as a PNG at 2x.
Set up a diagram profile from https://example.com and use it for this repo.

docs/usage.md explains the workflow, the 52 types, imports, export and editing.

What you get


Swimlane: handoffs between roles

ER / data model: entities, fields, relationships

State machine: states, transitions, guards

Gantt: tasks and phases in time

Wardley map: value chain against evolution

Axonometric plan: a floor seen at an angle

Heatmap: one cell carries the story

Service blueprint: the line of visibility

Fishbone: causes of one effect

See all 75 examples in the gallery →

All 52 visual types
Group Types
Systems Architecture, architecture delta, IT current state, high-level, deployment, layer stack, exploded axonometric, dependency and arc
Data platforms Medallion, data flow, DP integration, DP security matrix
Process Flowchart, process, steps, swimlane, sequence, state machine, loop, user journey, service blueprint, event modeling, fishbone, kanban, story map
Data models ER, database schema, UML class, SBGN, requirement traceability
Structure Tree, org chart, nested, pyramid and funnel, Venn, treemap and marimekko, unit grid
Time Timeline, Gantt, schedule network, git graph
Charts Bar and dumbbell, waterfall, line (slopegraph, ridgeline, streamgraph, bump), scatter (bubble, beeswarm, box plot), heatmap, radar, polar, quadrant, Sankey
Strategy and places Wardley map, axonometric plan

How it works

your request
   │
   ├─ 1. Resolve the profile         project marker → saved profile → shipped default
   ├─ 2. Choose pattern and type     one of 52, with its type reference
   ├─ 3. Build with ddio             Python → uncompressed .drawio
   ├─ 4. Check                       check_drawio.py: grid, text fit, palette, ports, export
   ├─ 5. Render and look             a preview PNG, defects named and fixed
   └─ 6. Deliver the .drawio         PNG, SVG or PDF only on request
  • scripts/ddio.py builds the file. It reads colours, fonts and sizes from the active profile, so no diagram has a hard-coded hex value.
  • scripts/check_drawio.py checks any .drawio file: the 4px grid, text fit, colours outside the palette, diagonal edges, shared ports and export safety.
  • scripts/export.py calls the draw.io desktop CLI. It finds draw.io on PATH or in the standard install folder.
  • scripts/check_profile.py and scripts/brand_sheet.py check a brand profile for structure, WCAG contrast and fonts, and preview every type in it.
  • scripts/*_extract.py read draw.io, Mermaid, Excalidraw and PlantUML sources. The agent redraws from the digest. It does not convert the source.

Brand profiles

A profile is one Markdown style guide: colour roles, type roles and node treatments. Profiles live in ~/.diagram-design/profiles/, so the original diagram-design skill and this skill share them. A file named .diagram-design in a project selects one:

profile: acme

The skill can build a profile from a website, a design system folder or pasted tokens. docs/brand-profiles.md explains how.

Repository layout

drawio-design/
├── skills/drawio-design/        ← the skill: everything an install copies
│   ├── SKILL.md
│   ├── scripts/                 ddio library, checker, export, profile tools, importers
│   ├── references/              type references and shared rules
│   ├── examples/                one worked example per type, light and dark
│   │   └── src/                 the Python that builds each example
│   └── assets/                  starting templates
├── .claude-plugin/              Claude Code plugin, marketplace and icon
├── plugin.json                  Codex plugin
├── .agents/plugins/             Codex marketplace
├── gemini-extension.json        Gemini CLI extension
├── docs/                        guides, gallery and images
├── tools/                       repo tools: validate, gallery, zip, icon
└── .github/workflows/           validate on push, release zip on tag

Credits and licence

MIT. See LICENSE.

The design system, the type references, the rules and the import extractors are the work of Cathryn Lavery in diagram-design. This port keeps her copyright notice (LICENSE.original). The draw.io port, the ddio library, the checker and the examples are by Mitchell Stares.

The default fonts are Geist and Geist Mono and Instrument Serif. All three use the SIL Open Font License.

Nearby in the ranking

AI Rank for iPhone

Follow AI model rankings

Download on the App Store