[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BSV26X2NBB627DE87B6801":3,"skill-same:01M6BSV26X2NBB627DE87B6801":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M6BSV26X2NBB627DE87B6801","tldraw-offline",null,"Operate the user's tldraw offline canvas app, including open .tldraw or .tldr files. Use whenever a task involves inspecting, editing, arranging, connecting, linting, or scripting a tldraw Desktop canvas.","mikker\u002Fdotfiles","mikker","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2819?v=4","01M6BSPF9WRVEQ89CW9NNJ7JK4","Mikkel Malmberg","01M6BSPFEEZKZSB4B603CZGV9W",116,"MIT","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Ftldraw-offline\u002FSKILL.md",[],[19,20,21,22,23,24],"offline","tldraw offline","canvas","canvas app","desktop","scripting","2026-11-10 10:12:30",false,"---\nname: tldraw-offline\ndescription: Operate the user's tldraw offline canvas app, including open .tldraw or .tldr files. Use whenever a task involves inspecting, editing, arranging, connecting, linting, or scripting a tldraw Desktop canvas.\n---\n\u003C!-- installed-by:tldraw-desktop-agent-skills -->\n\n# tldraw canvas operator\n\nUse this skill for tasks involving open tldraw Desktop files. The desktop app exposes a local HTTP server that can list documents, inspect canvas state, capture screenshots, execute JavaScript against a live editor, and expose live script files for durable behavior.\n\n## Server\n\nThe default server is `http:\u002F\u002Flocalhost:7236`. If that port is not active, read the `port` from `\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json`.\n\nA clean quit removes `server.json`; the next launch rewrites it. It also records `pid` and `startedAt`, so if the file is present but requests to its `port` fail, treat it as stale (the app quit uncleanly) — the app is not running.\n\nEvery request except `GET \u002F` and `\u002Freadme` needs the per-launch `token` from that same `server.json`, sent as `-H \"authorization: Bearer \u003Ctoken>\"`.\n\n**If the server's base URL and bearer token are already in your context** — the app injects them at subagent launch when its agent hook is installed — use those literal values directly, or just call the installed `tq` helper (below). The rest of this section is the fallback for when neither is in hand.\n\n**Each Bash tool call runs in a fresh shell — exported env vars do NOT persist between calls.** A `TLDRAW_TOKEN` you `export` in one call is empty in the next, so the request sends `authorization: Bearer` with no token and 401s. \"Export once and reuse\" does not work here — re-establish the port and token on every call. Read them together at the top of each call (both stay fixed for the app's lifetime, so re-reading is cheap):\n\n```bash\nPORT=$(jq -r .port '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json'); TOKEN=$(jq -r .token '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json')\n# use as:  http:\u002F\u002Flocalhost:$PORT\u002F...   -H \"authorization: Bearer $TOKEN\"\n```\n\n### Helper: `tq`\n\nA ready-made helper ships with this skill at `\"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\"`. Invoke it as `sh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" \u003CMETHOD> \u003Cpath> [body]` — it re-reads the port and token from `server.json` itself on every call, so you never handle the token or the fresh-shell env problem. A body starting with `{` is sent as JSON; anything else as raw `text\u002Fplain`:\n\n```bash\nsh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" POST \u002Fapi\u002Fsearch '{\"code\":\"return await api.getDocs()\"}'\nsh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" POST \u002Fapi\u002Fdoc\u002FDOC_ID\u002Fexec 'return editor.getCurrentPageShapes().length'\nsh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" GET  \u002Fapi\u002Fdoc\u002FDOC_ID\u002Fscript-status\n```\n\nIf `tq` is missing (an older install), fall back to raw `curl` with the `PORT`\u002F`TOKEN` reads shown above. The raw-`curl` examples below stay in explicit form so each request is visible; translate any to `sh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" \u003CMETHOD> \u003Cpath> [body]`.\n\n```bash\ncurl -s http:\u002F\u002Flocalhost:7236\u002Freadme\n```\n\n## Core endpoints\n\n- `POST \u002Fapi\u002Fsearch`: run JavaScript with an `api` object. Use this to discover docs, read shapes and bindings, capture screenshots, and query the editor API reference.\n- `POST \u002Fapi\u002Fdocs\u002Fcreate`: create a new named `.tldraw` file, open it in a new window, and save it to disk. Use this when the task needs a fresh document rather than an already-open one.\n- `POST \u002Fapi\u002Fdoc\u002F:id\u002Fexec`: run JavaScript with a live tldraw `editor` scoped to one document. Use this for canvas edits.\n- `POST \u002Fapi\u002Fdoc\u002F:id\u002Fscript-workspace`: expose a locally owned document's live script paths for direct durable document-script and asset edits.\n- `GET \u002Fapi\u002Fdoc\u002F:id\u002Fscript-status`: inspect a locally owned document's watcher state for `script\u002F**` edits and find `errorLogPath`.\n\nThe code-taking POST endpoints accept raw JavaScript as the request body (`content-type: text\u002Fplain`) or a JSON body `{\"code\": \"...\"}`, and wrap the code in an async function so top-level `await` works. Prefer raw bodies for shell use.\n\n## Use this first\n\nMost tasks do not require searching `api.members`. Start with these calls and search the full Editor API only if a snippet fails or you truly need an unknown method. The object is `api`, not `spec`. Each block below is shown as raw `curl` so the request is visible; `sh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" \u003CMETHOD> \u003Cpath> [body]` is the shorter equivalent that handles the port and token for you.\n\n```bash\n# Fresh shell per call: re-read port + token first (or use the values already in your context).\nPORT=$(jq -r .port '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json'); TOKEN=$(jq -r .token '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json')\n\n# Pick the target doc by focused window or filename.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fsearch \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"return await api.getDocs({ name: \\\"NAME\\\" })\"}'\n\n# Read the current page's shapes with ids, bounds, text, and metadata.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fsearch \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"const doc = await api.getFocusedDoc(); const page = doc ? await api.getShapes(doc.id) : null; return { doc, shapes: page?.shapes.map(s => ({ id: s.id, type: s.type, x: s.x, y: s.y, props: s.props, meta: s.meta })) ?? [] }\"}'\n\n# Read bindings only for connection-dependent behavior.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fsearch \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"const doc = await api.getFocusedDoc(); return doc ? await api.getBindings(doc.id) : []\"}'\n```\n\nEvery listed doc has `ownership: 'local' | 'remote'`. A remote doc's opaque `id` works with `\u002Fexec`, `api.getShapes()`, `api.getBindings()`, and screenshots, but its `documentId`, `filePath`, and `unsavedChanges` are `null`: only the host owns those facts, and `host` carries the `host:port` sharing it. Remote edits sync into the host working copy. Do not call `helpers.saveDoc()`, open `\u002Fscript-workspace`, or claim the host archive was saved for a remote doc.\n\nA local doc also reports `sharedToLan`. True means the board is open to LAN right now and other people are editing it as you work: read before you write, and never clear a page you did not create.\n\n## Scripts on a shared board\n\nWriting or editing a document script for a board that is (or may become) shared changes what the script may do, because **every participant's editor runs the whole bundle** — `config.js` before it mounts, `main.js` after — and nothing elects a writer:\n\n- Registration and rendering (`config.js` utils, view-only reactions) must run on every client, identically. A client that doesn't register a script-defined shape type renders an inert placeholder instead.\n- Writes happen once per client unless guarded. Gate them on `ctx.app.board.isHost` — true in the editor that owns the file, false in one that joined — and keep continuous work (`tick` handlers, timers, simulations) behind the same guard. A never-shared board has one editor and it is the host, so the guard is correct offline too.\n- Create with stable ids via `helpers.createShapeIfMissing` \u002F `createShapesIfMissing`; never clear-and-redraw a page other people are on.\n- Keep per-client state (hover, selection, \"which card is flipped for me\") in module scope, not in shape props — writing it to the document broadcasts one person's UI to everyone.\n\nRead the `scripts-on-a-board-shared-over-lan` recipe from `api.recipes` before writing one.\n\n## Creating documents\n\nWhen the task needs a fresh document (not one of the open canvases), `POST \u002Fapi\u002Fdocs\u002Fcreate` with a JSON body `{\"name\": \"...\"}` creates `\u003Cname>.tldraw`, opens it in a new window, and saves it to disk immediately. The name takes a `.tldraw` extension or none — never legacy `.tldr`, which the app opens but does not create. Optional `\"directory\"` is an absolute path to an existing folder; the default is the user's Documents folder. It never overwrites — an existing file with that name is a `409`. The response returns the new doc's `id`, `documentId`, `filePath`, `name`, and `windowId` — use that `id` directly with `\u002Fapi\u002Fdoc\u002F:id\u002Fexec` and the `api.*` reads, no `api.getDocs()` re-discovery needed. Do not create the file yourself with filesystem tools.\n\n```bash\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fdocs\u002Fcreate \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"name\":\"Project Plan\"}'\n```\n\n## Reference recipes\n\n`api.recipes` (via `\u002Fapi\u002Fsearch`) is an object keyed by recipe `id`; read one in full with `api.recipes['\u003Cid>']`. Query it when a task matches one of the worked recipes:\n\n- `stack-existing-boxes` — Stack existing boxes\n- `add-durable-behavior-with-a-document-script` — Add durable behavior with a document script\n- `editable-furniture-with-anchored-internals` — Editable furniture with anchored internals\n- `scripts-on-a-board-shared-over-lan` — Scripts on a board shared over LAN\n- `clickable-card-or-button-ui` — Clickable card or button UI\n- `connection-dependent-behavior` — Connection-dependent behavior\n- `animation-simulation-loop` — Animation \u002F simulation loop\n- `custom-shape-config-js` — Custom shape (config.js)\n- `custom-binding-config-js` — Custom binding (config.js)\n- `custom-overlay-config-js` — Custom overlay (config.js)\n\nFetch `\u002Freadme` when an endpoint fails or you need API details not covered here.\n\n## Durable UI Behavior\n\nFor durable UI behavior on a locally owned document, open `\u002Fscript-workspace`, write `script\u002Fmain.js`, check `script-status`, then verify behavior once. `script-status` returns a derived `state` field — treat `state: \"applied\"` as success; `\"pending\"` means the watcher hasn't applied the current file yet — poll again and it resolves (a file saved while the app was restarting is applied automatically the next time you open `\u002Fscript-workspace` or read `script-status`, no manual re-save needed); `\"error\"` means the apply failed (read `lastApplyError` \u002F `errorLogPath`). Branch on `state` rather than comparing the raw digests yourself. The `\u002Fscript-workspace` response reports `isDefaultScript` (true while `script\u002Fmain.js` is still the untouched starter template, pre-created when absent) — when `isDefaultScript` is false there is a preexisting script to extend, not clobber. Read `mainJsPath` to see the current contents before editing (and read it once first if your file tools refuse to write a file they have not read). Remote boards have no local script workspace or watcher status; their host owns the script files. Do not spend the run searching for pointer\u002Fclick APIs — read the clickable-UI recipe from `api.recipes` first.\n\n## Shape format\n\n`api.getShapes()`, `\u002Fexec`, and document scripts all use raw tldraw SDK records. Create shapes with normal tldraw partials. Prefer importing primitives from `'tldraw'` when the host import map is active — in an `\u002Fexec` snippet use `await import('tldraw')` (a snippet can't use a static `import`); a document script can use a top-level `import { createShapeId } from 'tldraw'`. The `helpers` bag carries only editor-bound conveniences (not SDK primitives) — import primitives from `'tldraw'` directly. Read `api.imports` (from `\u002Fapi\u002Fsearch`) for the full list of importable symbols:\n\n```js\nconst { createShapeId, toRichText } = await import('tldraw')\neditor.createShape({\n\tid: createShapeId('box1'),\n\ttype: 'geo',\n\tx: 100,\n\ty: 100,\n\tprops: { geo: 'rectangle', w: 300, h: 200, richText: toRichText('Label') },\n})\nawait helpers.saveDoc()\n```\n\nThe `helpers.saveDoc()` call above is only for `ownership: 'local'`. Omit it for a remote doc; its edits sync to the host working copy and only the host saves the archive.\n\nUse `api.getShapes(doc.id)` to inspect existing raw shape records before mutating them.\n\n## Screenshots\n\n`api.getScreenshot(docId, opts?)` captures a JPEG to a temp file and returns `{ filePath, width, height, pageName, viewport, bounds, captureMode }` — a path, not image data, so open the file yourself to look at it. `opts.size` is `'small' | 'medium' | 'large' | 'full'` (default `'small'`). `opts.mode` is `'canvas'` (default — just the shapes, framed to their bounds) or `'window'` (the whole app window: canvas plus UI chrome); use `'window'` to see UI a script's `components` override draws outside the canvas. `opts.bounds` (`{ x, y, w, h }` in page coordinates) applies to `'canvas'` mode only. Prefer reading records with `api.getShapes()`; screenshot only when visual placement is uncertain or the user asks for visual proof.\n\n## Diagram connections\n\n- Create every meaningful connection with `helpers.createArrowBetweenShapes(fromId, toId, options)` so both endpoints have real bindings.\n- Never create a raw arrow shape for a meaningful connection. Raw unbound arrows are only appropriate for explicitly decorative marks.\n- Run `helpers.getLints()` before reporting a diagram complete and address every actionable result. Fetch `\u002Freadme` for the helper recipe and the opt-out for intentional decorative arrows.\n\n## Workflow\n\n1. Restate the intended outcome in concrete canvas terms.\n2. Choose durability:\n   - Static drawing edits such as moving, arranging, labeling, or styling shapes use `\u002Fexec`.\n   - Durable behavior on a locally owned document such as clickable UI, animations, reactive layouts, or \"run on open\" logic uses `\u002Fscript-workspace` and direct filesystem edits under `script\u002F**`. Read the worked recipes from `api.recipes` (via `\u002Fapi\u002Fsearch`) before building durable behavior. Remote boards have no local script workspace.\n3. Verify once with records from `api.getShapes()`, `api.getBindings()`, `api.getScriptStatus()`, or a screenshot when visual placement is uncertain. Save only a locally owned document with `helpers.saveDoc()`; remote edits sync to the host working copy.\n4. Stop after one successful verification unless the user explicitly asks for debugging.\n\nNever edit `.tldraw` archive files directly while they are open, and never edit `db.sqlite`, `db.sqlite-wal`, `db.sqlite-shm`, `metadata.json`, `.lock`, or `.script-workspace\u002F**`.\n\n## Recovering from a closed or unresponsive target document\n\nIf a request to your target `docId` comes back `\"Window closed before responding\"`, an error like `\"Document not found\"`, or times out with no response at all, that window is gone. Do not retry the same `docId`, and do not assume whatever `api.getDocs()` returns next is the same document — with more than one window open, the next call can silently resolve to a completely different, unrelated file.\n\n- Call `api.getDocs()` fresh and match the result against the doc `name` (and `documentId` if you captured it) you were actually working on.\n- **Name matches** → safe to resume against the new `id` for that doc.\n- **No match, or `getDocs()` now returns only a document you never opened** → STOP. \"The only open document\" is not \"the right document.\" Report that your target window closed and ask how to proceed instead of writing anywhere. If the task calls for a fresh document anyway, use `POST \u002Fapi\u002Fdocs\u002Fcreate` (above) rather than repurposing whatever `getDocs()` handed you.\n\nBefore any bulk or destructive edit (deleting all shapes on a page, clearing a doc to rebuild it), sanity-check what you are about to touch: read `api.getShapes(doc.id)` first and compare the shape count and content against what you expect on your own document. A nonzero shape count you did not create, or content unrelated to your task, means you are very likely on someone else's document — stop and report instead of deleting.\n\n## Durable script pattern: editable furniture, anchored internals\n\nUse this when a document script draws a board that users should rearrange or restyle while script-owned animation\u002Fgame pieces still follow it.\n\n- Create user-facing furniture with stable ids and `helpers.createShapeIfMissing` \u002F `helpers.createShapesIfMissing`; never delete and redraw it on rerun.\n- Pick one visible anchor per interactive system, such as a track or table felt.\n- Use `helpers.onShapeTranslate(anchorId, ({ dx, dy }) => ... , { signal })` to respond only to that anchor.\n- Move script-owned internals with `helpers.translateShapes(..., dx, dy)` (it runs without recording undo history); wrap other script-owned writes in `editor.run(fn, { history: 'ignore' })`.\n- Avoid broad `store.listen` \u002F `afterChange` layout handlers that react to every shape; they can treat the script's own writes as new user edits and recurse.\n\n## Editor customization: custom shapes, tools, and overlays (`config.js`)\n\nCustom shape types, tools, overlays, or UI components need a `script\u002Fconfig.js` next to `main.js` (create it through `\u002Fscript-workspace`, same as `main.js`) — a `main.js`-only script cannot register them. Its default export runs BEFORE the editor mounts, receives `{ config }` (the app's default `TldrawConfig`), and returns it after mutating or spreading it. The passed `config` carries `shapeUtils`, `bindingUtils`, `assetUtils`, `overlayUtils`, `tools` (arrays of constructors), `components` (a `TLComponents` map), and `options`; optional `getShapeVisibility(shape, editor)`, `assetUrls`, and `initialState`. Push your constructors onto the arrays — a util\u002Ftool whose static `type`\u002F`id` matches a stock one replaces it. Custom shapes subclass `ShapeUtil` and custom overlays subclass `OverlayUtil` (both from `'tldraw'`); define them in a sibling file and `import` them, since `config.js` and `main.js` are separate module graphs.\n\nRead the worked `custom-shape`, `custom-binding`, and `custom-overlay` recipes from `api.recipes` for the full `ShapeUtil` \u002F `BindingUtil` \u002F `OverlayUtil` skeletons before writing one. (Their lifecycle hooks — `onAfterChangeToShape`, `getGeometry`, `isActive`, … — are also indexed in `api.members`, tagged with an `owner`, so a name search finds them instead of only the SDK types.) Saving `config.js` (or a file it imports) rebuilds the store and editor — document, camera, and selection are preserved but undo history resets — whereas saving `main.js` never remounts. Keep run-on-mount logic in `main.js`; `config.js` only builds the config. Types live in `.script-workspace\u002Fscript-context.d.ts` (`ConfigScriptContext`, `TldrawConfig`).\n\n## Fast path for static edits\n\nShown as raw `curl`; `sh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" \u003CMETHOD> \u003Cpath> [body]` is the shorter equivalent that handles the port and token for you.\n\n```bash\n# Fresh shell per call: re-read port + token (or use the values already in your context).\nPORT=$(jq -r .port '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json'); TOKEN=$(jq -r .token '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json')\n\n# Discover docs.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fsearch \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"return await api.getDocs()\"}'\n\n# Read shapes for a doc.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fsearch \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"const [doc] = await api.getDocs(); return await api.getShapes(doc.id)\"}'\n\n# Mutate a LOCAL doc and save with \u002Fexec, then verify once with api.getShapes().\n# For a remote doc, omit helpers.saveDoc(); its host owns archive saving.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fdoc\u002FDOC_ID\u002Fexec \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"const { createShapeId, toRichText } = await import(\\\"tldraw\\\"); const id = createShapeId(\\\"r1\\\"); editor.createShape({ id, type: \\\"geo\\\", x: 100, y: 100, props: { geo: \\\"rectangle\\\", w: 200, h: 100, richText: toRichText(\\\"Hello\\\") } }); await helpers.saveDoc(); return { created: [id] }\"}'\n```\n\n## Reporting\n\nKeep summaries tight. Include the doc id\u002Fname, changed shape ids or script path, and the one verification result. If something fails, quote the server error, digest mismatch, or the relevant `.script-workspace\u002Ferror.log` line.\n","\u003C!-- installed-by:tldraw-desktop-agent-skills -->\n\n# tldraw canvas operator\n\nUse this skill for tasks involving open tldraw Desktop files. The desktop app exposes a local HTTP server that can list documents, inspect canvas state, capture screenshots, execute JavaScript against a live editor, and expose live script files for durable behavior.\n\n## Server\n\nThe default server is `http:\u002F\u002Flocalhost:7236`. If that port is not active, read the `port` from `\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json`.\n\nA clean quit removes `server.json`; the next launch rewrites it. It also records `pid` and `startedAt`, so if the file is present but requests to its `port` fail, treat it as stale (the app quit uncleanly) — the app is not running.\n\nEvery request except `GET \u002F` and `\u002Freadme` needs the per-launch `token` from that same `server.json`, sent as `-H \"authorization: Bearer \u003Ctoken>\"`.\n\n**If the server's base URL and bearer token are already in your context** — the app injects them at subagent launch when its agent hook is installed — use those literal values directly, or just call the installed `tq` helper (below). The rest of this section is the fallback for when neither is in hand.\n\n**Each Bash tool call runs in a fresh shell — exported env vars do NOT persist between calls.** A `TLDRAW_TOKEN` you `export` in one call is empty in the next, so the request sends `authorization: Bearer` with no token and 401s. \"Export once and reuse\" does not work here — re-establish the port and token on every call. Read them together at the top of each call (both stay fixed for the app's lifetime, so re-reading is cheap):\n\n```bash\nPORT=$(jq -r .port '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json'); TOKEN=$(jq -r .token '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json')\n# use as:  http:\u002F\u002Flocalhost:$PORT\u002F...   -H \"authorization: Bearer $TOKEN\"\n```\n\n### Helper: `tq`\n\nA ready-made helper ships with this skill at `\"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\"`. Invoke it as `sh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" \u003CMETHOD> \u003Cpath> [body]` — it re-reads the port and token from `server.json` itself on every call, so you never handle the token or the fresh-shell env problem. A body starting with `{` is sent as JSON; anything else as raw `text\u002Fplain`:\n\n```bash\nsh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" POST \u002Fapi\u002Fsearch '{\"code\":\"return await api.getDocs()\"}'\nsh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" POST \u002Fapi\u002Fdoc\u002FDOC_ID\u002Fexec 'return editor.getCurrentPageShapes().length'\nsh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" GET  \u002Fapi\u002Fdoc\u002FDOC_ID\u002Fscript-status\n```\n\nIf `tq` is missing (an older install), fall back to raw `curl` with the `PORT`\u002F`TOKEN` reads shown above. The raw-`curl` examples below stay in explicit form so each request is visible; translate any to `sh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" \u003CMETHOD> \u003Cpath> [body]`.\n\n```bash\ncurl -s http:\u002F\u002Flocalhost:7236\u002Freadme\n```\n\n## Core endpoints\n\n- `POST \u002Fapi\u002Fsearch`: run JavaScript with an `api` object. Use this to discover docs, read shapes and bindings, capture screenshots, and query the editor API reference.\n- `POST \u002Fapi\u002Fdocs\u002Fcreate`: create a new named `.tldraw` file, open it in a new window, and save it to disk. Use this when the task needs a fresh document rather than an already-open one.\n- `POST \u002Fapi\u002Fdoc\u002F:id\u002Fexec`: run JavaScript with a live tldraw `editor` scoped to one document. Use this for canvas edits.\n- `POST \u002Fapi\u002Fdoc\u002F:id\u002Fscript-workspace`: expose a locally owned document's live script paths for direct durable document-script and asset edits.\n- `GET \u002Fapi\u002Fdoc\u002F:id\u002Fscript-status`: inspect a locally owned document's watcher state for `script\u002F**` edits and find `errorLogPath`.\n\nThe code-taking POST endpoints accept raw JavaScript as the request body (`content-type: text\u002Fplain`) or a JSON body `{\"code\": \"...\"}`, and wrap the code in an async function so top-level `await` works. Prefer raw bodies for shell use.\n\n## Use this first\n\nMost tasks do not require searching `api.members`. Start with these calls and search the full Editor API only if a snippet fails or you truly need an unknown method. The object is `api`, not `spec`. Each block below is shown as raw `curl` so the request is visible; `sh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" \u003CMETHOD> \u003Cpath> [body]` is the shorter equivalent that handles the port and token for you.\n\n```bash\n# Fresh shell per call: re-read port + token first (or use the values already in your context).\nPORT=$(jq -r .port '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json'); TOKEN=$(jq -r .token '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json')\n\n# Pick the target doc by focused window or filename.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fsearch \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"return await api.getDocs({ name: \\\"NAME\\\" })\"}'\n\n# Read the current page's shapes with ids, bounds, text, and metadata.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fsearch \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"const doc = await api.getFocusedDoc(); const page = doc ? await api.getShapes(doc.id) : null; return { doc, shapes: page?.shapes.map(s => ({ id: s.id, type: s.type, x: s.x, y: s.y, props: s.props, meta: s.meta })) ?? [] }\"}'\n\n# Read bindings only for connection-dependent behavior.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fsearch \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"const doc = await api.getFocusedDoc(); return doc ? await api.getBindings(doc.id) : []\"}'\n```\n\nEvery listed doc has `ownership: 'local' | 'remote'`. A remote doc's opaque `id` works with `\u002Fexec`, `api.getShapes()`, `api.getBindings()`, and screenshots, but its `documentId`, `filePath`, and `unsavedChanges` are `null`: only the host owns those facts, and `host` carries the `host:port` sharing it. Remote edits sync into the host working copy. Do not call `helpers.saveDoc()`, open `\u002Fscript-workspace`, or claim the host archive was saved for a remote doc.\n\nA local doc also reports `sharedToLan`. True means the board is open to LAN right now and other people are editing it as you work: read before you write, and never clear a page you did not create.\n\n## Scripts on a shared board\n\nWriting or editing a document script for a board that is (or may become) shared changes what the script may do, because **every participant's editor runs the whole bundle** — `config.js` before it mounts, `main.js` after — and nothing elects a writer:\n\n- Registration and rendering (`config.js` utils, view-only reactions) must run on every client, identically. A client that doesn't register a script-defined shape type renders an inert placeholder instead.\n- Writes happen once per client unless guarded. Gate them on `ctx.app.board.isHost` — true in the editor that owns the file, false in one that joined — and keep continuous work (`tick` handlers, timers, simulations) behind the same guard. A never-shared board has one editor and it is the host, so the guard is correct offline too.\n- Create with stable ids via `helpers.createShapeIfMissing` \u002F `createShapesIfMissing`; never clear-and-redraw a page other people are on.\n- Keep per-client state (hover, selection, \"which card is flipped for me\") in module scope, not in shape props — writing it to the document broadcasts one person's UI to everyone.\n\nRead the `scripts-on-a-board-shared-over-lan` recipe from `api.recipes` before writing one.\n\n## Creating documents\n\nWhen the task needs a fresh document (not one of the open canvases), `POST \u002Fapi\u002Fdocs\u002Fcreate` with a JSON body `{\"name\": \"...\"}` creates `\u003Cname>.tldraw`, opens it in a new window, and saves it to disk immediately. The name takes a `.tldraw` extension or none — never legacy `.tldr`, which the app opens but does not create. Optional `\"directory\"` is an absolute path to an existing folder; the default is the user's Documents folder. It never overwrites — an existing file with that name is a `409`. The response returns the new doc's `id`, `documentId`, `filePath`, `name`, and `windowId` — use that `id` directly with `\u002Fapi\u002Fdoc\u002F:id\u002Fexec` and the `api.*` reads, no `api.getDocs()` re-discovery needed. Do not create the file yourself with filesystem tools.\n\n```bash\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fdocs\u002Fcreate \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"name\":\"Project Plan\"}'\n```\n\n## Reference recipes\n\n`api.recipes` (via `\u002Fapi\u002Fsearch`) is an object keyed by recipe `id`; read one in full with `api.recipes['\u003Cid>']`. Query it when a task matches one of the worked recipes:\n\n- `stack-existing-boxes` — Stack existing boxes\n- `add-durable-behavior-with-a-document-script` — Add durable behavior with a document script\n- `editable-furniture-with-anchored-internals` — Editable furniture with anchored internals\n- `scripts-on-a-board-shared-over-lan` — Scripts on a board shared over LAN\n- `clickable-card-or-button-ui` — Clickable card or button UI\n- `connection-dependent-behavior` — Connection-dependent behavior\n- `animation-simulation-loop` — Animation \u002F simulation loop\n- `custom-shape-config-js` — Custom shape (config.js)\n- `custom-binding-config-js` — Custom binding (config.js)\n- `custom-overlay-config-js` — Custom overlay (config.js)\n\nFetch `\u002Freadme` when an endpoint fails or you need API details not covered here.\n\n## Durable UI Behavior\n\nFor durable UI behavior on a locally owned document, open `\u002Fscript-workspace`, write `script\u002Fmain.js`, check `script-status`, then verify behavior once. `script-status` returns a derived `state` field — treat `state: \"applied\"` as success; `\"pending\"` means the watcher hasn't applied the current file yet — poll again and it resolves (a file saved while the app was restarting is applied automatically the next time you open `\u002Fscript-workspace` or read `script-status`, no manual re-save needed); `\"error\"` means the apply failed (read `lastApplyError` \u002F `errorLogPath`). Branch on `state` rather than comparing the raw digests yourself. The `\u002Fscript-workspace` response reports `isDefaultScript` (true while `script\u002Fmain.js` is still the untouched starter template, pre-created when absent) — when `isDefaultScript` is false there is a preexisting script to extend, not clobber. Read `mainJsPath` to see the current contents before editing (and read it once first if your file tools refuse to write a file they have not read). Remote boards have no local script workspace or watcher status; their host owns the script files. Do not spend the run searching for pointer\u002Fclick APIs — read the clickable-UI recipe from `api.recipes` first.\n\n## Shape format\n\n`api.getShapes()`, `\u002Fexec`, and document scripts all use raw tldraw SDK records. Create shapes with normal tldraw partials. Prefer importing primitives from `'tldraw'` when the host import map is active — in an `\u002Fexec` snippet use `await import('tldraw')` (a snippet can't use a static `import`); a document script can use a top-level `import { createShapeId } from 'tldraw'`. The `helpers` bag carries only editor-bound conveniences (not SDK primitives) — import primitives from `'tldraw'` directly. Read `api.imports` (from `\u002Fapi\u002Fsearch`) for the full list of importable symbols:\n\n```js\nconst { createShapeId, toRichText } = await import('tldraw')\neditor.createShape({\n\tid: createShapeId('box1'),\n\ttype: 'geo',\n\tx: 100,\n\ty: 100,\n\tprops: { geo: 'rectangle', w: 300, h: 200, richText: toRichText('Label') },\n})\nawait helpers.saveDoc()\n```\n\nThe `helpers.saveDoc()` call above is only for `ownership: 'local'`. Omit it for a remote doc; its edits sync to the host working copy and only the host saves the archive.\n\nUse `api.getShapes(doc.id)` to inspect existing raw shape records before mutating them.\n\n## Screenshots\n\n`api.getScreenshot(docId, opts?)` captures a JPEG to a temp file and returns `{ filePath, width, height, pageName, viewport, bounds, captureMode }` — a path, not image data, so open the file yourself to look at it. `opts.size` is `'small' | 'medium' | 'large' | 'full'` (default `'small'`). `opts.mode` is `'canvas'` (default — just the shapes, framed to their bounds) or `'window'` (the whole app window: canvas plus UI chrome); use `'window'` to see UI a script's `components` override draws outside the canvas. `opts.bounds` (`{ x, y, w, h }` in page coordinates) applies to `'canvas'` mode only. Prefer reading records with `api.getShapes()`; screenshot only when visual placement is uncertain or the user asks for visual proof.\n\n## Diagram connections\n\n- Create every meaningful connection with `helpers.createArrowBetweenShapes(fromId, toId, options)` so both endpoints have real bindings.\n- Never create a raw arrow shape for a meaningful connection. Raw unbound arrows are only appropriate for explicitly decorative marks.\n- Run `helpers.getLints()` before reporting a diagram complete and address every actionable result. Fetch `\u002Freadme` for the helper recipe and the opt-out for intentional decorative arrows.\n\n## Workflow\n\n1. Restate the intended outcome in concrete canvas terms.\n2. Choose durability:\n   - Static drawing edits such as moving, arranging, labeling, or styling shapes use `\u002Fexec`.\n   - Durable behavior on a locally owned document such as clickable UI, animations, reactive layouts, or \"run on open\" logic uses `\u002Fscript-workspace` and direct filesystem edits under `script\u002F**`. Read the worked recipes from `api.recipes` (via `\u002Fapi\u002Fsearch`) before building durable behavior. Remote boards have no local script workspace.\n3. Verify once with records from `api.getShapes()`, `api.getBindings()`, `api.getScriptStatus()`, or a screenshot when visual placement is uncertain. Save only a locally owned document with `helpers.saveDoc()`; remote edits sync to the host working copy.\n4. Stop after one successful verification unless the user explicitly asks for debugging.\n\nNever edit `.tldraw` archive files directly while they are open, and never edit `db.sqlite`, `db.sqlite-wal`, `db.sqlite-shm`, `metadata.json`, `.lock`, or `.script-workspace\u002F**`.\n\n## Recovering from a closed or unresponsive target document\n\nIf a request to your target `docId` comes back `\"Window closed before responding\"`, an error like `\"Document not found\"`, or times out with no response at all, that window is gone. Do not retry the same `docId`, and do not assume whatever `api.getDocs()` returns next is the same document — with more than one window open, the next call can silently resolve to a completely different, unrelated file.\n\n- Call `api.getDocs()` fresh and match the result against the doc `name` (and `documentId` if you captured it) you were actually working on.\n- **Name matches** → safe to resume against the new `id` for that doc.\n- **No match, or `getDocs()` now returns only a document you never opened** → STOP. \"The only open document\" is not \"the right document.\" Report that your target window closed and ask how to proceed instead of writing anywhere. If the task calls for a fresh document anyway, use `POST \u002Fapi\u002Fdocs\u002Fcreate` (above) rather than repurposing whatever `getDocs()` handed you.\n\nBefore any bulk or destructive edit (deleting all shapes on a page, clearing a doc to rebuild it), sanity-check what you are about to touch: read `api.getShapes(doc.id)` first and compare the shape count and content against what you expect on your own document. A nonzero shape count you did not create, or content unrelated to your task, means you are very likely on someone else's document — stop and report instead of deleting.\n\n## Durable script pattern: editable furniture, anchored internals\n\nUse this when a document script draws a board that users should rearrange or restyle while script-owned animation\u002Fgame pieces still follow it.\n\n- Create user-facing furniture with stable ids and `helpers.createShapeIfMissing` \u002F `helpers.createShapesIfMissing`; never delete and redraw it on rerun.\n- Pick one visible anchor per interactive system, such as a track or table felt.\n- Use `helpers.onShapeTranslate(anchorId, ({ dx, dy }) => ... , { signal })` to respond only to that anchor.\n- Move script-owned internals with `helpers.translateShapes(..., dx, dy)` (it runs without recording undo history); wrap other script-owned writes in `editor.run(fn, { history: 'ignore' })`.\n- Avoid broad `store.listen` \u002F `afterChange` layout handlers that react to every shape; they can treat the script's own writes as new user edits and recurse.\n\n## Editor customization: custom shapes, tools, and overlays (`config.js`)\n\nCustom shape types, tools, overlays, or UI components need a `script\u002Fconfig.js` next to `main.js` (create it through `\u002Fscript-workspace`, same as `main.js`) — a `main.js`-only script cannot register them. Its default export runs BEFORE the editor mounts, receives `{ config }` (the app's default `TldrawConfig`), and returns it after mutating or spreading it. The passed `config` carries `shapeUtils`, `bindingUtils`, `assetUtils`, `overlayUtils`, `tools` (arrays of constructors), `components` (a `TLComponents` map), and `options`; optional `getShapeVisibility(shape, editor)`, `assetUrls`, and `initialState`. Push your constructors onto the arrays — a util\u002Ftool whose static `type`\u002F`id` matches a stock one replaces it. Custom shapes subclass `ShapeUtil` and custom overlays subclass `OverlayUtil` (both from `'tldraw'`); define them in a sibling file and `import` them, since `config.js` and `main.js` are separate module graphs.\n\nRead the worked `custom-shape`, `custom-binding`, and `custom-overlay` recipes from `api.recipes` for the full `ShapeUtil` \u002F `BindingUtil` \u002F `OverlayUtil` skeletons before writing one. (Their lifecycle hooks — `onAfterChangeToShape`, `getGeometry`, `isActive`, … — are also indexed in `api.members`, tagged with an `owner`, so a name search finds them instead of only the SDK types.) Saving `config.js` (or a file it imports) rebuilds the store and editor — document, camera, and selection are preserved but undo history resets — whereas saving `main.js` never remounts. Keep run-on-mount logic in `main.js`; `config.js` only builds the config. Types live in `.script-workspace\u002Fscript-context.d.ts` (`ConfigScriptContext`, `TldrawConfig`).\n\n## Fast path for static edits\n\nShown as raw `curl`; `sh \"$HOME\u002Fskills\u002Ftldraw-offline\u002Ftq\" \u003CMETHOD> \u003Cpath> [body]` is the shorter equivalent that handles the port and token for you.\n\n```bash\n# Fresh shell per call: re-read port + token (or use the values already in your context).\nPORT=$(jq -r .port '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json'); TOKEN=$(jq -r .token '\u002FUsers\u002Fmikker\u002FLibrary\u002FApplication Support\u002Ftldraw\u002Fserver.json')\n\n# Discover docs.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fsearch \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"return await api.getDocs()\"}'\n\n# Read shapes for a doc.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fsearch \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"const [doc] = await api.getDocs(); return await api.getShapes(doc.id)\"}'\n\n# Mutate a LOCAL doc and save with \u002Fexec, then verify once with api.getShapes().\n# For a remote doc, omit helpers.saveDoc(); its host owns archive saving.\ncurl -s -X POST http:\u002F\u002Flocalhost:$PORT\u002Fapi\u002Fdoc\u002FDOC_ID\u002Fexec \\\n  -H 'content-type: application\u002Fjson' \\\n  -H \"authorization: Bearer $TOKEN\" \\\n  -d '{\"code\":\"const { createShapeId, toRichText } = await import(\\\"tldraw\\\"); const id = createShapeId(\\\"r1\\\"); editor.createShape({ id, type: \\\"geo\\\", x: 100, y: 100, props: { geo: \\\"rectangle\\\", w: 200, h: 100, richText: toRichText(\\\"Hello\\\") } }); await helpers.saveDoc(); return { created: [id] }\"}'\n```\n\n## Reporting\n\nKeep summaries tight. Include the doc id\u002Fname, changed shape ids or script path, and the one verification result. If something fails, quote the server error, digest mismatch, or the relevant `.script-workspace\u002Ferror.log` line.\n",{"name":5,"description":7},"master","8d883d350240b10cc23da854de1fb212e889caed","agents.symlink\u002Fskills\u002Ftldraw-offline",4,"https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles","https:\u002F\u002Fgithub.com\u002Fmikker","https:\u002F\u002Fmikkelmalmberg.com\u002Fama","Top Highlight – research at @githubnext","2026-11-10 22:09:39",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add mikker\u002Fdotfiles --skill tldraw-offline",{"tool":45,"command":46},"bunx","bunx skills add mikker\u002Fdotfiles --skill tldraw-offline",{"tool":48,"command":49},"pnpm","pnpm dlx skills add mikker\u002Fdotfiles --skill tldraw-offline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Ftldraw-offline\u002FSKILL.md",true,[53],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"REFERENCE.md","REFERENCE","参考文档",7636,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Faccessibility-plugin\u002Fskills\u002Fdesign-tokens\u002FREFERENCE.md",[60,70,97,120,137,150],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":25},"01M6WFXRC2WZQA9G5AT4D6PCAY","unslop","Cut AI tells from any writing.","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Funslop\u002FSKILL.md",[],[62,67,68,69],"writing","cut","true",{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":74,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":25},"01M6WFWGJTZWZTVED8A7DHZSCB","stageshow","Build faux product UI that looks like a real product, as a still illustration or an animated demo with a cursor. Browser and app windows, dashboards, phones, notifications, terminals, bento grids and cursor walkthroughs, framed, masked and cropped the way a marketing page, feature card or docs hero needs them. Use whenever someone wants a fake or mocked UI, a product demo or walkthrough animation, a hero or feature-card illustration of an app, a product shot in the style of a polished marketing site, or an animated cursor doing things in an interface, even if they never say \"faux UI\". React and plain CSS.","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fstageshow\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fstageshow\u002FSKILL.md",[],[72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],"css","react","windows","browser","dashboards","product","ui","notifications","Animation","walkthrough","marketing","never","feature","as","app","framed","card","interface","hero",{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":25},"01M6WFW0TZQ1H9C9X4HMZBTBYZ","clean-copy","Cut interface copy that shouldn't exist — captions that restate a label, hints that pre-empt a worry the user never had, warnings that are scar tissue from a fixed bug. Use when writing or reviewing any user-facing string (labels, hints, empty states, toasts, confirmations, button text), or when asked to clean up \u002F tighten copy.","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fclean-copy\u002FSKILL.md",[],[104,105,106,95,107,108,109,110,111,112,67,113,114,115,116,89,117,118,68,119],"copy","clean copy","clean","labels","states","when","restate","empty","STRING","Captions","text","user","use","up","bug","tighten",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":25},"01M6BSWBGGT11ZA2BQ0EJH2ZBN","elyx","Elyx is a design tool with local, AI-friendly `.elyx` files for screens, components, layouts, flows, and design systems. This skill is only available to agents running in external harnesses while using the Elyx CLI. It is unavailable and must not be used when running in the ACP harness inside the Elyx app. In external harnesses, use this skill before reading, reasoning about, or answering any question that touches Elyx or `.elyx` files — authoring, editing, validating, inspecting, reviewing, refactoring, comparing, or recommending changes, including read-only analysis where you produce no edit. Do not reason about `.elyx` from source text alone; imports, instances, overrides, and layout only resolve through the tools.","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fpi\u002Fskills\u002Felyx\u002FSKILL.md",[],[122,127,128,129,130,131,132,133,134,135,136],"acp","design","cli","components","reasoning","design systems","harness","produce","Tools","analysis",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":25},"01M6BSW8K6Z805WVG0670SHXY9","uikit-app-modernization","Modernizes UIKit apps for multi-window environments by replacing legacy shared-state APIs with context-appropriate modern alternatives. This includes references to mainScreen, interfaceOrientation, application and scene lifecycle, as well as safe area inset updates.","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fuikit-app-modernization\u002FSKILL.md",[],[144,145,146,147,148,149],"uikit app modernization","app modernization","modernization","safe","state","lifecycle",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":156,"publishedAt":25},"01M6BSW5SCT7GQ4QX7CBSB4WF1","swiftui-whats-new-27","New SwiftUI APIs, behaviors, and deprecations in the 2027 OS releases (iOS 27 and aligned macOS\u002FwatchOS\u002FtvOS\u002FvisionOS). Consult when asked what's new in SwiftUI 27, or when working with: - @State compile errors after an SDK update (\"used before being initialized\", \"invalid redeclaration of synthesized property\") or @State becaming a macro - @ViewBuilder\u002F@ContentBuilder ambiguous overloads or type-check regressions; drag-to-reorder in any container (List, stacks, grids, custom layouts) via reorderable()\u002FreorderContainer and its drag-and-drop - AsyncImage caching, reloading on scroll, or a custom URLSession - Swipe actions outside List (ScrollView, LazyVStack, LazyVGrid) via swipeActions()\u002FswipeActionsContainer() - Toolbar overflow, visibility (visibilityPriority, ToolbarOverflowMenu, toolbarMinimizeBehavior), and pinning - Presenting a confirmationDialog or alert from an optional item binding","https:\u002F\u002Fgithub.com\u002Fmikker\u002Fdotfiles\u002Fblob\u002Fmaster\u002Fagents.symlink\u002Fskills\u002Fxcode-skills\u002Fswiftui-whats-new-27\u002FSKILL.md",[],[157,158,159,148,160,161,162,163,164],"swiftui whats new 27","sdk","update","compile","actions","ios","macro","macos"]