Agent skill · creative production · nousresearch

tldraw-offline

Drive and script tldraw offline canvases with an agent.

Why this skill is useful

Adds executable scripts for interacting with the tldraw offline app's local API, enabling advanced canvas manipulation and behavior customization.

What it needs

Requires tldraw installed locally. About 8k tokens when loaded. Last updated 2026-08-07. 226,679 stars on the source repository.

What this skill does

tldraw offline Skill Work with the tldraw offline desktop app (offline.tldraw.com): read the open canvas, make edits, and write document scripts — JavaScript embedded in a .tldraw file that runs on load and gives the file durable behavior. The app runs a local HTTP API (default localhost:7236) that a coding agent drives with plain curl from its terminal — this is exactly how the app's own homepage demo (Codex editing a canvas live) works. The agent does NOT use computer-use / GUI clicking, and does NOT hand-edit the .tldraw file directly. Keep tldraw offline open while you work. When to Use The user has tldraw offline open and asks you to build or modify a canvas (diagrams, wireframes, layouts). You want to add durable behavior to a drawing (reactive shapes, interactive buttons, animation, connection logic) via an embedded document script. Do NOT hand-place shapes to imitate a drawing — write the code that generates them. Agents are far better at scripting the canvas than at drawing on it. Prerequisites tldraw offline installed and running, with a document open. Releases: https://github.com/tldraw/tldraw-offline/releases/latest (macOS DMG, Windows x64/Arm64, Linux x8664/arm64 AppImage or amd64/arm64 .deb). Agent skills installed in the app: Develop → Install Agent Skills. The app writes its own tldraw skill into ~/.codex/skills/, ~/.claude/skills/, ~/.cursor/skills/, and ~/.gemini/skills/ — teaching that agent the curl recipes below. (This Hermes skill mirrors that guidance for Hermes.) The local control API. On launch the app writes server.json to its config dir (Linux ~/.config/tldraw/, macOS ~/Library/Application Support/tldraw/, Windows %APPDATA%\tldraw\) with port (default 7236), a bearer token, pid, and startedAt. Every request except GET / needs Authorization: Bearer <token>. A clean quit removes server.json; if it's present but the port doesn't answer, the app quit uncleanly — treat as not running. Re-read port + token on EVERY shell call. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills nousresearch/tldraw-offline

View the source on GitHub

Browse the @skills marketplace