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

- **GitHub URL**: https://github.com/Agents365-ai/drawio-skill
- **Official Docs / Website**: https://agents365-ai.github.io/drawio-skill/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A+ (93/100 · Maintenance 35/35 · Adoption 18/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v3.5.0 (2026-11-22) — https://github.com/Agents365-ai/drawio-skill/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: CLI
- **Momentum**: 11,109 ★ total (+16 24h / +142 7d) · 763 forks
- **Topics**: `agent-skills`, `architecture`, `architecture-diagram`, `asyncapi`, `bpmn`, `c4-model`, `claude-code`, `diagram`, `diagrams-as-code`, `drawio`, `flowchart`, `github-actions`
- **When to Use**: Best for: Platform and architecture teams turning code, infrastructure, and schema changes into editable documentation, reusable model views, and CI checks. Skip if: You need only a one-off sketch, a minimal MCP connection to draw.io, or a continuously observed runtime topology.

## Overview
```text
### Architecture & Core Mechanics
drawio-skill is a Python diagram toolchain packaged as an Agent Skill, with MCP as an optional interface rather than the core runtime. `skills/drawio-skill/SKILL.md` drives the prompt-based workflow: plan the layout, generate native draw.io XML, render a draft PNG, and inspect it for visual defects. The documented loop allows up to two automatic correction rounds and up to five rounds of user feedback.

Source-driven workflows can bypass prompt-based generation: bundled extractors emit graph JSON for `autolayout.py`, which uses Graphviz for placement, followed by deterministic checks in `validate.py`. Diagram IR is a reusable model for projections, dependency queries, architecture contracts, and failure propagation analysis. The MCP build path can save that IR alongside the editable `.drawio` artifact with `ir_output`. This separates model-level checks from presentation work such as rearranging shapes in the editor.

### Key Capabilities & Differentiators
Sixteen extractors cover Python, JS/TS, Go, and Rust imports; Python inheritance; Terraform, Kubernetes, and Compose configurations; infrastructure snapshots; SQL DDL; OpenAPI/Swagger, AsyncAPI, Protobuf, and GraphQL; and GitHub Actions and GitLab CI. The layout tooling supports module containers, orthogonal routing, and transitive reduction. Separate engines compute sequence lifelines and activation bars and generate multi-page C4 diagrams with drill-down links.

The most useful capability for long-lived architecture documentation is conflict-aware synchronization that preserves manual layout. `drawiodiff.py` distinguishes additions, removals, and changes between diagrams or snapshots, and `prdiff.py` brings visual diffs into CI. The same editable artifact can be repurposed as a searchable interactive HTML viewer, a PowerPoint deck, an animated SVG, or Mermaid. Whiteboard reconstruction is a separate path: a vision-capable agent extracts the graph, then `raster2drawio.py` rebuilds it as editable shapes.

### Trade-offs & Limitations
Compared with the official `jgraph/drawio-mcp` project, this is a skill-first toolchain for keeping diagrams aligned with source files, not just an MCP integration. That breadth pays off when CI needs to fail on an architecture contract or a team needs to refresh a diagram without losing hand-tuned placement. If the requirement is simply to expose draw.io through MCP, evaluate the official project first. If Mermaid text must remain the source of truth, treat native `.drawio` conversion as an editable output, not as evidence of lossless round trips.

Generated graphs reflect what the selected extractor can observe. An import graph is not a runtime call graph, and a deployment snapshot is not a stream of live telemetry. Transitive reduction can make a dense diagram readable while hiding direct relationships that matter to reviewers; inspect the unreduced graph when those edges are important. The MIT license covers the repository, not third-party trademark rights. Brand marks are CDN-referenced by default unless embedded, which is a concrete constraint for offline or controlled rendering.

### Hardware & Deployment Guide
Install draw.io Desktop and verify that its CLI is accessible with `drawio --version` or `draw.io.exe --version` on Windows. Desktop 30 or later is required for native Mermaid conversion and the ELK `--layout` pass. Use `npx skills add Agents365-ai/drawio-skill -g`, or link or copy `skills/drawio-skill/` into the host’s skill directory. Python is needed for the bundled scripts; add Graphviz for Graphviz-based placement and `xvfb` for headless Linux rendering. The WSL2 path uses the Windows Desktop executable via `/mnt/c`.

Start a CI rollout with one source extractor, one generated editable artifact, and a strict validation step before adding drift renders. Local scripting does not by itself make the agent workflow offline: check the host’s model configuration and embed logo assets if the renderer cannot reach the CDN. Recent fixes are operationally relevant: v3.4.2 added MCP IR output and reports nonzero exits as errors, v3.4.4 restored discovery of `draw.io.exe` on native Windows, and v3.5.0 fixed parsing of quoted SQL column names with spaces, including their PK/FK notation.
```

## Key Capabilities
```text
- Integration: Agent Skills entrypoint with direct Python tooling and an optional MCP build interface.
- Model reuse: MCP build can persist Diagram IR and editable `.drawio` together via `ir_output`; the IR feeds views, queries, tests, and failure analysis.
- Import surface: 16 extractors cover code, infrastructure configurations and snapshots, schemas, and CI pipelines.
- Layout and validation: Graphviz placement, orthogonal routing, grouping, and transitive reduction are paired with deterministic `validate.py --score` and `--strict` checks.
- Change control: Conflict-aware synchronization preserves manual layout, while `drawiodiff.py` compares diagram or snapshot states and `prdiff.py` renders PR diffs in CI.
- Output paths: draw.io Desktop 30+ converts Mermaid to native editable diagrams; separate tools produce interactive HTML, PowerPoint, animated SVG, and Mermaid.
```

## Quick Start / Clone
```bash
# Any agent (Claude Code, Cursor, Copilot, ...)
npx skills add Agents365-ai/drawio-skill -g
```
