Agents365-ai/drawio-skill
Agent skill that turns natural language, code, Terraform/K8s, SQL, OpenAPI, AsyncAPI, Protobuf and GraphQL sources into editable, tested draw.io architecture diagrams: incremental sync, multi-view projection, drift diff, CI architecture tests, whiteboard derasterize, interactive HTML/PPTX/Mermaid exports.
What it solves
Manually drawing and keeping architecture diagrams up to date is tedious: diagrams drift from reality, regenerating them discards hand-tuned layout, and sharing them means exporting yet another static image. drawio-skill solves this by letting you describe a diagram in plain language — or point at real sources like a Python codebase, a Terraform configuration, a Kubernetes deployment, a SQL schema, an OpenAPI spec, or a CI pipeline — and producing a real, editable draw.io (.drawio) file with official vendor icons. It then helps keep that diagram true over time: it syncs changes incrementally without undoing manual layout, checks architecture rules in CI, shows drift between versions, and repurposes the same model into HTML, PowerPoint, SVG, Mermaid, Markdown, and interactive walkthroughs.
How it works
Under the hood the skill runs a pipeline: check dependencies → plan layout → generate .drawio XML → export a draft PNG → self-check the rendering and auto-fix overlaps, clipped labels, and stacked edges (up to 2 rounds) → show you the result → accept up to 5 rounds of feedback → do the final export.
Behind the scenes it ships a toolbox of Python scripts grouped by stage: 16 import extractors (Python/JS-TS/Go/Rust import graphs, Python class hierarchies, Terraform/Kubernetes/docker-compose, live infra, SQL DDL, OpenAPI, AsyncAPI, Protobuf, GraphQL SDL, GitHub Actions/GitLab CI), layout and lint tools (Graphviz placement, orthogonal routing, container grouping), diff and timeline tools, and export/restyle tools. A single CLI called diagramctl bundles the core workflows — doctor, build, sync, views, query, test, review, whatif, story, publish, transform — and an optional MCP server exposes the same commands to Claude Desktop, Cursor, VS Code, Codex, and other MCP hosts. The core workflows run offline in the standard library; Graphviz is optional for layout.
Who it's for
It's aimed at developers, software architects, and platform/DevOps engineers who use AI coding agents (Claude Code, Cursor, Copilot, OpenClaw, Codex, Autohand Code, Hermes, or any Agent Skills-compatible agent) and need to create or maintain diagrams of codebases, cloud infrastructure, ML models, databases, APIs, and CI/CD pipelines. It's also useful for teams that want diagrams to be verifiable artifacts — enforced as tests on every pull request — rather than static images that rot.
Highlights
- Describe a diagram in natural language and get an editable .drawio file, with automatic self-checks and up to 2 rounds of auto-fixes, plus 5 rounds of your feedback.
- Mermaid text (mindmap, gantt, timeline, journey, pie, sankey, kanban, and more) converts to native laid-out .drawio (draw.io ≥ 30).
- A photo of a whiteboard or a legacy PNG can be turned into a real editable diagram, honouring the original layout.
- 11 preset diagram types: ERD, UML Class, Sequence, C4, Architecture, ML/Deep Learning, Flowchart, SysML, BPMN, Network Topology, Cross-Functional Swimlane.
- Visualises real codebases (import graphs for Python/JS-TS/Go/Rust, Python class hierarchies) with Graphviz placement and nested module containers.
- Turns Terraform, Kubernetes, and docker-compose into diagrams with official AWS/Azure/GCP/K8s icons, and can snapshot what's actually deployed via terraform show, docker inspect, or kubectl get.
- Converts SQL DDL → ER diagrams, OpenAPI → API diagrams coloured by HTTP method, AsyncAPI → event-driven diagrams, Protobuf → message/service diagrams, GraphQL SDL → type diagrams, GitHub Actions / GitLab CI → pipeline DAGs.
- Incremental sync (diagramctl sync) updates only changed nodes and relations while preserving your manual coordinates, styles, and annotations; removals stay reviewable by default.
- Diagram-as-test: YAML/JSON architecture rules (cycles, orphans, trust boundaries, contrast, and more) plus an official GitHub Action enforce them on every PR, with a PR action that renders visual diffs.
- Query tools: components, owners, paths, articulation points, high coupling, and failure-propagation simulation; publish an accessible Story walkthrough.
- Drift and history: colour-coded diffs (green/red/orange) between diagrams or live snapshots, and a time-lapse player showing how a codebase's architecture grew.
- One-command repurposing: interactive pan/zoom HTML viewer, PowerPoint deck, animated data-flow SVG, Mermaid or Markdown export, click-through runbook, and executive-summary compression.
- Restyling: built-in style presets (dark, corporate, handdrawn, colourblind-safe) plus the ability to learn your own style from an existing .drawio file or image; bilingual labels, data-driven heat maps, and a London-Underground-style tubemap mode.
- Resolves 10,000+ official draw.io shapes plus 321 AI/LLM brand logos (OpenAI, Claude, Gemini, and more) so vendor icons render instead of blank boxes.
Related
- Project
- Project
- Project
- Project
- Project