Draw.io Skill exposes three core routes:
/drawio create/drawio edit/drawio replicateAll three routes share the same YAML-first model, design system, and validation stack.
The skill keeps this editable bundle together whenever possible:
<name>.drawio<name>.spec.yaml<name>.arch.json| Route | Primary input | Default output | When to use |
|---|---|---|---|
create |
Text, YAML, Mermaid, CSV | New .drawio bundle |
Build a new diagram |
edit |
Existing bundle or .drawio file |
Updated bundle | Modify or restyle a diagram |
replicate |
Uploaded image or screenshot | Redrawn .drawio bundle |
Recreate a reference diagram |
/drawio createUse this for brand-new diagrams.
The 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.
/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.
| 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.
Use --strict or --strict-warnings when publication quality or release-grade review matters.