drawio

Installation
SKILL.md

Draw.io Diagram Skill

Generate draw.io diagrams as native .drawio files. Optionally export to PNG, SVG, or PDF with the diagram XML embedded (so the exported file remains editable in draw.io).

How to create a diagram

  1. Generate draw.io XML in mxGraphModel format for the requested diagram
  2. Write the XML to a .drawio file in the current working directory using the Write tool
  3. If the user requested an export format (png, svg, pdf), locate the draw.io CLI (see below), export with --embed-diagram, then delete the source .drawio file. If the CLI is not found, keep the .drawio file and tell the user they can install the draw.io desktop app to enable export, or open the .drawio file directly
  4. Open the result — the exported file if exported, or the .drawio file otherwise. If the open command fails, print the file path so the user can open it manually

Choosing the output format

Check the user's request for a format preference. Examples:

  • /drawio create a flowchartflowchart.drawio
  • /drawio png flowchart for loginlogin-flow.drawio.png
  • /drawio svg: ER diagramer-diagram.drawio.svg
  • /drawio pdf architecture overviewarchitecture-overview.drawio.pdf
Installs
1.2K
GitHub Stars
3.7K
First Seen
Feb 22, 2026