# Repository Briefing: MitchStares/drawio-design
> Source: https://repoforai.com/repo/MitchStares/drawio-design (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/MitchStares/drawio-design
- **Official Docs / Website**: https://github.com/MitchStares/drawio-design/blob/main/docs/gallery.md
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (88/100 · Maintenance 35/35 · Adoption 13/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.3.0 (2026-11-29) — https://github.com/MitchStares/drawio-design/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: CLI
- **Momentum**: 180 ★ total (+56 24h / +56 7d) · 16 forks
- **Topics**: `agent-skills`, `architecture-diagrams`, `claude-code`, `claude-plugin`, `codex`, `diagrams`, `diagrams-as-code`, `drawio`
- **When to Use**: Best for: Engineering and documentation teams that want agents to draft architecture, process, or planning diagrams under shared style rules, then hand off native draw.io files for human editing. Skip if: You need an MCP endpoint, text-only diagram authoring, lossless import and round-trip synchronization, or automated visual sign-off without a desktop renderer.

## Overview
```text
### Architecture & Core Mechanics
drawio-design is a file-based agent skill backed by local Python scripts. Installers distribute the same bundle from `skills/drawio-design/`, which contains `SKILL.md`, scripts, type references, templates, and examples. The integration is through the coding agent's skill, plugin, or extension mechanism; there is no documented MCP server, transport, or endpoint.

The agent selects a style profile in project-marker, saved-profile, then bundled-default order, chooses a diagram type, and uses `scripts/ddio.py` to write an uncompressed `.drawio` file. Native vertices and attached orthogonal edges preserve editability. Explicit waypoints define the route, and ports are spread along node edges. `scripts/check_drawio.py` applies structural checks; the workflow then calls for the agent to inspect a rendered preview before handing over the editable source.

### Key Capabilities & Differentiators
The 52 visual types cover systems and data architecture, process, data modeling, time, charts, and strategy. The bundle includes worked Python examples and light and dark treatments. A `.diagram-design` marker selects a Markdown profile from `~/.diagram-design/profiles/`, shared with the upstream diagram-design skill. The builder reads colors, fonts, and sizes from the active profile; `check_profile.py` checks profile structure, WCAG contrast, and fonts, while `brand_sheet.py` previews the types in that profile.

The file checker tests the 4 px grid, text fit, palette use, diagonal edges, shared ports, and export safety. Extractors can read draw.io, Mermaid, Excalidraw, and PlantUML, but they produce a digest for the agent to redraw rather than a converted file. The primary deliverable is native `.drawio`; PNG, SVG, and PDF are optional exports, not replacements for the editable source.

### Trade-offs & Limitations
The key choice is what the team needs to edit. Mermaid is a better fit when the maintained artifact is diagram text; direct editing in draw.io avoids the agent layer for one-off work. This skill fits teams that want agent-assisted authoring followed by native canvas editing, especially when multiple diagrams need a consistent style. The generated `.drawio` file is uncompressed, but it is not the same authoring surface as a concise text diagram definition.

Explicit waypoints give authors more control over routing; after substantial manual changes, inspect the lines again even though the edges remain attached. A checker pass does not establish semantic accuracy or visual clarity. Where desktop rendering or fonts are unavailable, generation and structural checking can still produce a source file, but the preview review is incomplete. The MIT license permits commercial reuse subject to notice preservation; redistributed fonts have separate license terms.

### Hardware & Deployment Guide
Use Python 3.10 or later. Installation paths include `npx skills add MitchStares/drawio-design`, native plugin or extension packaging for Claude Code, Codex, and Gemini CLI, and a release ZIP for manual upload to claude.ai or Claude Desktop. Building and checking the source file are local Python steps, with no documented GPU requirement. That does not make the host agent offline: model execution and source-data handling depend on the chosen host.

For rendered previews and PNG, SVG, or PDF export, provide draw.io Desktop and the default fonts: Geist, Geist Mono, and Instrument Serif. `scripts/export.py` looks for draw.io on `PATH` or in standard install locations. Validate font availability and rendering in the actual export environment before putting it into CI. Release v0.3.0 moved the skill into `skills/drawio-design/` and updated packaging and documentation without changing the diagram rules or builder API.
```

## Key Capabilities
```text
- Output model: `ddio.py` writes uncompressed `.drawio` files with editable vertices, attached edges, and explicit bend points.
- Diagram library: 52 visual types with type-specific references and worked Python examples, including architecture deltas, swimlanes, ER diagrams, Gantt charts, and Wardley maps.
- Validation: `check_drawio.py` checks the 4 px grid, text fit, palette use, diagonal edges, shared ports, and export safety.
- Brand profiles: A project-level `.diagram-design` marker selects a Markdown profile; `check_profile.py` checks profile structure, WCAG contrast, and fonts.
- Source reuse: Extractors read draw.io, Mermaid, Excalidraw, and PlantUML into digests for agent-led redraws rather than direct conversion.
- Packaging and export: v0.3.0 consolidates the skill under `skills/drawio-design/`; `export.py` uses draw.io Desktop for PNG, SVG, and PDF.
```

## Quick Start / Clone
```bash
/plugin marketplace add MitchStares/drawio-design
/plugin install drawio-design@mitchstares-skills
```
