Generate beautiful draw.io diagrams with a mandatory visual QA loop. Covers flowcharts, ERD, architecture, sequence, and class diagrams. Use when user reques...
数据分析
draw.io Diagrammer
试用Generate beautiful draw.io diagrams with a mandatory visual QA loop. Covers flowcharts, ERD, architecture, sequence, and class diagrams. Use when user reques...
它能做什么
Generate beautiful draw.io diagrams with a mandatory visual QA loop. Covers flowcharts, ERD, architecture, sequence, and class diagrams. Use when user requests any diagram or visualization.
技能文档
draw.io Diagrammer Skill
When to use this skill
- User requests a flowchart, process map, or workflow diagram
- User requests an ERD, database diagram, or entity relationship model
- User requests an architecture, system, or component diagram
- User requests a class, sequence, or UML diagram
- User says "draw.io", "diagram", "flowchart", "visualize this process"
- User asks to update, fix, or extend an existing
.drawiofile
MANDATORY — Read before generating anything
- Detect diagram type first — see diagram-types/ references before writing XML
- Apply universal box style standards — see
references/box-style-standards.md - All positions are hardcoded — no auto-layout exists in draw.io XML
- Run the visual review loop after every export — see
references/visual-review-protocol.md - Never declare done without a visual pass — export PNG, read it, fix it, repeat
Diagram type detection
| User says... | Reference file |
|---|---|
| "flowchart", "process", "steps", "workflow", "SOP" | references/diagram-types/flowchart.md |
| "ERD", "database", "tables", "entities", "foreign key" | references/diagram-types/erd.md |
| "architecture", "system", "components", "services" | references/diagram-types/layout.md |
| "class", "UML", "inheritance", "methods", "attributes" | references/diagram-types/class.md |
| "sequence", "interaction", "lifeline", "actor calls" | references/diagram-types/sequence.md |
Standard generation workflow
Step 1 — Load type reference
Read the correct references/diagram-types/ file before writing any XML.
Step 2 — Plan all elements
List every node, connection, and section before coding. Do not improvise layout mid-build.
Step 3 — Apply universal box style
Every node must include the universal spacing attributes from references/box-style-standards.md.
Step 4 — Create output folder and write XML
mkdir -p ./diagrams
Save to:
./diagrams/.drawio
Pre-save checklist:
- All
mxCellelements have unique sequential numeric IDs - Universal box spacing applied to every node style:
spacingLeft=12;spacingRight=12;spacingTop=10;spacingBottom=10;verticalAlign=top; - Arrows use chained routing, not fan-out from single source to many targets
- Minimum 15–20px gap between any two boxes (verify sub-item list bottom vs next section top)
- Heights calculated with the formula in box-style-standards.md (×16px per line at fontSize=10)
- Wide-text panels (notes, descriptions) are 530px+ wide — not 460px or less
- No literal
\nin value attributes — use
for line breaks -
verticalAlign=topon all multi-line content boxes
Step 5 — Export PNG and run visual review loop
/Applications/draw.io.app/Contents/MacOS/draw.io --export --format png --output ./diagrams/.png --scale 2 --border 30 ./diagrams/.drawio
Then follow the full protocol in references/visual-review-protocol.md.
Step 6 — Deliver
Send the PNG to the user first. For larger diagrams, send section screenshots (top, middle, bottom) before the full image.
Then ask which additional formats 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.
For Drive delivery or custom output paths, follow references/workflow-sop.md.
CLI reference
# macOS — Export PNG (standard)
/Applications/draw.io.app/Contents/MacOS/draw.io --export --format png --output --scale 2 --border 30
# macOS — Export high-res PNG
/Applications/draw.io.app/Contents/MacOS/draw.io --export --format png --output --scale 3 --border 30
# macOS — Export SVG
/Applications/draw.io.app/Contents/MacOS/draw.io --export --format svg --output
# macOS — Export PDF
/Applications/draw.io.app/Contents/MacOS/draw.io --export --format pdf --output
# Linux / headless — Export PNG
xvfb-run -a drawio --export --format png --output --scale 2 --border 30
# Linux / headless — Export SVG
xvfb-run -a drawio --export --format svg --output
相关技能
把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。
AI diagram and flowchart generation powered by CellCog. Flowcharts, system architecture, mind maps, org charts, ER diagrams, sequence diagrams, Gantt charts, network diagrams. Describe your system in plain English, get interactive diagrams or print-ready PDFs.
用本地 draw.io 桌面 CLI 生成 .drawio 图,并导出 PNG/SVG/PDF/JPG。
Create and edit draw.io diagrams through the configured drawio MCP server, including flowcharts, architecture diagrams, ML model diagrams, Chinese labels, an...
Create and visually verify editable teaching diagrams