sketch-designlisted
Install: claude install-skill MohanTn/mohan-dotfiles
# sketch-design: design on an .excalidraw canvas, via MCP only
The design lives on an **.excalidraw file** the human edits in the browser and you edit through MCP
tools. Every tool is addressed by absolute `file_path` — there are no page names and no database. You
draft, the human decides, you review in rounds, and only when the whole board is green do you write
code from it.
## Prime directive: the file is not yours to touch
**Never** use Read, Write, Edit, `cat`, `jq`, or a shell redirect on an `.excalidraw` file — not to
peek, not to "just fix one label".
Two things clobber a direct write: the MCP server holds the whole scene in an in-memory cache and the
next `commit` overwrites whatever you wrote behind its back, and the frontend holds the same scene and
autosaves over it. Every read and every write goes through the tools below. If a tool cannot express
the change, say so and ask — do not reach for the file.
## Getting the file path
Every call needs an **absolute** path ending in `.excalidraw`.
- The user named a file → use it, expanded to absolute.
- The user named a feature but no file → propose `<repo>/data/pages/<slug>.excalidraw` (slug =
lowercase, spaces to hyphens: `"OTP login"` → `otp-login`) and say the path you picked.
- Ambiguous or several candidates → ask. Do not guess and create a stray file.
Note the sketch-learn frontend's Load list only shows pages that were saved *from* the frontend. A
file you create through MCP opens fine in excalidraw.com o