Install
openclaw skills install @spotlight-revenue/drawio-diagrammer-skillGenerate aesthetically beautiful, professional draw.io diagrams (flowcharts, ERD, architecture, sequence, class) with a mandatory visual QA loop — so your agent doesn't just build diagrams, it builds diagrams that look right. Use when user requests any diagram, flowchart, or system visualization.
openclaw skills install @spotlight-revenue/drawio-diagrammer-skill.drawio filereferences/box-style-standards.mdreferences/visual-review-protocol.md| 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 |
Read the correct references/diagram-types/ file before writing any XML.
List every node, connection, and section before coding. Do not improvise layout mid-build.
Every node must include the universal spacing attributes from references/box-style-standards.md.
mkdir -p ./diagrams
Save to:
./diagrams/<diagram-name>.drawio
Pre-save checklist:
mxCell elements have unique sequential numeric IDsspacingLeft=12;spacingRight=12;spacingTop=10;spacingBottom=10;verticalAlign=top;\n in value attributes — use 
 for line breaksverticalAlign=top on all multi-line content boxes/Applications/draw.io.app/Contents/MacOS/draw.io --export --format png --output ./diagrams/<name>.png --scale 2 --border 30 ./diagrams/<name>.drawio
Then follow the full protocol in references/visual-review-protocol.md.
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.
# macOS — Export PNG (standard)
/Applications/draw.io.app/Contents/MacOS/draw.io --export --format png --output <out.png> --scale 2 --border 30 <file.drawio>
# macOS — Export high-res PNG
/Applications/draw.io.app/Contents/MacOS/draw.io --export --format png --output <out.png> --scale 3 --border 30 <file.drawio>
# macOS — Export SVG
/Applications/draw.io.app/Contents/MacOS/draw.io --export --format svg --output <out.svg> <file.drawio>
# macOS — Export PDF
/Applications/draw.io.app/Contents/MacOS/draw.io --export --format pdf --output <out.pdf> <file.drawio>
# Linux / headless — Export PNG
xvfb-run -a drawio --export --format png --output <out.png> --scale 2 --border 30 <file.drawio>
# Linux / headless — Export SVG
xvfb-run -a drawio --export --format svg --output <out.svg> <file.drawio>