draw-io-diagram-generator
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.
Security Assessment
About draw-io-diagram-generator
The draw-io-diagram-generator skill enables AI agents to create, edit, and validate draw.io diagram files with correct mxGraph XML structure. It solves the problem of manually authoring complex XML-based diagram files by automating the full workflow from understanding a diagram request to producing a ready-to-open .drawio, .drawio.svg, or .drawio.png file. Generated files open immediately in the hediet.vscode-drawio VS Code extension or in the draw.io web and desktop apps without requiring any manual corrections.
This skill covers a wide range of diagram types including flowcharts, system architecture diagrams, sequence diagrams, ER diagrams, UML class diagrams, network topology, BPMN workflows, and mind maps. It provides pre-built templates for common diagram types, supports mxGraph XML authoring, shape libraries, and style strings, and includes an optional Python-based validation and shape-insertion toolchain. The agent follows a structured workflow: clarifying the request, selecting or building from a template, authoring valid XML, and saving the output to the specified path.
This skill is intended for software engineers, solution architects, database designers, and technical writers who need to quickly produce visual documentation — such as API flow diagrams, database schemas, service architecture overviews, or UML models — directly from natural language requests within a development environment.
FAQ
What diagram types does this skill support?
It supports flowcharts, system architecture diagrams, sequence diagrams, ER diagrams, UML class diagrams, network topology, BPMN workflows, and mind maps. Templates are available for flowchart, architecture, sequence, ER, and UML class diagrams.
What file formats can be generated?
The skill generates .drawio, .drawio.svg, and .drawio.png files, all based on mxGraph XML structure.
Do I need any tools installed to use the generated files?
To open files in VS Code, install the hediet.vscode-drawio extension (ext install hediet.vscode-drawio). Files can also be opened in the draw.io web app or desktop app with no additional setup. Python 3.8+ is optional and only required for the validation and shape-insertion scripts.
Will the generated files work without manual editing?
Yes. The skill is designed to produce valid mxGraph XML that opens immediately in supported viewers without requiring manual fixes.
What happens if my diagram request is ambiguous?
The agent infers the most appropriate diagram type from context — for example, 'show the tables' maps to an ER diagram and 'show how the API call flows' maps to a sequence diagram.
All Files
13 filesInstall draw-io-diagram-generator
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
github/awesome-copilot