据 AlphaMoat 统计,截至 2026-10,Draw.io Professional Diagrams 累计下载 11,774 次、获 7 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 2,334 位,在「开发编程」分类(1,069 个)中排名第 168 位。
列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。
| 平台 | 累计下载 | 星标 | 评论 |
|---|---|---|---|
| ClawHub ↗ | 3,877 | 7 | - |
| SkillHub ↗ | 1.2万 | 7 | — |
各平台的计数口径不同,统计时间不一致。
先识别图类型和关系,创建对应 XML,校验标识与结构,保存 drawio 文件并导出 PNG 供复核。文档涵盖数据库、类、时序、流程和架构图,可选 SVG 或 PDF。创建文件前需确认制图意图、文件名与格式,并核验本地导出器。
资料发布于 2026-10-27
以下是根据技能文档生成的示例,不代表实际运行结果。
2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。
| 月份 | 累计下载 | 环比 | 星标 |
|---|---|---|---|
| 2026-10 | 1.2万 | — | 7 |
| 2026-09 | 6,301 | — | 7 |
| 2026-08 | 4,696 | +24.9% | 7 |
| 2026-07 | 3,760 | +28.2% | 7 |
| 2026-06 | 2,934 | +21.5% | 7 |
| 2026-05 | 2,415 | — | 5 |
| 2026-03 | 1,337 | — | 4 |
以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。
---
name: drawio
description: Generate professional draw.io diagrams (ERD/database tables, class diagrams, sequence diagrams, flowcharts, architecture diagrams) and export them as PNG. Use when the user requests any kind of diagram, database model, class structure, flow, or system visualization.
metadata:
openclaw:
requires:
bins: ["drawio"]
---
# Draw.io Diagram Generation Skill## When to use this skill - User requests a database diagram, ERD, or entity-relationship diagram - User requests a class diagram or UML class structure - User requests a sequence diagram or interaction diagram - User requests a flowchart or process flow - User requests an architecture diagram or system overview - User mentions "draw.io", "diagram", "table", "entity", "class", "sequence", "flow" --- ## ⚠️ MANDATORY RULES — READ BEFORE GENERATING ANYTHING 1. **ALWAYS detect the diagram type first** before writing any XML 2. **NEVER mix styles** between diagram types — each type has its own strict XML structure 3. **ALWAYS assign unique sequential IDs** to every `mxCell` starting from 0 4. **NEVER use `\n` inside a `value` attribute** — use separate rows/cells instead 5. **ALWAYS calculate table/class heights correctly** using the formulas provided 6. **ALWAYS validate the XML structure** before saving 7. **ALWAYS export to PNG and include the PNG in the response before asking about other formats** — this step is non-negotiable 8. **NEVER use generic rounded rectangles** for database tables or class entities 9. **ALWAYS apply consistent spacing between diagram elements** - Horizontal spacing between elements: **minimum 120px** - Vertical spacing between rows or steps: **minimum 100px** - Tables/classes must not overlap - Relationship lines must not cross through table headers --- ## STEP 0 — Diagram Type Detection Before generating any XML, identify the diagram type from the user's request: | User says... | Diagram type | |---|---| | "database", "ERD", "tables", "entities", "foreign key" | → **TYPE 1: ERD** | | "class", "UML", "inheritance", "attributes", "methods" | → **TYPE 2: Class Diagram** | | "sequence", "interaction", "lifeline", "actor calls" | → **TYPE 3: Sequence Diagram** | | "flowchart", "flow", "process", "decision", "steps" | → **TYPE 4: Flowchart** | | "architecture", "system", "services", "components" | → **TYPE 5: Architecture** | --- ## Diagram Type References Use the detailed rules/templates in these files based on the detected type. - ERD / Database: `ERD.md` - UML Class: `CLASS.md` - Sequence: `SEQUENCE.md` - Flowchart: `FLOWCHART.md` - Architecture: `LAYOUT.md` --- ## Generation Workflow — ALWAYS follow this exact order ### Step 1 — Identify diagram type Determine TYPE 1–5 from the user's message before writing any XML. ### Step 2 — Plan all elements List every entity/class/participant and all relationships before coding. ### Step 3 — Create output folder ```bash mkdir -p ./diagrams ``` ### Step 4 — Write and save the XML Save to `./diagrams/<diagram-name>.drawio` **Mandatory pre-save checklist:** - [ ] All `mxCell` elements have unique sequential numeric IDs - [ ] ERD tables use `shape=table` with `shape=tableRow` rows (never generic shapes) - [ ] Class diagrams use `swimlane` with attribute block, divider line, and method block - [ ] Sequence diagrams have lifelines, activation boxes, and correct arrow styles - [ ] ERD relationship arrows connect to **row cell IDs**, not table container IDs - [ ] Heights calculated correctly: `30 + (columns x 30)` for ERD tables - [ ] No literal `\n` in value attributes (use `
` for multiline text cells only) - [ ] XML is well-formed and all tags are closed ### Step 5 — Export to PNG ```bash # macOS /Applications/draw.io.app/Contents/MacOS/draw.io -x -f png --scale 2 -o ./diagrams/<name>.png ./diagrams/<name>.drawio # Linux / headless xvfb-run -a drawio -x -f png --scale 2 -o ./diagrams/<name>.png ./diagrams/<name>.drawio ``` ### Step 6 — Verify output ```bash ls -lh ./diagrams/<name>.png ``` ### Step 7 — Show PNG first (MANDATORY) Always respond with the PNG image first (embed/attach it in the response). ### Step 8 — Ask the user for delivery format (MANDATORY) After showing the PNG, ALWAYS ask the user which additional format they want: --- The diagram is ready! Which format would you like? 1 - PNG image (ready to view) 2 - .drawio file (editable in draw.io) 3 - SVG (scalable vector) 4 - PDF 5 - All of the above Reply with the number(s) of your choice. --- Then based on the response: - **1** → send the PNG file - **2** → send the .drawio file - **3** → export SVG and send it - **4** → export PDF and send it - **5** → send all formats - **Multiple numbers** (e.g. "1 2") → send all requested formats --- ## Other export formats ```bash # SVG (scalable vector) /Applications/draw.io.app/Contents/MacOS/draw.io -x -f svg -o ./diagrams/<name>.svg ./diagrams/<name>.drawio # PDF /Applications/draw.io.app/Contents/MacOS/draw.io -x -f pdf -o ./diagrams/<name>.pdf ./diagrams/<name>.drawio # High-res PNG (scale 3) /Applications/draw.io.app/Contents/MacOS/draw.io -x -f png --scale 3 -o ./diagrams/<name>_hd.png ./diagrams/<name>.drawio # Transparent background /Applications/draw.io.app/Contents/MacOS/draw.io -x -f png -t --scale 2 -o ./diagrams/<name>_transparent.png ./diagrams/<name>.drawio ```
【全栈能力】编程大神.Skill:面向复杂真实项目的高阶全栈编程助手。不止生成代码,而是从一句目标接手陌生代码库,拆解需求、补齐实现、追到根因、完成重构、联调前后端,并把结果推进到能运行、能验证、能交付。覆盖 Web、后端、脚本、iOS、安卓、鸿蒙 ArkUI、微信小程序及其他技术栈,支持中英文工程、疑难 Bug、跨模块任务和长任务续做;用构建、日志、真实入口、设备或接口证据说明结果。仅问概念时直接回答,要求落地时持续推进到验收或明确阻塞。
编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。
编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。
编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。
编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。
编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。
编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。
用 gh 命令行工具查看 GitHub 上的 PR 检查、工作流运行与 API 查询的技能。
数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。