Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

MitchStares/drawio-design

Developer ToolsCoding skills

An agent skill that builds native, editable draw.io diagrams from plain-language requests across 52 visual types.

This repo is an agent skill pack · 1 skillsSkill list and install →
150
13
Python
MIT
3 days old
+49 stars in 17h

What it does

drawio-design is an agent skill that turns a plain-language request into an uncompressed .drawio file containing real vertices and orthogonal connectors. Because the output is a native draw.io document, opening it in draw.io desktop, diagrams.net, the VS Code extension, or the Confluence/Jira apps lets you drag shapes and have arrows follow.

The skill is a port of diagram-design by Cathryn Lavery. It retains the original design system, rules, and 52 visual types while switching the medium from HTML/SVG to draw.io. Types cover systems architecture, data platforms, process and swimlane diagrams, ER models, timelines and Gantt charts, charts such as Sankey and heatmaps, and strategy formats like Wardley maps and axonometric plans. The full set with 75 examples is in the gallery.

Install

Pick the line matching your agent; each installs the same skill under skills/drawio-design/ install section.

Agent Command
Any compatible agent (Claude Code, Codex, Cursor, Copilot, Gemini CLI, OpenCode, etc.) npx skills add MitchStares/drawio-design
Claude Code (plugin) /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 Upload drawio-design.zip from the latest release under Customize → Skills

Claude Code versions before 2.1.275 need two steps: /plugin marketplace add MitchStares/drawio-design, then /plugin install drawio-design@mitchstares-skills.

The skill requires Python 3.10 or later. PNG, SVG, and PDF export additionally need draw.io desktop installed plus the three default fonts; per-agent, per-OS font setup and troubleshooting are covered in the install guide.

Use it

Install the skill first, then describe the diagram in ordinary language. For example:

Draw our checkout flow as a swimlane: customer, web app, payments API, warehouse.

The skill selects a visual type, states its plan, builds the file with scripts/ddio.py, checks it with scripts/check_drawio.py, renders a preview, and reports defects before delivering the .drawio. Exports are produced only on request. The workflow, all 52 types, imports, export, and editing are documented in the usage guide.

How it works

  • scripts/ddio.py reads colours, fonts, and sizes from the active profile, so diagrams carry no hard-coded hex values.
  • scripts/check_drawio.py validates the grid, text fit, palette compliance, diagonal edges, shared ports, and export safety.
  • scripts/export.py invokes the draw.io desktop CLI, locating it on PATH or in the standard install folder.
  • scripts/check_profile.py and scripts/brand_sheet.py validate brand profiles for structure, WCAG contrast, and fonts, and preview every type.
  • scripts/*_extract.py read draw.io, Mermaid, Excalidraw, and PlantUML sources, but the agent redraws from the digest rather than converting the source directly.

Brand profiles

A profile is a Markdown style guide holding colour roles, type roles, and node treatments. Profiles live in ~/.diagram-design/profiles/ and are shared with the original skill. A .diagram-design file in a project selects one:

profile: acme

Profiles can be built from a website, a design system folder, or pasted tokens; see brand profiles.

Constraints

  • Python 3.10+ is mandatory; the checker and builder run on it.
  • Visual export to PNG, SVG, or PDF requires draw.io desktop and the three default fonts; without them only the .drawio file is produced.
  • Diagrams follow the active profile; choosing a different brand means building or selecting a profile rather than editing hex values per diagram.
  • Importers digest Mermaid, Excalidraw, PlantUML, and other sources but do not convert them; the agent redraws the content.
  • Licensed under MIT, keeping the upstream copyright notice from the original design system LICENSE.

HotRepo's take

drawio-design appeared on HotRepo's new-project list for dated 2026-12-03 (Python), recording 5 stars and 1 fork gained in a roughly 1.5-hour window while sitting at 106 stars. That is a single short snapshot, not a trend, but it shows the repository attracted attention immediately after creation. The project's distinguishing choice is the medium: it targets editable native draw.io files rather than static SVG or Mermaid output, which matters for teams already using draw.io in Confluence or Jira.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. lukendeasy/open-diagramPython library that draws dense architecture diagrams and checks each layout before export.Python135
  2. jgraph/drawio-mcpMCP server lets AI assistants generate and open editable draw.io diagrams.JavaScript5,852
  3. cathrynlavery/diagram-designAn Agent Skill that turns plain-language requests into self-contained HTML/SVG diagrams in your brand.HTML68,342
  4. tt-a1i/archifyTurns an idea, plan, or codebase into a shareable interactive HTML diagram through your coding agent.JavaScript88,713
  5. caru-ini/stack-diagramAn agent skill that turns a one-sentence stack description into an architecture diagram with official logos.Python132