banner-design
Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with optional…
Excalidraw canvas toolkit for creating, editing, and refining diagrams on a live canvas. Use when an agent needs to (1) draw or lay out diagrams, (2) iteratively refine them by describing the scene and screenshotting its own work, (3) export/import .excalidraw files or PNG/SVG
Claude Code
$ npx -y skills add yctimlin/mcp_excalidraw --skill excalidraw-skill --agent claude-code
Codex
$ npx skills add yctimlin/mcp_excalidraw --skill excalidraw-skill -a codex -y
Cursor
$ npx skills add yctimlin/mcp_excalidraw --skill excalidraw-skill -a cursor -y
Gemini CLI
$ npx skills add yctimlin/mcp_excalidraw --skill excalidraw-skill -a gemini-cli -y
GitHub Copilot
$ npx skills add yctimlin/mcp_excalidraw --skill excalidraw-skill -a github-copilot -y
OpenCode
$ npx skills add yctimlin/mcp_excalidraw --skill excalidraw-skill -a opencode -y
Windsurf
$ npx skills add yctimlin/mcp_excalidraw --skill excalidraw-skill -a windsurf -y
name: excalidraw-skill description: Excalidraw canvas toolkit for creating, editing, and refining diagrams on a live canvas. Use when an agent needs to (1) draw or lay out diagrams, (2) iteratively refine them by describing the scene and screenshotting its own work, (3) export/import .excalidraw files or PNG/SVG images, (4) save/restore canvas snapshots, (5) convert Mermaid to Excalidraw, or (6) perform element-level CRUD, alignment, distribution, grouping, duplication, and locking. Primary interface is the bundled CLI (npx -y mcp-excalidraw-server <command>) which auto-starts the canvas server; MCP tools and a REST API are equivalent alternatives.
Three interfaces drive the same live canvas. Pick the first one that applies:
1. **MCP tools** — if `excalidraw/*` tools (e.g. `batch_create_elements`) are in your tool list, prefer them: results land directly in your context, and screenshots come back as images without touching disk. 2. **CLI** (default when no MCP tools are present):
npx -y mcp-excalidraw-server <command>
No setup needed — any canvas-touching command **auto-starts the canvas server** on `http://127.0.0.1:3000` (first `npx` run downloads the package). If the CLI is installed globally (`npm i -g mcp-excalidraw-server`), the shorter alias `excalidraw-canvas <command>` works too. 3. **REST API** (last resort, e.g. from application code): HTTP endpoints on `http://127.0.0.1:3000` — see `references/cheatsheet.md` for payloads. The server must already be running.
The canvas URL comes from `EXPRESS_SERVER_URL` (default `http://127.0.0.1:3000`). Screenshots and image exports render headless inside the canvas server, so you never need a browser tab to check your own work. Only mermaid conversion and viewport control need an open tab (CLI exits with code 4 when it's missing). Still tell the user the URL — opening it lets them watch you draw.
Results are JSON on stdout — except `describe` (plain text) and raw-content output when `--out` is omitted (`export` scene JSON, `screenshot --format svg`). Diagnostics on stderr. Exit codes: 0 ok, 1 error, 2 usage, 3 canvas unreachable, 4 browser tab required (only `mermaid` and `screenshot --renderer browser`).
| Task | Command | |------|---------| | Start / stop / inspect server | `start`, `stop`, `status` | | Create elements (batch) | `add elements.json` or `echo '[...]' \| add` or `add --one '{...}'` | | Multi-op patch in one call | `apply patch.json` — `{"create":[...],"update":[{"id":"a","set":{...}}],"delete":[...]}` | | Read one / query many | `get <id>`, `query [--type t] [--bbox x0,y0,x1,y1] [--filter k=v] [--filter-json '{...}']` | | Update / delete | `update <id> --set '{...}'`, `delete <id> [...]` | | Read the current selection | `selection` (selected element IDs and count) | | Understand the scene | `describe` (plain-text summary: ids, positions, labels, connections) | | See the scene | `screenshot [--out f.png]` (PNG without `--out` → temp file path in JSON; SVG without `--out` → raw SVG) | | Layout operations | `arrange align\|distribute\|group\|ungroup\|lock\|unlock\|duplicate --ids a,b,c [--to left\|horizontal\|...]` | | Scene files | `export [--out scene.excalidraw]`, `import [scene.excalidraw|-] [--replace]` — a `.excalidraw.md` out path writes Obsidian's format (see File I/O) | | Mermaid → canvas | `mermaid [diagram.mmd|-]` (or stdin) | | Snapshots | `snapshot save\|list\|restore <name>` | | Share link | `share` (encrypted upload → excalidraw.com or a configured self-hosted URL) | | Wipe canvas | `clear --yes` | | Install / upgrade this skill | `install-skill --dir <skills-root>` (agent chooses project/global root) |
The CLI and MCP tools accept the same agent-friendly format and normalize it automatically:
**Raw REST is stricter**: labels must be `"label": {"text": "..."}`, bindings must be `"start": {"id": "..."}` / `"end": {"id": "..."}`. Only worry about this when POSTing to the API directly.
---
The canvas uses a 2D coordinate grid: **(0, 0) is the origin**, **x increases rightward**, **y increases downward**. Plan your layout before writing any JSON.
**General spacing guidelines:**
**Styling for a professional look:**
---
These are the most common mistakes that produce unreadable diagrams. Avoid all of them.
When you put a label on a background rectangle, Excalidraw creates a bound text element centered in the middle of that shape — right where your service boxe
mcp-excalidraw-server gives AI agents a live Excalidraw canvas they can draw on, look at, refine, and save into your repo.
Design banners for social media, ads, website heroes, creative assets, and print. Multiple art direction options with optional…
Use to design, redesign, critique, audit, polish or animate a frontend: websites, landing pages, dashboards, app UI, components,…
Hyperframes-based video template for retro pixel deck motion design. Use when users want a high-fidelity, multi-scene…
Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline,…