drawio-skills

Workflows Overview

Draw.io Skill exposes three base routes and an academic overlay policy:

All routes share the same YAML-first model, design system, base CLI, and validation stack.

Shared Runtime Rules

  1. Offline Authoring Path by default
  2. Desktop-Enhanced Export when draw.io Desktop is available
  3. Live Refinement Backend only for explicit base-skill browser refinement
  4. Direct XML Exception only for tiny XML-only handoff or exact mxGraph control

The skill keeps final delivery directories focused on:

Canonical 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 Comparison

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 create

Use this for brand-new general diagrams.

Input modes

Fast path

The skill can skip clarification when the request already makes the type, theme, layout, and complexity clear.

Full path

The skill slows down and drafts the logic first when the request is:

Automatic branches

See Creating Diagrams.

Academic Overlay

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:

It then executes through sibling ../drawio/scripts/cli.js. It does not use MCP/live backend.

/drawio edit

Use this for incremental changes, imports, restructures, or theme switches.

Preferred edit targets

  1. Existing offline bundle
  2. Existing .drawio imported into a bundle
  3. Live browser session only when explicitly requested for base-skill refinement

Common edit types

See Editing Diagrams.

/drawio replicate

Use this to redraw an uploaded image into a structured spec.

Core replication steps

  1. Analyze the diagram structure
  2. Extract the source palette
  3. Run a text-fidelity pass for labels, captions, formulas, and edge labels
  4. Build a YAML spec
  5. Present logic, palette, and text-placement summary when needed
  6. Render final artifacts and work-dir sidecars

Text fidelity

Replication should preserve more than structure and color:

Color modes

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.

Shared Guardrails

Design system

Validation

Strict mode

Use --strict or --strict-warnings when publication quality or release-grade review matters.

Next Steps