Agents365-ai/drawio-skill
Agent Skill with optional MCP for editable draw.io models that stay in sync with sources
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
.drawio together via ir_output; the IR feeds views, queries, tests, and failure analysis.validate.py --score and --strict checks.drawiodiff.py compares diagram or snapshot states and prdiff.py renders PR diffs in CI.Platform and architecture teams turning code, infrastructure, and schema changes into editable documentation, reusable model views, and CI checks.
You need only a one-off sketch, a minimal MCP connection to draw.io, or a continuously observed runtime topology.
Quick Start & Installation
# Any agent (Claude Code, Cursor, Copilot, ...) npx skills add Agents365-ai/drawio-skill -g
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| drawio-skill ★ | 11.1k | +142 | Python | MIT | Agent Skill with optional MCP for editable draw.io models that stay in sync with |
| archify | 103.1k | +2k | JavaScript | Apache-2.0 | Agent skill and Node CLI for source-backed, interactive architecture diagrams. |
| diagram-design | 78.7k | +4.2k | HTML | MIT | An Agent Skill for turning diagram prompts into branded HTML and SVG |
| skills | 204.1k | +2.5k | Python | — | A Claude Agent Skills catalog for packaging and reusing task workflows |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Agents365-ai/drawio-skill.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about drawio-skill
Is an MCP host required, and how do I retain the model for downstream tooling?
skills/drawio-skill/ subdirectory so SKILL.md sits directly under the host’s skill entry. A compatible agent can use the skill without MCP, and Python tools can be run directly for scripted workflows. With the optional MCP server, build can also save the Diagram IR via ir_output alongside the editable .drawio file.What hardware should I provision for local use and CI?
xvfb. Image reconstruction uses the host’s vision capability, so its compute requirements depend on that host.Can we use it commercially and run it inside our network?
aiicons.py --embed rather than the default CDN references, and check the agent host’s data policy before processing internal sources.When should we choose this over the official draw.io MCP project?
jgraph/drawio-mcp first. The distinction is the workflow you need, not whether either tool can be used with MCP.Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy