Skip to content

Programmatic canvas toolkit that draws, refines, and exports Excalidraw diagrams through MCP tools with live sync.

CCM score
52 of 100
skills.sh installs
1.7K
GitHub stars
483
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full diagram loop: laying out shapes on a live canvas, checking its own work with describe_scene and get_canvas_screenshot, and iterating
  • Includes import and export for .excalidraw, PNG, and SVG files, canvas snapshots, Mermaid conversion, and element-level CRUD, alignment, grouping, and locking
  • Enforces a quality gate after each batch of elements, checking for text truncation, overlap, arrow crossings, and minimum spacing before continuing
  • Designed for agents that need a REST API fallback when MCP is unavailable, and requires a running canvas server at EXPRESS_SERVER_URL

Install

$ npx -y skills add lingzhi227/agent-research-skills --skill excalidraw-skill -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Excalidraw Skill

Step 0: Detect Connection Mode

Before doing anything, determine which mode is available. Run these checks in order:

Check 1: MCP Server (Best experience)

mcp-cli tools | grep excalidraw

If you see tools like excalidraw/batch_create_elements → use MCP mode. Call MCP tools directly.

Check 2: REST API (Fallback — works without MCP server)

curl -s http://localhost:3000/health

If you get {"status":"ok"} → use REST API mode. Use HTTP endpoints (curl / fetch) from the cheatsheet.

Check 3: Nothing works → Guide user to install

If neither works, tell the user:

The Excalidraw canvas server is not running. To set up:

  1. Clone: git clone https://github.com/yctimlin/mcp_excalidraw && cd mcp_excalidraw
  2. Build: npm ci && npm run build
  3. Start canvas: HOST=0.0.0.0 PORT=3000 npm run canvas
  4. Open http://localhost:3000 in a browser
  5. (Recommended) Install the MCP server for the best experience:
    claude mcp add excalidraw -s user -e EXPRESS_SERVER_URL=http://localhost:3000 -- node /path/to/mcp_excalidraw/dist/index.js
    

MCP vs REST API Quick Reference

Details

Repository
github.com/lingzhi227/agent-research-skills
Categories
Design & UI/UX, Technical Documentation
First seen
Jun 3, 2026

Questions

What does the excalidraw-skill do for an agent?

It is a programmatic canvas toolkit for creating, editing, and refining Excalidraw diagrams through MCP tools with real-time canvas sync. The agent can draw and lay out diagrams, check its own work with screenshots and scene descriptions, export and import files, and convert Mermaid to Excalidraw.

How do I install the excalidraw-skill?

Run npx -y skills add lingzhi227/agent-research-skills --skill excalidraw-skill -y in your project. After that, the agent can draw and refine diagrams on a live Excalidraw canvas.

What does the excalidraw-skill need to run?

It requires a running canvas server, set through the EXPRESS_SERVER_URL variable, which defaults to a local address on port 3000. You should also open the canvas in a browser, since image export and screenshots depend on it.

Where does the excalidraw-skill sit in the Design and UI/UX category?

It is listed in the Design and UI/UX category alongside frontend-design, ui-ux-pro-max and impeccable. Its focus is diagram drawing on a canvas rather than interface or frontend design.

More from lingzhi227/agent-research-skills

All 31

Similar to Excalidraw Skill

More Design & UI/UX