drawio
Installation
SKILL.md
Draw.io Diagram Skill
Write native .drawio files (mxGraphModel XML). Optionally export to PNG, SVG, or PDF via the desktop CLI — exported files embed the diagram XML so they remain editable in draw.io.
Workflow
- Generate mxGraphModel XML for the requested diagram
- Write to
<name>.drawioin the working directory - If the user wants an export format, run the CLI with
--embed-diagram, then delete the source.drawio - Open the result with
open <file>
Check the user's request for a format preference:
/drawio create a flowchart→flowchart.drawio/drawio png flowchart for login→login-flow.drawio.png/drawio svg: ER diagram→er-diagram.drawio.svg/drawio pdf architecture overview→architecture-overview.drawio.pdf
If no format is mentioned, write the .drawio file and open it.