/whiteboard:drawing-visualsfrom whiteboard
Draws diagrams on a shared JSON Canvas whiteboard for screen layout, structure, flow, or comparison. Covers node/edge editing, SVG rendering, and version save/restore.
Ships in whiteboard. 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.
Read when SKILL.md points to them.
Like a whiteboard on the wall of a meeting room, this is a tool for AI and humans to align by drawing on the same workspace. Use it when drawing and pointing is faster than iterating in prose. What you draw stays on the document and can be revisited and refined later.
Coverage note. The whiteboard MCP surface is deliberately small: edit nodes and edges, tidy the layout, render SVG, save/restore versions. There is no icon or template library, no align/distribute, and no viewport control. Plan the diagram with that ceiling in mind rather than assuming a full-featured drawing-app tool set.
Use these tools:
wb_workspace_edit — create, replace and delete documents in one call (document.create / document.set / document.delete ops)wb_document_list — find documents (each row carries the id and the path, so an id needs no second call to place)wb_canvas_edit — the whole spatial-editing surface. One call takes a list of ops (add, patch, remove, lock, tidy) and applies them as a single transaction. Pass mode: "apply": the default proposes content changes for a person to adopt, because nobody watches an agent type — but somebody just asked you to draw this, and they are looking at itwb_canvas_snapshot — read a canvas: node types, text, geometry and lock state, plus every edge. Pass layout: true to also get the laid-out analysis (overlaps, clusters, free regions) for judging whether the board is tidywb_scene_render — render the laid-out scene as SVG (the only export format)wb_version_save / wb_version_list / wb_version_restore — checkpoint and roll backOpen references/reading-map.md first and read only the note you need.
references/reading-map.md: the routing note that tells you which guidance to open for which kind of diagramstyle-reference.md: the deep reference for coordinates, color, and layout recipes; open only when neededvisual-vocabulary.md: the deep reference for labeling, diagram choice, and anti-patterns; open only when neededDo not read style-reference.md and visual-vocabulary.md end-to-end every time.
Choose the diagram type through the reading map, then open only 1-2 relevant notes.
If you need the collaborative workflow for tightening the visual together while talking with the user, also open ../coauthoring-visuals/SKILL.md.
This drawing-visuals skill covers canvas operations, diagram vocabulary, and drawing mechanics.
coauthoring-visuals covers context gathering, iterative refinement, and fresh-viewer testing.
Do not wait for the user to ask explicitly. The moment it feels like "drawing would be faster than prose," propose it and use it.
When in doubt, draw.
The cost of drawing is low; the cost of proceeding under false alignment is high.
If the diagram turns out unnecessary, delete it with a wb_workspace_edit document.delete op.
/drawing-visuals - render the current document and consider the next adjustment/drawing-visuals <documentId> - work in the specified documentRepeat draw -> render -> fix until the document converges.
Describe the purpose of the diagram in 1-2 lines. Examples:
If the intent is fuzzy, open visual-vocabulary.md, look at "Choose the diagram from the question", and narrow it down to one question this diagram answers.
Do not try to answer multiple questions in one document at once — there is no section-level export, so a document either reads as one story or it reads as clutter.
Once the intent is fixed, choose the node shape that fits:
| Content | Node type |
|---|---|
| a labeled box, the default building block | text (has a plain text string; no rich formatting; wraps at the width; omit the height and the box is sized to its text) |
| a reference to another document, image, or file | file |
| a link out to a URL | link |
| a lightweight visual boundary (label + background) | group |
wb_workspace_edit({ workspaceId, ops: [{ op: "document.create", path: "diagrams/checkout-flow", kind: "spatial", name: "Checkout flow" }] })
kind: "spatial" is required and cannot change later — a document is either a JSON Canvas (spatial) or OKF Markdown, decided at creation.
Draw the whole diagram in one wb_canvas_edit call. The ops apply in order as a single
transaction: either all of them land or none does, and a refusal names the op that failed by index.
Do not issue one call per node.
wb_canvas_edit({
workspaceId, documentId,
// Somebody asked for this drawing and is waiting to see it, so it applies.
// Without a mode a batch of content is stored as a PROPOSAL instead, which
// is the right default when nobody asked (ADR-0029 decision 3).
mode: "apply",
ops: [
{ op: "node.add", node: { id: "client", type: "text", text: "Client", color: "#1971c2" } },
{ op: "node.add", node: { id: "server", type: "text", text: "Server" } },
{ op: "edge.add", edge: { id: "req", fromNode: "client", toNode: "server", label: "request", toEnd: "arrow" } },
],
})
Geometry is optional. A node with no x/y/width/height is placed for you in a grid below
whatever is already on the board, and the position chosen comes back under geometry. Supply
coordinates only when the layout itself carries meaning — a comparison matrix, a deliberate
left-to-right flow. For everything else, let placement happen and finish with a tidy op.
color is either a hex string like #1971c2 or a JSON Canvas preset "1"-"6"; there is no
semantic color name like "primary". Text wraps at the box's width but the box never grows on its
own: omit height and a text box is made tall enough for its text, while a height you name that is
too short for the text is refused with the height it needs — so name a height only when you know it
holds the text, or leave it out.
Edges reference node ids, not coordinates — an edge.add fails if either endpoint is not on the
canvas by the time that op runs. A node added EARLIER IN THE SAME CALL counts, which is why ids are
worth naming yourself. fromEnd/toEnd (none/arrow) set the arrowheads. fromSide/toSide
(top/right/bottom/left) exist but are best left out: the router picks the side that keeps
the line clear of the other boxes, and a side you name is kept even when it runs the line through
one — a bottom/top pair on an edge between two boxes on the SAME row loops under both and
tunnels back through its own source. wb_scene_render computes the actual drawn path.
Ids you omit are minted for you and reported under touched. Name them yourself for any node an
edge has to reach.
Adds never overwrite. An add whose id is already on the canvas fails the whole batch — use a
node.patch / edge.patch op to change something already placed.
If you set coordinates, use a rigid grid. Do not hand-calculate case by case: pick
column * 220 + 40 for x and row * 140 + 40 for y (or similar), assign a row/column to every node,
then fill in the numbers. See style-reference.md for sizing and color
guidance.
Tidy is an op, so it usually belongs at the END of the same call that drew the diagram rather than in a call of its own:
wb_canvas_edit({ workspaceId, documentId, mode: "apply", ops: [ /* ...adds... */, { op: "tidy" } ] })
// Re-tidy only a subset, leaving everything else as a fixed obstacle:
wb_canvas_edit({ workspaceId, documentId, mode: "apply", ops: [{ op: "tidy", scope: ["client", "server"] }] })
wb_scene_render({ workspaceId, documentId })
// Draw what the document references: a `file` node's target inside the node (a
// markdown document as its body, a canvas as a miniature), and any `![[path]]`
// embed inside a markdown body — including the `#Heading` / `#Group label` part
// it names. Off, an embed renders as its address.
wb_scene_render({ workspaceId, documentId, embedReferences: true })
// One part only: a group by its label on a canvas, or a heading's section of a
// markdown document — the same names `[[path#...]]` addresses.
wb_scene_render({ workspaceId, documentId, fragment: "Launch" })
// The look. Default is the bundled one whatever the document says, so a read
// never pays for a theme's jitter or glow unasked; "document" draws the theme
// the canvas names (`visual.theme/v0`, set with wb_facet_set's canvas target);
// a theme id such as "visual.sketch" previews one without storing it.
wb_scene_render({ workspaceId, documentId, style: "document" })
The tidy op re-lays-out node positions automatically; it has no direction, pins, or groups
parameters — it is a one-shot auto-arrange, not a configurable layout engine. It tidies inside a
group as well: members separate and line up within it, and the group grows (never shrinks) to hold
them with a 32px margin — within: "<group id>" scopes it to one group's members. It also orders a
row by its edges: a box whose connections along its row all lie to one side of it is swapped with the
nearest of them, so a box that fans out sits between the boxes it fans out to. It refuses a
markdown document (there is nothing spatial to tidy) and treats a locked node as fixed. Whatever it
moved comes back under geometry, a grown group with its new size.
wb_scene_render returns { svg, width, height } — SVG is the only rendered export format. It
renders a markdown document too, as a page. fragment is the only way to render less than the
whole document, and it addresses a group by label or a heading by text, never a region.
Open the returned SVG (or write it to a file and view it) to inspect it visually:
If you cannot see the rendered image, read the board instead. The two reads answer different questions and neither replaces the other:
wb_canvas_snapshot({ workspaceId, documentId }) answers what is on the board: each node's
type, text, geometry and lock state, plus every edge. Long text and very large boards are cut, and
the real totals come back alongside so a capped read never looks complete.
Add layout: true to also get whether the board is tidy — overlaps, containment, clusters and
free regions, from the laid-out scene. It costs a layout pass, so ask for it when you are judging
composition rather than reading content.
You rarely need either right after an edit: wb_canvas_edit already returns the resulting board
under snapshot.
Every one of these is an op inside a wb_canvas_edit call, and several can travel together:
| Situation | Op |
|---|---|
| change a node's position, size, color, or label | { op: "node.patch", id, patch: { ... } } |
| change an edge's endpoints, sides, arrowheads, color, or label | { op: "edge.patch", id, patch: { ... } } |
| remove a node | { op: "node.remove", id } — its edges go with it |
| remove an edge | { op: "edge.remove", id } |
| protect a node/edge from further edits (by anyone) | { op: "node.lock", id, locked: true } / { op: "edge.lock", ... } |
| re-run automatic layout | { op: "tidy" } (optionally scoped) |
| make a group's contents match a list exactly | { op: "region.set", within: groupId, nodes, edges } |
| put boxes that already exist in a NEW group | { op: "node.add", node: { type: "group", label } } with no position, then region.set naming them — the group is placed around them where they sit, gutter included. The same holds for members added with within after it: a group added with no position is placed around what goes in it, wherever you put them. within on a node.add places that node inside a group that already exists (or was added earlier in the batch); within: null means no group |
| structure or intent is wrong | create a fresh document with a document.create op and redraw |
region.set is the one op that deletes what you did NOT mention. It
reconciles a group's contents to the list you give it, so anything strictly
inside that group and absent from your list is removed. Four rules make it safe
to reach for:
A node you list that already exists is merged rather than replaced, so omitting
geometry leaves it where it is. Use it when you own the whole group; use plain
node.patch / node.remove ops when you do not.
A lock binds you too. A patch or remove on a locked element fails the batch. Unlocking is the
one op a locked element still accepts, so you can lift your own lock in the same call:
[{ op: "node.lock", id: "x", locked: false }, { op: "node.patch", id: "x", patch: { x: 40 } }].
Pruning is cheap now, so plan placement normally rather than defensively — but prefer redrawing on a fresh document when the STRUCTURE is wrong, not just a few elements.
After each fix, go back to Step 4 and render again. Redrawing on a fresh document is normal whiteboard behavior when the structure is wrong, not failure.
visual-vocabulary.md?wb_canvas_edit call rather than one call per node?tidy op?wb_scene_render (or read the board with wb_canvas_snapshot) and inspect it?wb_canvas_edit call is atomic — a rejected batch
leaves nothing behind — but a batch that SUCCEEDS is not undoable, so save a
wb_version_save({ workspaceId, documentIds, label }) before a risky one and call
wb_version_restore({ workspaceId, documentId, versionId: saved[0].version.id }) to roll back if
it goes wrong. documentIds is plural and the label is shared, so a change spanning several
documents gets ONE checkpoint across all of them in one call. The version lands in the same history the person's History panel shows, so they can see
the checkpoint and restore it themselves. To try an alternative without touching the original,
restore the checkpoint into a new document with targetPath instead of in place.~/.whiteboard/, outside git. If you
need the SVG in a PR or other artifact, save the string wb_scene_render returns to a file.kind: "spatial" gives you nodes and edges;
kind: "markdown" gives you an OKF Markdown body — a document.set op replaces the whole
document, wb_body_edit replaces individual passages of its body — and has no nodes or edges of
its own. (A text NODE on a spatial canvas is edited with wb_canvas_edit's node.patch
— text replaces the whole body — or node.splice for a line range; neither can reach a
markdown document's body, which lives in a text container the canvas read does not see.)
There is no format parameter on read — wb_document_get
answers in whichever format the document already is.references/cloud-and-network-zones.md (opens in a new tab)references/comparison-splits.md (opens in a new tab)references/dark-mode-techniques.md (opens in a new tab)references/decomposition-and-trees.md (opens in a new tab)references/flow-and-architecture.md (opens in a new tab)references/infrastructure-diagrams.md (opens in a new tab)references/layered-architectures.md (opens in a new tab)references/pipelines-and-roadmaps.md (opens in a new tab)references/reading-map.md (opens in a new tab)references/review-and-comparison.md (opens in a new tab)references/sequence-and-decisions.md (opens in a new tab)references/trust-boundary-and-security.md (opens in a new tab)references/workflows-and-swimlanes.md (opens in a new tab)style-reference.md (opens in a new tab)visual-vocabulary.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kamiazya/whiteboard --plugin whiteboard3 skills in this plugin
/auditing-workspacesAudit a whiteboard workspace's documents to find likely-stale or duplicate spatial canvases before creating new ones. Use when a workspace has been in heavy use and you want to check for clutter, or you want a quick sense of what a document actually contains before opening it./coauthoring-visualsEvolve a whiteboard diagram collaboratively through structured context gathering, iterative refinement, and fresh-viewer testing. Use when a diagram feels misunderstood, under-explained, or needs tightening together with the user.Other plugins' skills for the same job