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(readme): add Shape Search & AI-logo example images + sections (#24)
Agents365.ai66f225d48737
diff --git a/README.md b/README.mdindex f833db0..c27ed60 100644--- a/README.md+++ b/README.md@@ -25,6 +25,7 @@ A skill that turns natural-language descriptions into `.drawio` XML and exports- **6 diagram type presets** — ERD, UML Class, Sequence, Architecture, ML/Deep Learning, Flowchart- **Visualize a codebase** — extract and auto-lay-out the structure of a Python / JS-TS / Go / Rust project (import graphs) or a Python class hierarchy — Graphviz placement, transitive reduction, nested module containers- **Search 10,000+ official shapes** — resolve the exact AWS / Azure / GCP / Cisco / Kubernetes / UML / BPMN icon style instead of guessing (no more blank-box `shape=mxgraph.*` typos)+- **AI / LLM brand logos** — 321 logos (OpenAI, Claude, Gemini, Mistral, Llama, Ollama, LangChain…) that draw.io has none of, for LLM-app architecture diagrams- **Self-check + auto-fix** — reads its own PNG output and auto-fixes overlaps, clipped labels, stacked edges, and more (up to 2 rounds)- **Iterative feedback loop** — up to 5 rounds of targeted refinement- **Style presets** — capture your visual style from a `.drawio` file or image, reuse on demand@@ -176,8 +177,29 @@ python3 scripts/shapesearch.py "aws lambda" --limit 5# outlineConnect=0;...;shape=mxgraph.aws3.lambda;fillColor=#F58534;...```+<p align="center">+ <img src="assets/shape-search-example.png" width="900" alt="Serverless AWS architecture built from official draw.io icons resolved by shapesearch.py">+</p>++<sub>↑ A serverless AWS architecture — every icon is the real official draw.io shape resolved by <code>shapesearch.py</code>, not a hand-guessed <code>shape=</code> string.</sub>+Covers AWS / Azure / GCP / Cisco / Kubernetes / UML / BPMN / ER / electrical / P&ID and the general shape sets. Hand-writable style cheatsheet + search usage in [references/shapes.md](skills/drawio-skill/references/shapes.md).+## 🤖 AI / LLM Brand Logos++draw.io ships **no** modern AI/LLM logos, so an LLM-app diagram renders as generic boxes. `aiicons.py` resolves a brand name to a draw.io image style for any of **321 logos** (OpenAI, Claude, Gemini, Mistral, Llama, Cohere, DeepSeek, Qwen, Ollama, LangChain, HuggingFace…) from [lobe-icons](https://github.com/lobehub/lobe-icons) (MIT).++```bash+python3 scripts/aiicons.py "claude" --json # CDN-referenced (default)+python3 scripts/aiicons.py "openai" --embed # self-contained data URI+```++<p align="center">+ <img src="assets/ai-logos-example.png" width="900" alt="Multi-provider LLM app diagram with real AI brand logos resolved by aiicons.py">+</p>++<sub>↑ A multi-provider LLM app — every brand logo resolved by <code>aiicons.py</code>. Icons are referenced from the unpkg CDN by default (network needed at render time); <code>--embed</code> inlines them for offline use. Logos are trademarks of their owners, used for identification only.</sub>+## 🎨 Style PresetsCapture a visual style once, reuse it everywhere. Three presets are built in — `default`, `corporate`, `handdrawn` — and you can teach the skill your own style from a `.drawio` file or a flat image:@@ -213,6 +235,7 @@ Behind the scenes: **check dependencies → plan layout → generate `.drawio` X| Auto-layout for large graphs | ❌ hand-places, overlaps | ✅ Graphviz placement, ortho routing, nested containers || Structural validation | ❌ | ✅ deterministic `.drawio` linter || Official shape search | ❌ guesses, blank boxes | ✅ exact style for 10k+ AWS/Azure/GCP/UML shapes |+| AI/LLM brand logos | ❌ none | ✅ 321 logos (OpenAI/Claude/Gemini/…) via aiicons.py || Grid-aligned layout | ❌ | ✅ 10px snap, routing corridors || Color palette | random / inconsistent | ✅ 7-color semantic system || Style presets | ❌ | ✅ learn from `.drawio` file or image |@@ -230,6 +253,7 @@ Behind the scenes: **check dependencies → plan layout → generate `.drawio` X| **ML/DL diagrams** | ✅ tensor shapes, layer colors | ❌ | ❌ | ❌ || **Color system** | ✅ 7-color semantic | ❌ | ✅ 6 themes | ❌ || **Official shape search** | ✅ 10k+ shapes (local) | ✅ 10k+ shapes (MCP) | ❌ | ❌ |+| **AI/LLM brand logos** | ✅ 321 (lobe-icons) | ❌ | ❌ | ❌ || **Browser fallback** | ✅ diagrams.net URL (viewer + editable) | ❌ inline preview only | ✅ via optional MCP | ✅ diagrams.net viewer (primary) || **Zero-config** | ✅ copy `skills/drawio-skill/` | ✅ | ✅ desktop-only mode | ❌ needs plugin install |diff --git a/README_CN.md b/README_CN.mdindex 29ac211..068c8c0 100644--- a/README_CN.md+++ b/README_CN.md@@ -25,6 +25,7 @@- **6 种图表类型预设** —— ER 图、UML 类图、序列图、架构图、ML/深度学习、流程图- **可视化代码库** —— 提取并自动布局一个 Python / JS-TS / Go / Rust 项目的结构(导入关系图)或 Python 类继承层级 —— Graphviz 布点、传递约简、按子包嵌套的容器- **搜索 10,000+ 个官方形状** —— 直接拿到 AWS / Azure / GCP / Cisco / Kubernetes / UML / BPMN 图标的精确 style,不靠猜(杜绝 `shape=mxgraph.*` 拼错变空白框)+- **AI / LLM 品牌图标** —— 321 个 draw.io 自身没有的 logo(OpenAI、Claude、Gemini、Mistral、Llama、Ollama、LangChain……),专为 LLM 应用架构图准备- **自检 + 自动修复** —— 读取自己导出的 PNG,自动修复重叠、截断标签、连线堆叠等问题(最多 2 轮)- **迭代反馈循环** —— 最多 5 轮定向优化- **样式预设** —— 用 `.drawio` 文件或图片"教会"Skill 你的风格,命名保存后随时复用@@ -174,8 +175,29 @@ python3 scripts/shapesearch.py "aws lambda" --limit 5# outlineConnect=0;...;shape=mxgraph.aws3.lambda;fillColor=#F58534;...```+<p align="center">+ <img src="assets/shape-search-example.png" width="900" alt="用 shapesearch.py 解析出的官方 draw.io 图标搭建的 AWS 无服务器架构图">+</p>++<sub>↑ 一张 AWS 无服务器架构图 —— 每个图标都是 <code>shapesearch.py</code> 解析出的真实官方 draw.io 形状,而非手猜的 <code>shape=</code> 字符串。</sub>+覆盖 AWS / Azure / GCP / Cisco / Kubernetes / UML / BPMN / ER / 电气 / P&ID 以及通用形状集。可手写的 style 速查表 + 搜索用法见 [references/shapes.md](skills/drawio-skill/references/shapes.md)。+## 🤖 AI / LLM 品牌图标++draw.io **没有**任何现代 AI/LLM 品牌图标,所以画 LLM 应用架构时只能是一堆方框。`aiicons.py` 能把品牌名解析成 draw.io 图片样式,覆盖 [lobe-icons](https://github.com/lobehub/lobe-icons)(MIT)的 **321 个图标**(OpenAI、Claude、Gemini、Mistral、Llama、Cohere、DeepSeek、Qwen、Ollama、LangChain、HuggingFace……)。++```bash+python3 scripts/aiicons.py "claude" --json # CDN 引用(默认)+python3 scripts/aiicons.py "openai" --embed # 内联为自包含 data URI+```++<p align="center">+ <img src="assets/ai-logos-example.png" width="900" alt="用 aiicons.py 解析出的真实 AI 品牌图标搭建的多供应商 LLM 应用图">+</p>++<sub>↑ 一张多供应商 LLM 应用图 —— 每个品牌 logo 都由 <code>aiicons.py</code> 解析。默认从 unpkg CDN 引用图标(渲染时需联网),<code>--embed</code> 可内联以离线使用。logo 为各自所有者的商标,仅用于标识。</sub>+## 🎨 样式预设把视觉风格"教"给 Skill 一次,所有图表自动复用。内置三种预设:`default`、`corporate`、`handdrawn`;也可以从 `.drawio` 文件或图片学习你的风格:@@ -211,6 +233,7 @@ Skill 会提取配色、形状、字体和连线风格,渲染预览图,**确| 大图自动布局 | ❌ 手动摆放、易重叠 | ✅ Graphviz 布点、正交路由、嵌套容器 || 结构校验 | ❌ | ✅ 确定性 `.drawio` linter || 官方形状搜索 | ❌ 靠猜、变空白框 | ✅ 1 万+ AWS/Azure/GCP/UML 形状的精确 style |+| AI/LLM 品牌图标 | ❌ 没有 | ✅ 321 个 logo(OpenAI/Claude/Gemini/…)经 aiicons.py || 网格对齐布局 | ❌ | ✅ 10px 对齐、路由走廊 || 配色方案 | 随机 / 不一致 | ✅ 7 色语义系统 || 样式预设 | ❌ | ✅ 从 `.drawio` 文件或图片学习 |@@ -228,6 +251,7 @@ Skill 会提取配色、形状、字体和连线风格,渲染预览图,**确| **ML/DL 图** | ✅ 张量标注、层配色 | ❌ | ❌ | ❌ || **配色系统** | ✅ 7 色语义 | ❌ | ✅ 6 种主题 | ❌ || **官方形状搜索** | ✅ 1 万+ 形状(本地) | ✅ 1 万+ 形状(MCP) | ❌ | ❌ |+| **AI/LLM 品牌图标** | ✅ 321 个(lobe-icons) | ❌ | ❌ | ❌ || **浏览器降级** | ✅ diagrams.net URL(查看 + 可编辑) | ❌ 仅内联预览 | ✅ 通过可选 MCP | ✅ diagrams.net viewer(主要) || **零配置** | ✅ 复制 `skills/drawio-skill/` | ✅ | ✅ 桌面版模式 | ❌ 需安装插件 |diff --git a/assets/ai-logos-example.png b/assets/ai-logos-example.pngnew file mode 100644index 0000000..95d90baBinary files /dev/null and b/assets/ai-logos-example.png differdiff --git a/assets/shape-search-example.png b/assets/shape-search-example.pngnew file mode 100644index 0000000..28eb945Binary files /dev/null and b/assets/shape-search-example.png differ