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. Academic overlay adds <name>.svg to the default publication final delivery set.
| 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 + .svg, 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.
skills/drawio/styles/built-in/Use --strict or --strict-warnings when publication quality or release-grade review matters.