drawio-skills

Installation

Install the Draw.io Base Skill first. Add the Academic Overlay beside it only when you need publication-facing defaults. Add optional live-edit MCP only if you want base-skill browser sessions.

Prerequisites

Verify Node:

node --version
npx --version
npx skills add bahayonghang/drawio-skills

This installs the repository skill set into the correct skill directory for the current client integration.

Skill Variants

Manual Install

1. Clone the repository

git clone https://github.com/bahayonghang/drawio-skills.git
cd drawio-skills

2. Copy skill folders into your client’s skill directory

Copy skills/drawio by default.

For academic-paper defaults, copy both folders side by side:

skills/
├── drawio/
└── drawio-academic-skills/

The overlay resolves ../drawio/scripts/cli.js, ../drawio/references/, ../drawio/assets/themes/, and ../drawio/styles/built-in/ at runtime.

Claude

Gemini

Codex

Restart the client after copying the folders.

Optional Live Editing Setup

Normal create/edit/export work does not require MCP. Configure @next-ai-drawio/mcp-server only if you want base-skill live browser refinement.

Academic overlay does not need MCP and should not route through a live backend.

Claude / Gemini JSON config

macOS / Linux:

{
  "mcpServers": {
    "drawio": {
      "command": "npx",
      "args": ["--yes", "@next-ai-drawio/mcp-server@latest"]
    }
  }
}

Windows:

{
  "mcpServers": {
    "drawio": {
      "type": "stdio",
      "command": "cmd",
      "args": ["/c", "npx", "--yes", "@next-ai-drawio/mcp-server@latest"]
    }
  }
}

Codex config.toml

macOS / Linux:

[mcp_servers.drawio]
command = "npx"
args = ["--yes", "@next-ai-drawio/mcp-server@latest"]

Windows:

[mcp_servers.drawio]
type = "stdio"
command = "cmd"
args = ["/c", "npx", "--yes", "@next-ai-drawio/mcp-server@latest"]

Optional Desktop Export Setup

Install draw.io Desktop if you want:

The standalone SVG path does not require draw.io Desktop.

Verify the Installation

Verify the base skill is reachable

Try a simple request in your client:

/drawio create a small high-contrast flowchart with 4 nodes

Verify the academic overlay is reachable

/drawio-academic-skills create a grayscale-safe IEEE workflow figure with 4 stages

If the overlay reports missing ../drawio, copy the base skill beside it.

Verify the local CLI

node skills/drawio/scripts/cli.js skills/drawio/references/examples/login-flow.yaml --validate

Verify optional MCP availability

npm view @next-ai-drawio/mcp-server version

Troubleshooting

The skill loads, but no browser opens

That is expected in the default runtime. Browser sessions happen only when you configured optional MCP and explicitly use base-skill live refinement.

Academic overlay cannot find ../drawio

Install skills/drawio next to skills/drawio-academic-skills. The overlay is not a standalone copied package in the source tree.

No active session

You are using MCP tools without a live session. Call start_session first, or switch back to the offline bundle workflow.

Desktop export fails

Use standalone SVG instead, or install draw.io Desktop before using --use-desktop.

Windows MCP launch fails

Wrap npx with cmd /c as shown above. Direct npx launch is often unreliable on Windows MCP transports.

Next Steps