Component brief / Developer Tools
drawio-skill: editable diagrams as an Agent Skill.
What it is
It is a set of instructions and Python tools for an AI assistant. You describe what you want to show, or point the assistant at code, infrastructure files or a database schema. The assistant uses the skill to create a first draft.
The result is an editable .drawio file. You can open it in draw.io, move boxes, change labels and correct connections yourself.
Where it fits
The assistant reads the skill's instructions and runs its Python scripts on your machine. Python creates and checks the diagram files; draw.io Desktop renders them as images or PDF. The assistant reviews the result and makes corrections.
The skill can also save a JSON model file. This records the components, their connections and where the information came from, separately from the drawing's layout. For example, it can record that an API connects to a database while the drawing decides where their boxes sit. The tools can use this model to create different views and update a diagram while keeping manual layout changes.
When to use it
Use it for a system overview, a database diagram or a process flow that you want to keep editing. It is especially useful when project files can supply the first draft and the diagram needs to change with them.
Trade-offs
Python runs the tools locally, so it needs access to the relevant files. Install draw.io Desktop for image and PDF exports; some workflows need additional dependencies.
You still need to review the diagram. A file can be valid and look tidy while showing a connection the assistant misunderstood. Check the important relationships before using it as documentation.
Alternatives
Mermaid is useful for short diagrams written directly in Markdown. Excalidraw suits informal sketches. You can also draw directly in draw.io when doing it yourself is quicker.
Integration example
With the skill installed, give the assistant a concrete request:
Draw an overview of this project.
Show the application, its database and the external services it calls.
Save an editable draw.io file and an SVG for the documentation.
Tell me which connections you inferred so I can check them.
AI Disclosure
Researched and drafted with AI assistance, then reviewed by Søren Dalby. Sources are linked; errors may remain, and corrections are welcome.