# Smart Drawio — Editable Diagrams

> Create, edit and validate editable Draw.io research diagrams, system architectures and flowcharts.

Smart Drawio — Editable Diagrams is a free AI agent skill on Agensi by sada l, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [sada l](https://www.agensi.io/creators/sada-l)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/smart-drawio-editable-diagrams
- Tags: research, documentation, drawio, architecture-diagrams, mxgraph, xml, research-tools

## About this skill

Create and edit fully editable Draw.io diagrams from natural-language requirements, code, or readable reference material. Smart Drawio delivers uncompressed mxGraph XML as a .drawio file that you can continue editing in diagrams.net or Draw.io Desktop.

### What it does
- Build research and model diagrams with clearly separated inputs, modules, outputs and training relationships.
- Map system architectures, service boundaries and directed data flows.
- Create flowcharts with labeled decisions and explicit retry loops.
- Update existing diagrams while preserving unrelated IDs, positions, connections and pages.
- Check XML structure and references, and help repair supported damaged or truncated files while preserving the original.

### Included in the package
- SKILL.md workflow instructions, currently written in Chinese.
- Research architecture and decision-flow .drawio templates.
- XML format, diagram quality and optional MCP tool references.
- A Python 3 standard-library validator and MIT license.

### How to use
Ask your agent to create or modify a diagram, specify the labels and reading direction, and request an editable .drawio file. The agent uses its own model, writes the XML, runs available validation and returns the file. English and Chinese diagram labels can follow your prompt.

### Optional Smart Drawio MCP
The separately installed local Smart Drawio MCP can add validation, supported repair and styling tools. It is optional: the base skill does not require the Smart Drawio website, a remote MCP endpoint or separate model credentials. MCP generation uses a separately configured model provider only when you choose that path.

### Requirements and limits
Use an agent with access to the installed skill files, a writable workspace and Python 3 for bundled offline validation. Opening and visually checking diagrams requires an available Draw.io editor or renderer. Structural validation does not certify visual layout. PNG, SVG and PDF export depend on separate rendering tools. Compressed diagrams must first be saved as uncompressed XML; the offline validator does not decompress them.

Free, open-source release under the MIT license. Source and installation documentation: https://github.com/yunshenwuchuxun/smart-drawio-next/tree/tools-v0.1.0/skills/smart-drawio

## Requires

- Python 3
- Terminal access
- draw.io
- Optional: Smart Drawio MCP
- Optional: Node.js 20.9+

Python runs the offline validation with the standard library. draw.io (diagrams.net) opens and edits the files. Smart Drawio MCP needs Node.js 20.9+.

## Known limitations

Supports uncompressed .drawio mxGraph XML. Compressed pages require conversion in a Draw.io editor first. Offline Python checks cover basic XML and graph references, not visual layout or every MCP validation rule. PNG/SVG/PDF output needs a separate renderer. The skill instructions are in Chinese. Model output may need iteration and visual review.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Smart Drawio — Editable Diagrams skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What files does Smart Drawio deliver?

Editable .drawio files containing uncompressed mxGraph XML. Labels, nodes, groups and connections can be edited in diagrams.net or Draw.io Desktop.

### Which agents and runtimes are required?

Use a SKILL.md-compatible agent that can read the installed skill folder, write local files and run Python 3 for bundled offline validation. The instructions are in Chinese; diagram labels can follow English or Chinese prompts.

### Is this skill free, and what is included?

Yes. This MIT-licensed release includes SKILL.md, a Python standard-library validator, research and flowchart templates, and XML, quality and optional MCP references.

### Can I update an existing diagram?

Yes. Provide an uncompressed .drawio file and describe the changes. The workflow preserves unrelated IDs, positions, connections and pages unless you request a broader rearrangement.

### Do I need Smart Drawio MCP or a separate model API key?

No. The base skill uses the agent's own model and bundled offline validation. The optional local MCP adds validation, supported repair and styling; only its optional external-model generation path needs separately configured provider credentials.

### Does validation guarantee a perfect diagram or image export?

No. Offline validation checks XML structure and graph references. Visual quality still needs review in an editor or renderer, and PNG/SVG/PDF exports require separate rendering tools.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
