draw-io-diagram-generator
What it does
This tool creates visual diagrams, like flowcharts or architecture maps, using a special format called draw.io. It generates a file ready to be opened in programs like VS Code or the draw.io website.
When to use it
- βWhen you need to draw a flowchart to explain a process.
- βWhen creating a map of how a computer system is organized.
- βTo visualize the interaction between different software parts.
Skill link
https://github.com/github/awesome-copilot/blob/main/skills/draw-io-diagram-generator/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCreate a flowchart showing the steps to make coffee, with a start, process, and end.β
5 new skills a week. 1 minute to read.
How it works
The tool understands what you want to draw and turns it into code (XML) that the draw.io program understands. It uses pre-defined templates or creates a basic structure to build the diagram.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Draw.io Diagram Generator
This skill enables you to generate, edit, and validate draw.io (.drawio) diagram files with
correct mxGraph XML structure. All generated files open immediately in the
Draw.io VS Code extension
(hediet.vscode-drawio) without any manual fixes required. You can also open the files in the draw.io web app or desktop app if you prefer.
1. When to Use This Skill
Trigger phrases (load this skill when you see these)
- "create a diagram", "draw a flowchart", "generate an architecture diagram"
- "design a sequence diagram", "make a UML class diagram", "build an ER diagram"
- "add a .drawio file", "update the diagram", "visualise the flow"
- "document the architecture", "show the data model", "diagram the service interactions"
- Any request to produce or modify a
.drawio,.drawio.svg, or.drawio.pngfile
Supported diagram types
| Diagram Type | Template Available | Description |
|---|---|---|
| Flowchart | assets/templates/flowchart.drawio |
Process flows with decisions and branches |
| System Architecture | assets/templates/architecture.drawio |
Multi-tier / layered service architecture |
| Sequence Diagram | assets/templates/sequence.drawio |
Actor lifelines and timed message flows |
| ER Diagram | assets/templates/er-diagram.drawio |
Database tables with relationships |
| UML Class Diagram | assets/templates/uml-class.drawio |
Classes, interfaces, enums, relationships |
| Network Topology | (use shape library) | Routers, servers, firewalls, subnets |
| BPMN Workflow | (use shape library) | Business process events, tasks, gateways |
| Mind Map | (manual) | Central topic with radiating branches |
2. Prerequisites
- If running with VS Code integration enabled, Install the drawio extension: draw.io VS Code extension β
hediet.vscode-drawio(extension id). Install with:ext install hediet.vscode-drawio - Supported file extensions:
.drawio,.drawio.svg,.drawio.png - Python 3.8+ (optional) β for the validation and shape-insertion scripts in
scripts/
3. Step-by-Step Agent Workflow
Follow these steps in order for every diagram generation task.
Step 1 β Understand the Request
Ask or infer:
- Diagram type β What kind of diagram? (flowchart, architecture, UML, ER, sequence, network...)
- Entities / actors β What are the main components, actors, classes, or tables?
- Relationships β How are they connected? What direction? What cardinality?
- Output path β Where should the
.drawiofile be saved? - Existing file β Are we creating new or editing an existing file?
If the request is ambiguous, infer the most sensible diagram type from context (e.g. "show the tables" β ER diagram, "show how the API call flows" β sequence diagram).
Step 2 β Select a Template or Start Fresh
- Use a template when the diagram type matches one in
assets/templates/. Copy the template structure and replace placeholder values. - Start fresh for novel layouts. Begin with the minimal valid skeleton:
<!-- Set modified="" to the current ISO 8601 timestamp when generating a new file -->
<mxfile host="Electron" modified="" version="26.0.0">
<diagram id="page-1" name="Page-1">
<mxGraphModel dx="1422" dy="762" grid="1" gridSize="10" guides="1"
tooltips="1" connect="1" arrows="1" fold="1"
page="1" pageScale="1" pageWidth="1169" pageHeight="827"
math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<!-- Your cells go here -->
</root>
</mxGraphModel>
</diagram>
</mxfile>
Rule: ids
0and1are ALWAYS required and must be the first two cells. Never reuse them.
Step 3 β Plan the Layout
Before generating XML, sketch the logical placement:
- Organise into rows or tiers (use swimlanes for layers)
- Horizontal spacing: 40β60px between same-row shapes
- Vertical spacing: 80β120px between tier rows
- Standard shape size:
120x60px for process boxes,160x80px for swimlanes - Default canvas: A4 landscape =
1169 x 827px
Step 4 β Generate the mxGraph XML
Vertex cell (every shape):
<mxCell id="unique-id" value="Label"
style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;"
vertex="1" parent="1">
β¦
FAQ
Do I need to install anything?
If you use VS Code, it's recommended to install the 'draw.io VS Code extension'. Otherwise, the files can be opened on the draw.io website.
What types of diagrams can I create?
You can create flowcharts, system architecture diagrams, sequence diagrams, database (ER) diagrams, UML diagrams, and network topologies.
What is a .drawio file?
It's a file containing all your diagram's information, allowing it to be edited and opened in various draw.io compatible programs.
Details
Original description by the author
Use when creating, editing, or generating draw.io diagram files (.drawio, .drawio.svg, .drawio.png). Covers mxGraph XML authoring, shape libraries, style strings, flowcharts, system architecture, sequence diagrams, ER diagrams, UML class diagrams, network topology, layout strategy, the hediet.vscode-drawio VS Code extension, and the full agent workflow from request to a ready-to-open file.
repo: github/awesome-copilot
Popularity
- GitHub stars
- 40k
- Ranking position
- #7183
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
acquire-codebase-knowledge
40kHelps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
acreadiness-assess
40kEnables your agent to assess a project's readiness for AI and generate a report. It's useful for understanding how well a project is prepared to use AI tools.
acreadiness-generate-instructions
40kHelps your agent create instructions for AI tools based on an assessment. It's useful for improving how AI interacts with code and closing identified gaps.
acreadiness-policy
40kEnables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
Similar skills
canvas
394kLets your agent show a hosted visual widget on a connected Mac panel, then hide the panel or move it to another page.
control-ui
394kHelps your agent organize and troubleshoot the OpenClaw Control UI, including sessions, dashboards, and connected Gateways.
diagram-maker
394kHelps your agent create clear diagrams as SVG, HTML, or editable Excalidraw files for processes, system architecture, and whiteboard sketches.