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.
Python agent-skillsarchitecturearchitecture-diagramasyncapibpmnc4-modelclaude-codediagramdiagrams-as-codedrawioflowchartgithub-actionsgraphqlimage-to-diagramkubernetesmcp-serverprotobufsysmlterraformuml
docs: sync drawio-mcp comparison + add libavoid routing note (v1.28.1) (#79)
Agents365.ai6c53172d2869
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7bf76b2..5b6ce43 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -4,6 +4,23 @@ All notable changes to **drawio-skill** are documented here. The format is basedon [Keep a Changelog](https://keepachangelog.com/), and the project followssemantic-ish versioning (the `version:` field in `skills/drawio-skill/SKILL.md`).+## [1.28.1] — 2026-07-10+### Changed+- **Refreshed the `vs Other draw.io Skills & Tools` comparison** (README, README_CN,+ `docs/COMPARISON.md`, `docs/COMPARISON_CN.md`) to match the current state of the+ official [jgraph/drawio-mcp](https://github.com/jgraph/drawio-mcp), which has grown+ into a four-approach project. Corrected three now-stale cells that overclaimed in our+ favour: **Approach** (it now ships an official Claude Code plugin), **Multi-agent**+ (its MCP servers run in Claude, Cursor and VS Code — no longer "Claude apps only"),+ and **Browser fallback** (its Claude Code plugin now emits a diagrams.net `url`, not+ just an inline preview). Added a pointer to the official plugin's install command with+ a one-line statement of how drawio-skill stays complementary. Bumped the audit date.+### Added+- **libavoid routing note** in `references/xml-authoring.md` — documents draw.io's newer+ editor-side obstacle-avoiding connector router (`libavoidRouting=1`), clarifies it is+ not a headless CLI `--layout` flag (those are ELK node layouts), and gives the practical+ path for CLI-authored files. Also noted in the comparison's edge-routing row.+## [1.28.0] — 2026-07-04### Added- **Interactive HTML viewer** (`scripts/drawiohtml.py`) — publish a `.drawio` asdiff --git a/README.md b/README.mdindex e38fcba..a3aa4ca 100644--- a/README.md+++ b/README.md@@ -314,9 +314,9 @@ Behind the scenes: **check dependencies → plan layout → generate `.drawio` X| Feature | drawio-skill | [jgraph/drawio-mcp](https://github.com/jgraph/drawio-mcp) (official)<br> | [bahayonghang/drawio-skills](https://github.com/bahayonghang/drawio-skills)<br> | [GBSOSS/ai-drawio](https://github.com/GBSOSS/ai-drawio)<br> ||---|---|---|---|---|-| **Approach** | Pure SKILL.md | SKILL.md / MCP / Project | YAML DSL + CLI (MCP optional) | Claude Code plugin |+| **Approach** | Pure SKILL.md | MCP servers / Claude Code plugin / Project | YAML DSL + CLI (MCP optional) | Claude Code plugin || **Dependencies** | draw.io desktop only | draw.io desktop | draw.io desktop (MCP optional) | draw.io plugin + browser |-| **Multi-agent** | ✅ 6 platforms | ❌ Claude apps only | ✅ Claude / Gemini / Codex | ❌ Claude Code only |+| **Multi-agent** | ✅ 6 platforms | ⚠️ MCP hosts (Claude, Cursor, VS Code) | ✅ Claude / Gemini / Codex | ❌ Claude Code only || **Self-check + auto-fix** | ✅ 2-round (reads PNG) | ❌ | ✅ validation + strict mode | ❌ screenshot only || **Iterative review** | ✅ 5-round loop | ❌ generate once | ✅ 3 workflows | ❌ || **Diagram presets** | ✅ 7 types | ❌ | ✅ paper-mode classifier | ❌ |@@ -325,9 +325,11 @@ Behind the scenes: **check dependencies → plan layout → generate `.drawio` X| **Color system** | ✅ 7-color semantic | ❌ | ✅ 6 themes | ❌ || **Official shape search** | ✅ 10k+ shapes (local) | ✅ 10k+ shapes (MCP) | ❌ | ❌ || **AI/LLM brand logos** | ✅ 321 + 18 data-store | ❌ | ❌ | ❌ |-| **Browser fallback** | ✅ diagrams.net URL (viewer + editable) | ❌ inline preview only | ✅ via optional MCP | ✅ diagrams.net viewer (primary) |+| **Browser fallback** | ✅ diagrams.net URL (viewer + editable) | ✅ diagrams.net URL (plugin) + inline preview | ✅ via optional MCP | ✅ diagrams.net viewer (primary) || **Zero-config** | ✅ copy `skills/drawio-skill/` | ✅ | ✅ desktop-only mode | ❌ needs plugin install |+> **Using the official jgraph plugin?** [jgraph/drawio-mcp](https://github.com/jgraph/drawio-mcp) now ships an official Claude Code plugin (`/plugin install drawio@drawio`) that also generates `.drawio` and exports via the desktop CLI. drawio-skill is complementary — reach for it when you want the code / IaC / SQL / OpenAPI importers, AI-brand logos, deterministic sequence & C4 generators, self-check + review loop, and the interactive HTML viewer, all from a single SKILL.md with no MCP server.+Full comparison + key-advantages summary in [docs/COMPARISON.md](docs/COMPARISON.md) (with audit timestamp).## 🎯 When to use (and when not to)diff --git a/README_CN.md b/README_CN.mdindex 61e5ecf..7505d54 100644--- a/README_CN.md+++ b/README_CN.md@@ -312,9 +312,9 @@ Skill 会提取配色、形状、字体和连线风格,渲染预览图,**确| 功能 | drawio-skill | [jgraph/drawio-mcp](https://github.com/jgraph/drawio-mcp)(官方)<br> | [bahayonghang/drawio-skills](https://github.com/bahayonghang/drawio-skills)<br> | [GBSOSS/ai-drawio](https://github.com/GBSOSS/ai-drawio)<br> ||------|------|------|------|------|-| **方式** | 纯 SKILL.md | SKILL.md / MCP / Project | YAML DSL + CLI(MCP 可选) | Claude Code 插件 |+| **方式** | 纯 SKILL.md | MCP 服务 / Claude Code 插件 / Project | YAML DSL + CLI(MCP 可选) | Claude Code 插件 || **依赖** | 仅 draw.io 桌面版 | draw.io 桌面版 | draw.io 桌面版(MCP 可选) | draw.io 插件 + 浏览器 |-| **多智能体支持** | ✅ 6 个平台 | ❌ 仅 Claude 系列 | ✅ Claude / Gemini / Codex | ❌ 仅 Claude Code |+| **多智能体支持** | ✅ 6 个平台 | ⚠️ MCP 宿主(Claude、Cursor、VS Code) | ✅ Claude / Gemini / Codex | ❌ 仅 Claude Code || **自检 + 自动修复** | ✅ 2 轮(读取 PNG) | ❌ | ✅ 校验 + 严格模式 | ❌ 仅截图 || **迭代审查** | ✅ 5 轮循环 | ❌ 一次生成 | ✅ 3 种工作流 | ❌ || **图表预设** | ✅ 7 种 | ❌ | ✅ 论文模式分类 | ❌ |@@ -323,9 +323,11 @@ Skill 会提取配色、形状、字体和连线风格,渲染预览图,**确| **配色系统** | ✅ 7 色语义 | ❌ | ✅ 6 种主题 | ❌ || **官方形状搜索** | ✅ 1 万+ 形状(本地) | ✅ 1 万+ 形状(MCP) | ❌ | ❌ || **AI/LLM 品牌图标** | ✅ 321 + 18 数据存储 | ❌ | ❌ | ❌ |-| **浏览器降级** | ✅ diagrams.net URL(查看 + 可编辑) | ❌ 仅内联预览 | ✅ 通过可选 MCP | ✅ diagrams.net viewer(主要) |+| **浏览器降级** | ✅ diagrams.net URL(查看 + 可编辑) | ✅ diagrams.net URL(插件)+ 内联预览 | ✅ 通过可选 MCP | ✅ diagrams.net viewer(主要) || **零配置** | ✅ 复制 `skills/drawio-skill/` | ✅ | ✅ 桌面版模式 | ❌ 需安装插件 |+> **在用官方 jgraph 插件?** [jgraph/drawio-mcp](https://github.com/jgraph/drawio-mcp) 现已提供官方 Claude Code 插件(`/plugin install drawio@drawio`),同样生成 `.drawio` 并通过桌面版 CLI 导出。drawio-skill 与之互补 —— 当你需要代码 / IaC / SQL / OpenAPI 导入器、AI 品牌图标、确定性时序图与 C4 生成器、自检 + 审查循环以及交互式 HTML 查看器,且只想用单个 SKILL.md、无需 MCP 服务时,选它。+完整对比 + 核心优势总结见 [docs/COMPARISON_CN.md](docs/COMPARISON_CN.md)(含核查时间戳)。## 🎯 何时用(以及何时别用)diff --git a/docs/COMPARISON.md b/docs/COMPARISON.mdindex 5a62dd2..53537a3 100644--- a/docs/COMPARISON.md+++ b/docs/COMPARISON.md@@ -31,9 +31,9 @@| Feature | This skill | [jgraph/drawio-mcp](https://github.com/jgraph/drawio-mcp) (official)  | [bahayonghang/drawio-skills](https://github.com/bahayonghang/drawio-skills)  | [GBSOSS/ai-drawio](https://github.com/GBSOSS/ai-drawio)  ||---------|-----------|---------------|-------------------|--------------|-| **Approach** | Pure SKILL.md | SKILL.md / MCP / Project | YAML DSL + CLI (MCP optional) | Claude Code plugin |+| **Approach** | Pure SKILL.md | MCP servers / Claude Code plugin / Project | YAML DSL + CLI (MCP optional) | Claude Code plugin || **Dependencies** | draw.io desktop only | draw.io desktop | draw.io desktop (MCP optional) | draw.io plugin + browser |-| **Multi-agent** | ✅ 6 platforms | ❌ Claude apps only | ✅ Claude / Gemini / Codex | ❌ Claude Code only |+| **Multi-agent** | ✅ 6 platforms | ⚠️ MCP hosts (Claude, Cursor, VS Code) | ✅ Claude / Gemini / Codex | ❌ Claude Code only || **Self-check** | ✅ 2-round vision-based (reads PNG) | ❌ | ✅ validation + strict mode | ❌ screenshot only || **Iterative review** | ✅ 5-round loop | ❌ generate once | ✅ 3 workflows (create/edit/replicate) | ❌ || **Layout guidance** | ✅ complexity-scaled + grid snap | ✅ basic spacing | ✅ design-system | ❌ |@@ -45,13 +45,13 @@| **AI/LLM brand logos** | ✅ 321 (lobe-icons) | ❌ | ❌ | ❌ || **Container/group** | ✅ swimlane + group | ✅ detailed | ❌ | ❌ || **Embed diagram** | ✅ `--embed-diagram` | ✅ | ❌ | ❌ |-| **Edge routing** | ✅ corridors + waypoints | ✅ arrowhead rules | ❌ | ❌ |-| **Browser fallback** | ✅ diagrams.net URL | ❌ inline preview only | ✅ via optional MCP | ✅ diagrams.net viewer (primary) |+| **Edge routing** | ✅ corridors + waypoints | ✅ arrowhead rules + libavoid auto-routing | ❌ | ❌ |+| **Browser fallback** | ✅ diagrams.net URL | ✅ diagrams.net URL (plugin) + inline preview | ✅ via optional MCP | ✅ diagrams.net viewer (primary) || **Auto-launch** | ✅ opens desktop app | ❌ | ❌ | ✅ opens Chrome || **Cloud icons** | AWS basic | ❌ | ✅ AWS/GCP/Azure/K8s | ✅ AWS basic || **Zero-config** | ✅ copy skills/drawio-skill/ | ✅ | ✅ desktop-only mode | ❌ needs plugin install |-_Last audited against competitor READMEs on 2026-05-17. Please open an issue or PR if anything is out of date — competitors evolve and table accuracy depends on community help._+_Last audited against competitor READMEs on 2026-07-10. Please open an issue or PR if anything is out of date — competitors evolve and table accuracy depends on community help._## Key advantagesdiff --git a/docs/COMPARISON_CN.md b/docs/COMPARISON_CN.mdindex b32afac..ece2c05 100644--- a/docs/COMPARISON_CN.md+++ b/docs/COMPARISON_CN.md@@ -31,9 +31,9 @@| 功能 | 本 skill | [jgraph/drawio-mcp](https://github.com/jgraph/drawio-mcp)(官方) | [bahayonghang/drawio-skills](https://github.com/bahayonghang/drawio-skills)  | [GBSOSS/ai-drawio](https://github.com/GBSOSS/ai-drawio)  ||---------|-----------|---------------|-------------------|--------------|-| **方式** | 纯 SKILL.md | SKILL.md / MCP / Project | YAML DSL + CLI(MCP 可选) | Claude Code 插件 |+| **方式** | 纯 SKILL.md | MCP 服务 / Claude Code 插件 / Project | YAML DSL + CLI(MCP 可选) | Claude Code 插件 || **依赖** | 仅 draw.io 桌面版 | draw.io 桌面版 | draw.io 桌面版(MCP 可选) | draw.io 插件 + 浏览器 |-| **多智能体** | ✅ 6 个平台 | ❌ 仅 Claude 系列 | ✅ Claude / Gemini / Codex | ❌ 仅 Claude Code |+| **多智能体** | ✅ 6 个平台 | ⚠️ MCP 宿主(Claude、Cursor、VS Code) | ✅ Claude / Gemini / Codex | ❌ 仅 Claude Code || **自检** | ✅ 2 轮视觉自检(读取 PNG) | ❌ | ✅ 校验 + 严格模式 | ❌ 仅截图 || **迭代审查** | ✅ 5 轮循环 | ❌ 一次生成 | ✅ 3 种工作流(create/edit/replicate) | ❌ || **布局指南** | ✅ 按复杂度分级 + 网格对齐 | ✅ 基础间距 | ✅ design-system | ❌ |@@ -45,13 +45,13 @@| **AI/LLM 品牌图标** | ✅ 321 个(lobe-icons) | ❌ | ❌ | ❌ || **容器/分组** | ✅ swimlane + group | ✅ 详细 | ❌ | ❌ || **嵌入式导出** | ✅ `--embed-diagram` | ✅ | ❌ | ❌ |-| **连线路由** | ✅ 走廊 + waypoints | ✅ 箭头间距规则 | ❌ | ❌ |-| **浏览器降级** | ✅ diagrams.net URL | ❌ 仅内联预览 | ✅ 通过可选 MCP | ✅ diagrams.net viewer(主要) |+| **连线路由** | ✅ 走廊 + waypoints | ✅ 箭头间距规则 + libavoid 自动绕行 | ❌ | ❌ |+| **浏览器降级** | ✅ diagrams.net URL | ✅ diagrams.net URL(插件)+ 内联预览 | ✅ 通过可选 MCP | ✅ diagrams.net viewer(主要) || **自动启动** | ✅ 打开桌面版 | ❌ | ❌ | ✅ 打开 Chrome || **云图标** | AWS 基础 | ❌ | ✅ AWS/GCP/Azure/K8s | ✅ AWS 基础 || **零配置** | ✅ 复制 skills/drawio-skill/ | ✅ | ✅ 桌面版模式 | ❌ 需安装插件 |-_最近一次依据各 repo README 核查:2026-05-17。如有出入欢迎提 issue / PR 修正 —— 竞品在演进,表格的准确性依赖社区帮助。_+_最近一次依据各 repo README 核查:2026-07-10。如有出入欢迎提 issue / PR 修正 —— 竞品在演进,表格的准确性依赖社区帮助。_## 核心优势diff --git a/skills/drawio-skill/SKILL.md b/skills/drawio-skill/SKILL.mdindex aef0826..698c39f 100644--- a/skills/drawio-skill/SKILL.md+++ b/skills/drawio-skill/SKILL.md@@ -1,6 +1,6 @@---name: drawio-skill-version: 1.28.0+version: 1.28.1description: Use when the user requests diagrams, flowcharts, architecture diagrams, ER diagrams, UML / sequence / class diagrams, network topology, cloud architecture from Terraform or Kubernetes manifests, ML/DL model figures (Transformer/CNN/LSTM), mind maps, or any visualization. Also use proactively when explaining systems with 3+ components, complex data flows, or relationships that benefit from visual representation. Best suited when the diagram needs custom styling, rich shape vocabulary, swimlanes, or exportable images (PNG/SVG/PDF/JPG). Generates .drawio XML and exports locally via the native draw.io desktop CLI.license: MIThomepage: https://github.com/Agents365-ai/drawio-skilldiff --git a/skills/drawio-skill/references/xml-authoring.md b/skills/drawio-skill/references/xml-authoring.mdindex 8791444..ae8622c 100644--- a/skills/drawio-skill/references/xml-authoring.md+++ b/skills/drawio-skill/references/xml-authoring.md@@ -121,6 +121,7 @@ For architecture diagrams with nested elements, use draw.io's parent-child conta- Pin `exitX/exitY/entryX/entryY` on every edge when a node has 2+ connections — distributes lines across the shape perimeter- Add `<Array as="points">` waypoints when an edge must detour around an intermediate shape- **Leave room for arrowheads:** the final straight segment between the last bend and the target shape must be ≥20px long. If too short, the arrowhead overlaps the bend and looks broken. Fix by increasing node spacing or adding explicit waypoints+- **libavoid obstacle-avoiding routing (editor-side, draw.io ≥ 30):** draw.io has a newer connector router that recomputes edge paths to run *around* shapes (fanning out parallel edges) without moving any node; re-routed edges are stamped `libavoidRouting=1` in their style so the geometry stays sticky on reopen. It runs interactively in the draw.io desktop editor (or via jgraph's MCP app-server `routing:"libavoid"`) — it is **not** a headless CLI flag (the CLI `--layout` presets are ELK *node* layouts, a different thing; see `mermaid-authoring.md`). For CLI-authored files keep the orthogonal rules above; if a dense diagram still has crossings after export, open the `.drawio` in draw.io desktop once and let libavoid re-route. Don't stack it on an ELK `--layout` pass — pick one router, not both.### Distributing connections on a shape