Skip to content

Guide · Agent skill

How to use the Draw.io Diagram Generator agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The draw-io-diagram-generator is an agent skill: a folder of instructions and helper files that an AI agent such as Claude loads when your request involves a draw.io diagram. With it installed, you can ask the agent for a flowchart, architecture, sequence, ER, UML class or network diagram and get a .drawio file you can open and edit. This guide covers what the skill does, how to install it, how to phrase requests, and what to check before you trust the output.

Draw.io Diagram Generatorgithub/awesome-copilot · MIT

Quick start

  1. 1Download the ZIP. Download the draw-io-diagram-generator ZIP from this page and unzip it.
  2. 2Place the skill folder. Move the unzipped folder into ~/.claude/skills/ for personal use or into .claude/skills/ in your project.
  3. 3Or upload in the Claude apps. In the Claude apps, go to Settings → Capabilities → Skills and upload the skill.
  4. 4Install the VS Code extension (optional). Run ext install hediet.vscode-drawio to open generated files in VS Code.
  5. 5Make a request. Ask for a diagram by type, naming the components, connections and output path.
  6. 6Open and check the file. Open the .drawio file in VS Code or draw.io and review the layout and labels.
  7. 7Run the validator (optional). Run scripts/validate-drawio.py on the file to check its structure.

What the skill makes the agent do

When the skill is loaded, the agent knows how to write draw.io files in the mxGraph XML format. It follows a consistent colour palette, uses templates for flowcharts, system architecture, sequence, ER and UML class diagrams, and falls back to shape libraries for network topology and BPMN workflows. The skill also covers the full path from request to finished file: understanding the request, planning the layout, generating the XML, saving the file and telling you how to open it.

The output is a file with a .drawio, .drawio.svg or .drawio.png extension. The skill's documentation says these open in the draw.io VS Code extension (hediet.vscode-drawio), and you can also use the draw.io web or desktop app.

  • Flowcharts with decisions and branches
  • System architecture (multi-tier or layered services)
  • Sequence diagrams with lifelines and timed messages
  • ER diagrams with tables and relationships
  • UML class diagrams with classes, interfaces, enums and relationships
  • Network topology using shape libraries
  • Editing an existing .drawio file

Install the skill from the ZIP download

Download the ZIP for draw-io-diagram-generator from this page, then unzip it. You can install the skill for yourself across projects or for a single project.

For a personal install, unzip it into ~/.claude/skills/. For a project install, unzip it into the project's .claude/skills/ folder. If you prefer the Claude apps, you can instead upload the skill under Settings → Capabilities → Skills.

The skill is named draw-io-diagram-generator and its main instructions are in SKILL.md. Keep the references/ and scripts/ folders next to it so the agent can read them.

  • Personal: ~/.claude/skills/
  • Project: .claude/skills/ inside your repository
  • Claude apps: Settings → Capabilities → Skills, then upload

Set up the optional VS Code extension and Python

To open generated files directly in VS Code, install the draw.io extension with the id hediet.vscode-drawio. The skill's prerequisites give this command for installing it from VS Code's command line.

The helper scripts need Python 3.8 or newer. Python is optional: the agent can still write diagrams without it, but the validation and shape-insertion scripts will not run.

ext install hediet.vscode-drawio

Ask for a diagram in plain language

You do not need special syntax. The skill's trigger phrases include requests such as "create a diagram", "draw a flowchart", "generate an architecture diagram", "design a sequence diagram", "make a UML class diagram" and "build an ER diagram". Requests to add to or change an existing .drawio file also trigger it.

The agent works best when your request names the diagram type, the components, how they connect and where to save the file. If you leave something out, the skill tells the agent to infer the most sensible diagram type from context, for example treating "show the tables" as an ER diagram.

  • Name the type: flowchart, architecture, sequence, ER, UML class, network
  • List the components, actors, classes or tables
  • Describe the connections and their direction
  • Give an output path, such as docs/payments-flow.drawio
  • For edits, name the existing file

Examples of requests

Here are requests that match the skill's described use. Each one names a diagram type and the parts it should contain.

  • "Draw a sequence diagram of the checkout API call: browser, API gateway, orders service and payment provider. Save it as docs/checkout-sequence.drawio."
  • "Generate an architecture diagram for our three-tier app: React frontend, Node API, PostgreSQL. Put it in docs/architecture.drawio."
  • "Make an ER diagram from the tables in db/schema.sql and save it to docs/data-model.drawio."
  • "Add a Redis cache box between the API and the database in docs/architecture.drawio."
  • "Create a flowchart for password reset with a decision for expired links."

Check the output and use the validator

After writing the file, the skill tells the agent to run the validator, which is scripts/validate-drawio.py. Pass it the path to your file. The skill describes the validator as optional but recommended. It checks the diagram's structure. The scripts/README.md file and scripts/add-shape.py cover the shape-insertion helper.

Always open the file and look at it. The agent places shapes by coordinates and the layout is approximate, so you may need to move boxes or tidy edges.

python .github/skills/draw-io-diagram-generator/scripts/validate-drawio.py <path-to-file.drawio>

Safety notes: scripts and network

The skill runs scripts: yes. Its bundled Python scripts are scripts/validate-drawio.py and scripts/add-shape.py. They are meant to check a diagram's structure and add shapes to an existing file. Read them before you run them in a sensitive repository, as you would with any code you install.

The skill's metadata states that it does not use the network. Confirm this yourself by reading the scripts if it matters to your environment.

  • Scripts run locally on the files you point them at
  • Review scripts/ before running them in sensitive projects
  • Keep diagrams in version control so you can review changes

Tips for better results

Give the agent real names from your system, such as service names and table names, so the diagram matches your docs. Ask for one diagram per file when the topic is large, since the skill's layout guidance uses rows and tiers and dense diagrams get harder to read.

Keep the request specific about direction and relationships. If a result looks wrong, reply with the exact change you want rather than starting over, so the agent edits the existing file.

  • Use your own component and table names
  • One diagram per file for large systems
  • Ask for specific changes to an existing file instead of regenerating
  • Check arrows and labels by eye before sharing

What people use it for

  • Turning a description of a microservice system into an architecture diagram saved in docs/
  • Drafting a sequence diagram of an API call for a design review
  • Generating an ER diagram from a set of database tables
  • Writing a UML class diagram for a module and then refining it in VS Code
  • Adding a new component to an existing diagram in a repository

Frequently asked questions

How do I install the draw-io-diagram-generator skill?

Download the ZIP from this page and unzip it into ~/.claude/skills/ for personal use, or into .claude/skills/ inside a project. In the Claude apps, you can instead upload it under Settings → Capabilities → Skills.

What do I need to run it?

The skill itself needs an agent that supports skills. Python 3.8 or newer is optional and only needed for the scripts in scripts/. The draw.io VS Code extension hediet.vscode-drawio is optional, for opening files in VS Code.

Is the draw-io-diagram-generator skill free?

The skill is published under the MIT licence. This page does not state pricing for any agent or Claude plan you use with it, so check those services directly.

Does it use the internet?

The skill's metadata says it does not use the network. It does run bundled Python scripts, so review the scripts/ folder if that matters to you.

Why does my diagram need manual changes?

The agent places shapes by coordinates and the layout is approximate, and generated XML can need tidying. The skill claims its files need no manual fixes, but that claim has not been independently verified, so open and check each file.

What is the alternative if I need pixel-precise design?

The skill is not suited to pixel-precise design work. For that, edit the diagram directly in the draw.io web, desktop or VS Code app.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Choose this skill if you want an AI agent to produce editable .drawio architecture, sequence, ER, UML or network diagrams from a description, especially in a repository you already work in. Skip it if you need pixel-precise layouts or diagrams that will be shared without anyone checking them, and draw.io itself is the better tool for hand design.

Download the skill

Find exactly what
you're looking for