Drawio Skill logo

Drawio Skill

Creates editable draw.io architecture diagrams from text, code, infrastructure, schemas, and APIs, with sync, testing, querying, and exports.

Install Drawio Skill

Run the project’s own setup commands, in order.

Setup steps from the project

drawio-skill installs with its own commands rather than a config we can generate, so these are copied as-is. Run them in order in a terminal. Source: github.com

  1. 1. Install
    git clone https://github.com/Agents365-ai/drawio-skill.git ~/src/drawio-skill
    

Overview

drawio-skill MCP server exposes draw.io diagram generation and architecture-analysis workflows to compatible AI clients. It turns natural-language descriptions and sources such as Terraform, Kubernetes, codebases, SQL, OpenAPI, AsyncAPI, Protobuf, and GraphQL into editable `.drawio` models, then supports synchronization, validation, queries, what-if analysis, and publishing. Reach for it when diagrams must stay connected to technical source data rather than being created as one-off images. The underlying workflows use the `diagramctl` CLI and the draw.io desktop CLI for rendering and conversion.

Use cases

  • Generate architecture diagrams from Terraform and Kubernetes configurations
  • Synchronize draw.io models with changing code or infrastructure
  • Test architecture rules in CI for every pull request
  • Trace dependencies and simulate failure propagation
  • Publish interactive diagrams and walkthroughs from one model

Key features

  • Editable draw.io generation from text and technical sources
  • Incremental synchronization that preserves manual layout
  • Multi-view architecture projections and dependency queries
  • CI architecture rules and visual diff workflows
  • Whiteboard and screenshot conversion to editable diagrams
  • HTML, PowerPoint, SVG, Mermaid, and Markdown exports

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars10kStargazers on the source repository.
Last commit3d agoMost recent push to the default branch.

How Drawio Skill works

What drawio-skill does

drawio-skill converts descriptions and technical source files into editable draw.io architecture models. It supports diagram generation from natural language, Mermaid, whiteboard images, application code, infrastructure definitions, schemas, API specifications, event contracts, CI pipelines, and live infrastructure snapshots.

The resulting models can be reviewed as architecture diagrams, queried for dependencies and ownership, compared across revisions, or projected into several views. Supported view types include executive, system, deployment, data-flow, and security perspectives. The model separates semantic information, source provenance, and geometry so that later updates can preserve deliberate layout work.

How it works

The workflow is centered on the diagramctl command-line interface. Its commands cover building diagrams, synchronizing changes, generating views, querying relationships, running architecture tests, reviewing differences, simulating failure propagation, creating walkthroughs, publishing, and transforming output. Core workflows use the standard library and can run offline.

For generated diagrams, the skill writes draw.io XML, renders a PNG for inspection, and can correct overlaps, clipped labels, and stacked edges through repeated checks. Incremental synchronization updates changed nodes and relationships while retaining adjusted coordinates, styles, and annotations. Removed elements remain reviewable by default.

Source import can use Graphviz placement, transitive reduction, nested module containers, official cloud and Kubernetes icons, and deterministic layout engines. Mermaid text can be converted into native, editable draw.io diagrams when using draw.io 30 or later. Whiteboard photos and screenshots can be processed into editable diagrams while retaining the detected original arrangement.

Setup and configuration

Install the draw.io desktop CLI before using workflows that render or convert diagrams. On macOS, the project documents Homebrew installation; Windows uses the draw.io installer; Linux uses a Debian or RPM package and may require xvfb for headless operation. Verify the executable with drawio --version, or drawio.exe --version on Windows. Draw.io version 30 or later is recommended for Mermaid conversion and the ELK layout pass.

Install the skill with npx skills add Agents365-ai/drawio-skill -g, or clone the repository and place or link its skills/drawio-skill/ directory into the agent’s skills directory. The host entry must contain SKILL.md directly. The project also documents installation paths for Claude Code, OpenClaw, Codex, Autohand Code, and other Agent Skills-compatible hosts.

The repository includes an optional MCP server. It exposes the CLI workflows to MCP hosts including Claude Desktop, Cursor, VS Code, and Codex. The skill can also be used directly by compatible Agent Skills hosts without a daemon.

Tools and capabilities

  • Generate editable diagrams from prompts using presets for ERD, UML class, sequence, C4, architecture, machine learning, flowchart, SysML, BPMN, network topology, and swimlane diagrams.
  • Import Python, JavaScript/TypeScript, Go, and Rust codebases, including Python class hierarchies.
  • Convert Terraform, Kubernetes, Docker Compose, terraform show -json, docker inspect, and kubectl get -o json data into infrastructure diagrams.
  • Build diagrams from SQL DDL, OpenAPI or Swagger, AsyncAPI, Protocol Buffers, GraphQL SDL, GitHub Actions, and GitLab CI definitions.
  • Synchronize source changes while preserving manual geometry, styles, and annotations.
  • Check architecture rules such as forbidden access paths, cycles, orphaned components, trust-boundary violations, and contrast issues.
  • Query dependencies, owners, paths, articulation points, and coupling; compare diagrams or live snapshots; and simulate failure propagation.
  • Publish interactive HTML, PowerPoint, animated data-flow SVG, Mermaid, Markdown, Story walkthroughs, and click-through runbooks.
  • Apply style presets, bilingual labels, heat maps, and alternate visual treatments; resolve thousands of official draw.io shapes and AI or LLM logos.

Limitations and notes

PowerPoint output uses raster page images, so its shapes are not individually editable. Mermaid-to-draw.io conversion and the ELK layout pass require draw.io 30 or later. Headless Linux use may require xvfb. The project’s core workflows are designed to run offline, while live infrastructure diagrams depend on the corresponding local snapshots or command output.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Drawio Skill

drawio-skill is an MCP server that connects AI clients to draw.io architecture workflows through diagram generation, synchronization, querying, testing, review, what-if analysis, and publishing tools. It can create editable diagrams from prompts, code, Terraform, Kubernetes, SQL, OpenAPI, AsyncAPI, Protobuf, GraphQL, and other technical sources.

Install the draw.io desktop CLI and the drawio-skill Agent Skill first. Use `npx skills add Agents365-ai/drawio-skill -g`, or clone the repository and link its `skills/drawio-skill/` directory into your agent’s skills directory. The MCP server is optional and exposes the workflows to supported MCP hosts.

Claude Desktop, Cursor, VS Code, and Codex are named as MCP hosts for drawio-skill. The skill also works with Claude Code and other agents compatible with the Agent Skills format, including Copilot, OpenClaw, Autohand Code, and Hermes.

Yes. Its incremental synchronization updates changed nodes and relationships while preserving tuned coordinates, styles, and annotations. Removed elements remain reviewable by default, making source-driven diagram updates suitable for ongoing architecture maintenance.

Yes. Mermaid text can become native editable draw.io diagrams with draw.io 30 or later, and whiteboard photos or screenshots can be rebuilt as editable diagrams using extracted graph structure and the original layout.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDrawio Skill AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/drawio-skill?style=directory)](https://allmcps.com/mcp/drawio-skill)
HTML Embed
<a href="https://allmcps.com/mcp/drawio-skill"><img src="https://allmcps.com/api/badge/drawio-skill?style=directory" alt="Drawio Skill on AllMCPs" /></a>