/drawing-board:canvas-syncfrom drawing-board
Keeping a project's design canvas (a private claude.ai Design artifact), its committed snapshot and Storybook in step — who owns what, publishing to the canvas and refreshing the snapshot in the same change, refreshing only the boards you changed, resolving a snapshot conflict, and what to do when a board and its story disagree. Use whenever a change touches a page, component, story, stylesheet or token a canvas board draws, whenever the canvas changes, whenever the project's canvas check fails, and when a snapshot file conflicts on a merge.
Ships in drawing-board. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Read .claude/drawing-board.md first: it names this project's canvas, snapshot folder, commands
and pages. If the project has none, copy ${CLAUDE_PLUGIN_ROOT}/templates/drawing-board.md (in the
repository, plugin/templates/drawing-board.md of tinkerbench-studio/drawing-board), fill in what
you can find, and ask the owner for the rest before you publish anything.
The canvas is private, so CI cannot read it. The repository keeps a committed snapshot of it, and the checks compare that snapshot with what the build ships. A change on the canvas that is not snapshotted and committed is invisible to every check.
| What | Owner |
|---|---|
| How a screen looks, its structure and fixed wording | The canvas board |
| Design tokens (colour, type, spacing, radii, shadows) | The canvas; the snapshot holds a copy and the CSS is checked against it |
| Sample text a board and its story both show | The canvas (data-sample marks, lifted into the snapshot); the story reads them with canvasSample, never retypes them |
| What a component draws, its states and variants | The code and Storybook |
| What the app really has (a figure, a list, a count) | The app. A board ahead of the app is recorded, never faked in a fixture |
Anything already built and merged is the code's; a design not yet built is the canvas's. Ask the owner only when you cannot tell.
The canvas stays the source of truth after a design is built: its board is kept, refreshed and checked, not retired once the code exists. Delete a board only when its design is deprecated (the screen or state is gone from the product), never to make room.
A project may have several canvases (.claude/drawing-board.md, "Canvases"): main for the built
designs, prototypes for designs under way, reference for boards that are not app screens. Each
command takes --canvas <id> for one other than main.
Design work is any publish to the canvas: a new or changed board, a token, a sample mark, a fix to a board someone else broke. The same change refreshes the snapshot and commits it. A publish with no refresh after it is unfinished work, whatever the ticket.
drawing-board status --from <folder> (it writes nothing). It lists boards added, removed or moved, copies changed on the
canvas, the design systems installed, and the files the canvas holds.status --from gives the current count; check gives the count
the last refresh recorded. Fewer free than your change adds: stop, set the ticket to need a person,
say how many files are free and how many the change needs, and do not publish. Do not delete
boards to make room.project/canvas.json) only when a board is added, removed or moved.design-change).--tokens when the
tokens changed). A read of the canvas holds every board at its latest version, including boards
other open pull requests published but have not merged; a partial refresh leaves every other
board's files byte for byte as committed, so two pull requests never carry each other's design
changes. Use a full refresh only to catch up with the whole canvas or to resolve a conflict. If
the project has no partial refresh yet, say so in the pull request and expect conflicts. A
partial refresh names the boards on the canvas it did not add; leave them to a full refresh.artifact.json: the canvas, the version read, the last full
refresh's version, the files in use, the boards and the design systems installed. Commit it with
the rest; never edit it by hand.--boards and no file holds a version that moves on every refresh.The snapshot commands are the @tinkerbench-studio/drawing-board package, fetched from GitHub
Packages. Running it needs NODE_AUTH_TOKEN set to a token with read:packages and nothing else,
not a full-scope token such as gh auth token, since npx --yes runs the package with whatever
token the environment holds. .claude/drawing-board.md says how the project installs it and what
else it adds to the commands.
| Step | Command | Notes |
|---|---|---|
| Refresh the boards you changed | drawing-board snapshot --from <folder> --version <version> --boards A.dc.html,B.dc.html | --tokens when the tokens changed; --canvas <id> for a canvas other than main |
| Full refresh | drawing-board snapshot --from <folder> --version <version> | Only to catch up or resolve a conflict |
| Check | drawing-board check | Every snapshot's checks, the files in use, then warnings |
| Rebuild the story index | drawing-board index | After editing or merging a map file's story |
| Boards with no story, stories with no board | drawing-board report | |
| Find a board | drawing-board find <words…> | By name, page, flow, keywords, story and tags |
design-change), not invented in code.drawing-board compare (or the command .claude/drawing-board.md names), and put any difference
you leave in the pull request with which side is right and why.| Case | Do | Never |
|---|---|---|
| The story is wrong | Change the story or the component | Edit the board to hide it |
| The board is wrong | Edit the board, or ask the owner to | Change the app to match a stale board |
| The board is ahead of the app | Keep it, map it as not built with the reason, list it in an issue | Invent the figure in a fixture |
| They differ only in sample data | Mark the value on the board (data-sample) and read it in the story | Retype it in both |
| You cannot tell | Ask the owner with both versions | Pick one |
git merge, not rebase).git checkout --ours or --theirs); the
refresh overwrites them. Never merge hashes, versions or board copies by hand.canvas.json, the tokens and an installed design
system's files count. check warns when few are free; a warning does not fail it, but read it.check warnings are not problems. Lines starting warning: never fail the check: missing
boards a full refresh adds, a design system at another version, few free files, a none board
that looks built, tags of the wrong shape. Act on them in
the change that caused them.data-sample goes on a leaf element, written out, never on a {{hole}}.ticket.pr, ticket.pr2): a key marks one value, and
the snapshot refuses a key used twice. Check a board you published before asking for approval.data-sample and data-component are design-only attributes: the markup comparison leaves
them out, so they never reach the shipped markup./_blob/…) do not load offline, so a board rendered in CI
falls back to system fonts.ux-picture) and goes to the project's design reviewer.What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/design-auditThe audit that compares a project's design canvas with its Storybook pages and raises one issue per page, with evidence, for the real differences nobody has raised yet. Checks the snapshot is current, runs the drawing-board checks, shoots an annotated picture of each page, checks for an existing open issue before and again just before raising one, and changes no code. Use whenever asked to audit, compare or check the design against Storybook, and in a scheduled audit session./design-changeHow a design change is made in a project with a design canvas — any request to design, redesign, add to, move or reword something a person sees (a screen, panel, component, its layout or copy), whether it comes as a ticket, a canvas comment or a chat message. The design is worked out on a prototype page named after the ticket, moved onto the real board on the owner's go-ahead, and only then built in code and Storybook. Use whenever a design change is asked for, before touching components, stories, stylesheets or any canvas board for something new, and whenever a UX ticket asks for something new rather than reporting a bug./flow-pagesHow a project's design canvas is split into pages, one per user flow, so a board is found by the journey it belongs to and each page stays small enough to review. Use when adding a board (which page it joins), when a page has grown past about twenty boards or mixes journeys, when boards have no page, and when planning or reviewing a reorganisation of the canvas./ux-pictureThe picture a UX bug or a pull request with a UX effect carries — the design canvas board and the Storybook story side by side under source banners, the differences boxed, numbered and colour-coded with a table, and the before for a fix — how to make it from the committed snapshot and how to put it on the ticket or pull request. Use whenever raising a UX bug, opening or updating a pull request that changes what a person sees, or reporting a difference between a board and its story.Other plugins' skills for the same job
drawing-board@tinkerbench-studio is listed by tinkerbench-studio/marketplace — review the source before installing
npx claudepluginhub tinkerbench-studio/marketplace --plugin drawing-board