# /drawio-skill: Turn prompts and real sources into editable draw.io diagrams

Source: https://trendhub.net/skills/agents365-ai-drawio-skill/drawio-skill
Skill folder: https://github.com/Agents365-ai/drawio-skill/tree/main/skills/drawio-skill
Pack: drawio-skill (https://trendhub.net/skills/agents365-ai-drawio-skill)
Works with: Claude Code, Cursor, Copilot and other agents, Claude Code (manual link)

drawio-skill routes each diagram request to the right method: hand-written XML for precise styling, Mermaid conversion for standard chart types, automatic layout for large graphs, or importers for code, infrastructure and schemas. The agent validates the file, exports a draft PNG, fixes visible defects, and only produces final exports after you approve. Its diagramctl CLI also syncs, queries, tests and reviews existing diagrams.

## When to use it

- You need an architecture, ER, sequence, BPMN or network diagram that colleagues can open and edit in draw.io.
- You want a diagram generated from Terraform, Kubernetes manifests, SQL DDL, OpenAPI or a codebase's imports.
- An existing generated diagram must be updated after the source changed, without losing hand-tuned positions.

## How it works

1. **Infer the request**: The agent works out diagram type, audience, scope and output, asking only when a missing choice changes the result, and defaults to PNG plus .drawio.
2. **Choose the route**: It uses an importer or autolayout.py for data-backed or large graphs and avoids hand-placing more than about fifteen nodes.
3. **Validate**: It runs validate.py with a score, and diagramctl test when an architecture policy applies, without presenting inferred findings as verified facts.
4. **Check the draft**: It exports a PNG without embedded XML, fixes overlap, clipping and stray edges, and stops automatic repair after two rounds.
5. **Finish**: After you approve, it creates the requested final formats and reports the paths of both the editable source and the exports.

## What it steers the agent away from

- Guessing shape names for cloud or vendor icons
- Overwriting manual geometry and styles during local edits or syncs
- Putting secrets into node properties that end up in exported files

## What it can touch

Runs Python scripts and the draw.io CLI, reads code, IaC, schema files and live infrastructure output when asked, and writes .drawio, image, HTML and report files.

## Questions

### Will the agent load it automatically?

Its frontmatter sets disable-model-invocation to true, so in Claude Code you start it yourself by name rather than relying on automatic loading.

### What if the draw.io CLI is missing?

Core IR, sync, query, test and review commands need only Python 3; for previews the skill can fall back to a diagrams.net URL or deliver the XML.
