Draw.io Skill exposes three base routes and an academic overlay policy:
/drawio create/drawio edit/drawio replicate/drawio-academic-skills for publication-facing variants of those routesAll routes share the same YAML-first model, design system, base CLI, and validation stack.
The skill keeps final delivery directories focused on:
<name>.drawioCanonical sidecars such as <name>.spec.yaml and <name>.arch.json should live in a project-local work directory such as .drawio-tmp/<name>/ unless the user explicitly asks for a beside-output bundle. The Academic Overlay defaults to editable .drawio plus a 300 DPI PNG, with SVG fallback when Desktop is unavailable.
| Route | Primary input | Default output | When to use |
|---|---|---|---|
create |
Text, YAML, Mermaid, CSV | New .drawio plus work-dir sidecars |
Build a new general diagram |
edit |
Existing bundle or .drawio file |
Updated .drawio plus work-dir sidecars |
Modify or restyle a diagram |
replicate |
Uploaded image or screenshot | Redrawn .drawio plus work-dir sidecars |
Recreate a reference diagram |
academic overlay |
Paper/thesis/manuscript prompt | final .drawio + 300dpi .png, SVG fallback, sidecars in work dir |
Publication-ready figures |
/drawio createUse this for brand-new general diagrams.
.drawio import when paired with --input-format drawioThe skill can skip clarification when the request already makes the type, theme, layout, and complexity clear.
The skill slows down and drafts the logic first when the request is:
See Creating Diagrams.
Use drawio-academic-skills for paper, thesis, IEEE, journal, manuscript, publication-ready, A4/Word/LaTeX, or formula-heavy scholarly figures.
The overlay performs academic preflight:
figureType: architecture, roadmap, or workflowIt then executes through sibling ../drawio/scripts/cli.js. It does not use MCP/live backend.
/drawio editUse this for incremental changes, imports, restructures, or theme switches.
.drawio imported into a bundleSee Editing Diagrams.
/drawio replicateUse this to redraw an uploaded image into a structured spec.
Replication should preserve more than structure and color:
bounds for exact text boxes and formulas;labelOffset to keep connector labels off the line instead of sitting on top of it;| Mode | Default | Effect |
|---|---|---|
preserve-original |
Yes | Preserve source palette with explicit style overrides |
theme-first |
No | Normalize the redraw to the selected theme |
See Replicating Diagrams.
The offline base also promotes upstream capabilities behind the same canonical boundary. Each route normalizes its input to canonical YAML or multi-page bundle v1 before validation, JavaScript ELK layout, and the renderer — no provider CLI, Graphviz, network, Desktop, browser, MCP, or model is required.
| Route | Input | Guide |
|---|---|---|
config-import |
declared Terraform, Kubernetes, Compose, SQL DDL, OpenAPI, GitHub Actions, GitLab CI | Config and IaC Importers |
code-import |
local Python, JavaScript/TypeScript, Go, or Rust project directory | Code Relationship Importers |
live-drift |
saved Terraform state/plan, Docker inspect, or Kubernetes live JSON, plus declared-vs-live drift | Live Snapshots and Drift |
multi-page |
canonical bundle v1 with stable page/object identity and structured links | Multi-page Bundles |
raster-replicate |
a trusted structured visual extraction via --input-format raster-extraction |
Replicating Diagrams |
postprocess |
offline mermaid, explain, relabel, restyle, heatmap, or script-free html |
Postprocess Suite |
The full upstream job-to-capability mapping lives in the Upstream Capability Map.
skills/drawio/styles/built-in/Use --strict or --strict-warnings when publication quality or release-grade review matters.