drawio-agents-diagram-generator

Parse natural language requests and generate validated Draw.io mxGraph XML diagrams.

4|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/OpenAEC-Foundation/Draw.io-Claude-Skill-Package --skill drawio-agents-diagram-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: drawio-agents-diagram-generator
Source: https://github.com/OpenAEC-Foundation/Draw.io-Claude-Skill-Package/tree/main/skills/source/drawio-agents/drawio-agents-diagram-generator
Command: npx skills add https://github.com/OpenAEC-Foundation/Draw.io-Claude-Skill-Package --skill drawio-agents-diagram-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Turn natural language diagram requests into correctly typed Draw.io diagrams by selecting the appropriate diagram type, routing to the right implementation skill, and ensuring valid, openable output.

Core Features & Use Cases

  • Diagram type selection and routing through a comprehensive decision tree to prevent wrong diagram generation.
  • Deterministic mxGraph XML generation with built-in validation and optional MCP integration for opening in Draw.io.
  • Supports flowcharts, BPMN, architecture, UML, ER, mindmaps and networks, with post-generation checks and safe fallbacks for ambiguous requests.

Quick Start

Describe your diagram in natural language and let this agent determine the type, generate the diagram's XML, validate it, and offer to open it in Draw.io.

Frequently Asked Questions about drawio-agents-diagram-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Draw.io diagrams from text prompts?

Yes, you can convert natural language to mxGraph XML. The skill parses your text descriptions, routes the request through a decision tree to identify the diagram type, and validates the generated XML structure, IDs, and styling before presenting the output.

How do I convert natural language to mxGraph XML?

You convert natural language to mxGraph XML by providing a text description of your diagram. The skill automatically determines the appropriate diagram type, generates the deterministic XML code, and applies strict validation rules for ID integrity and structure.

What diagram types are supported by natural language diagram generation?

Supported diagram types include flowcharts, BPMN, architecture, UML, ER, mindmaps, and networks. The skill uses a comprehensive decision tree to parse your text request and route it to the correct diagram implementation, preventing wrong diagram generation.

Does this diagram generator validate XML structure and ID integrity?

To open generated diagrams in Draw.io, the skill offers optional MCP integration. After generating and validating the mxGraph XML, it can route the output directly to Draw.io, allowing you to view and edit the diagram immediately without manual file imports.

Can I use MCP integration to open generated diagrams directly in Draw.io?

Yes, you can use optional MCP integration to open generated diagrams directly in Draw.io. After parsing your text prompt and validating the mxGraph XML, the skill offers to route the output to Draw.io for immediate viewing and editing.

What happens if my diagram request is ambiguous?

If your diagram request is ambiguous, the skill applies safe fallbacks. It uses a decision tree to interpret natural language descriptions and select the most appropriate diagram type, ensuring the generated mxGraph XML remains valid and openable even with imprecise input.