Skip to content
Back to skills

Excalidraw

ASecurity

Use when drawing, editing, or exporting Excalidraw diagrams on a live local canvas, not image generation.

  • 2 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added November 14, 2026
toolsshellgit

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 11 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add anntnzrb/agents --skill excalidraw --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Excalidraw?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Excalidraw
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anntnzrb-excalidraw/badge)](https://www.skillsdirectory.com/skills/anntnzrb-excalidraw)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: excalidraw
description: "Use when drawing, editing, or exporting Excalidraw diagrams on a live local canvas, not image generation."
license: AGPL-3.0-or-later
compatibility: Requires uv and bun. Mermaid needs the canvas open in a browser tab.
metadata:
  author: anntnzrb
  upstream: https://github.com/yctimlin/mcp_excalidraw
---

# Excalidraw

Drive a live Excalidraw canvas from the shell. The CLI talks to a local canvas server; the user watches and edits the same canvas in a browser tab at the canvas URL. Edits from either side land in one scene.

## Public entrypoint

```sh
uv run --script <skill-dir>/scripts/cli.py <command> [args]
```

Set `<skill-dir>` to this skill directory. The wrapper forwards canvas commands to the pinned `mcp-excalidraw-server`, preserves their exit code, and attaches an idle watchdog to the canvas server. It answers `-h` and `--help` itself with wrapper help; use the `help` command for upstream help. NEVER call `bun x mcp-excalidraw-server` directly: commands that bypass the wrapper do not count as activity, so the watchdog may stop the server mid-task.

Live help is the only authority for commands, flags, and output shapes. This skill carries no command reference, so upstream releases need no edits here.

1. Run `help` to list commands and the exit-code contract.
2. Run `help <command>` before first use of a command this session.
3. Before building a diagram larger than a few shapes, read the guide upstream ships with the package. `install-skill --print-source` prints its directory as `source`; read `SKILL.md` and `references/cheatsheet.md` there. Ignore its MCP and REST sections and its `npx` spelling; use the entrypoint above.

Do not drive the canvas through browser automation; the CLI covers every operation.

## Server lifecycle

Any canvas command starts the server. A watchdog stops it after 30 minutes with no browser tab open, no scene change, and no wrapper command; `EXCALIDRAW_IDLE_TIMEOUT` overrides the seconds, and `0` disables it. Before stopping, the watchdog exports a non-empty scene to a `recovery/` directory under the state directory that `--help` names. Do not run `stop` yourself unless the user asks.

## Workflow

1. Run `status`. If the user wants to watch, give them the canvas URL.
2. Run `describe` before editing an existing scene. If the user refers to selected elements, run `selection` to get their IDs. Target elements by `id`, never by coordinates.
3. The browser tab syncs user edits to the server after a short delay. Run `describe` again after the user says they changed something.
4. Create shapes with custom ids first, then arrows bound to those ids, in one batch call.
5. After each batch, run `describe` and fix overlap, truncated labels, and arrows crossing unrelated shapes before adding more.
6. When `status` reports an open browser tab, also take a screenshot to a temp file and view it.
7. Export to the path the user named when the diagram must outlive the server, and report the path.

## Durable rules

- By default, the scene and snapshots live in server memory and do not survive a stop, except for the watchdog's recovery export. Set `EXCALIDRAW_DATA_DIR` on the canvas server to persist elements, image files, and named snapshots across restarts. Only one process can own the directory.
- After an idle stop, if persistence is not enabled, `import` the newest file from the recovery directory to continue the previous scene.
- Clearing, replacing on import, and restoring a snapshot overwrite the user's canvas. Save a snapshot first unless the user asked for a fresh canvas.
- When a command reports that a browser tab is required, ask the user to open the canvas URL, then retry. Do not open it yourself.
- `share` uploads the scene to excalidraw.com or a configured self-hosted target. Run it only when the user asks for a share link.

## Maintenance

To bump the CLI, review the upstream changes and update the release, commit, and tree hashes in `UPSTREAM.json`. Confirm the npm package version matches the release tag, then run the skill gates and smoke-test the wrapper's `help` command.

Files in this skill

  • NOTICE.md463 B
  • SKILL.md4 KB
  • UPSTREAM.json266 B
  • evals/evals.json2.5 KB
  • pyproject.toml1.3 KB
  • scripts/cli.py15.2 KB
  • tests/conftest.py166 B
  • tests/test_cli.py2.4 KB
  • tests/test_export.py1.2 KB
  • tests/test_idle.py3.8 KB
  • uv.lock14.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.