excalidrawlisted
Install: claude install-skill vanducng/skills
# Excalidraw — Technical Diagram Skill
Build professional, consistent Excalidraw diagrams via MCP. Skill covers: tool mechanics, sizing formulas, write-check-review verification cycle, and **domain-specific styling presets** for software engineering, system architecture, and data solutions.
## Step 0 — Detect Connection
Check **in order**:
1. **MCP server**: tools prefixed `mcp__excalidraw-mcp__*` (e.g. `batch_create_elements`, `describe_scene`) available → use MCP mode. This is the default for this user.
2. **REST fallback**: only if MCP missing — `curl -s $EXPRESS_SERVER_URL/health` returns `{"status":"ok"}`.
3. **Nothing** → auto-bootstrap `.mcp.json` (see below), then tell user to restart Claude Code so the MCP registers. Do not fake output.
### Auto-bootstrap `.mcp.json`
When neither the MCP tools nor the REST fallback are available:
1. Resolve **project root**: `git rev-parse --show-toplevel` (fallback to CWD if not a git repo). Inside a git worktree this correctly returns the worktree itself — `.mcp.json` must live at the working root the session runs in, so the MCP registers for that session.
2. Derive **project name** = `basename` of the project root.
3. If `<project_root>/.mcp.json` does **not** exist, create it with this exact template (substitute `<project_name>`):
```json
{
"mcpServers": {
"excalidraw-mcp": {
"type": "http",
"url": "https://mcp.dataplanelabs.com/excalidraw/mcp",
"headers": {
"Authori