/whiteboard:whiteboardfrom whiteboard
Creates a live-reloading HTML whiteboard for sketching diagrams, architectures, flows, and schemas. Users watch edits in real-time as you save the file.
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; scripts run unread.
A board is one plain HTML file. A tiny zero-dependency Node server serves the boards and injects a live-reload client, so every time you save a board, the user's open tab reloads at the same scroll position. You draw by editing the file.
The script is scripts/whiteboard beside this SKILL.md. Resolve CLAUDE_SKILL_DIR to this
skill's directory (including inside a plugin cache), then use the bundled script when whiteboard
is not on PATH:
WB=$(command -v whiteboard || echo "${CLAUDE_SKILL_DIR}/scripts/whiteboard")
"$WB" start
Use "$WB" in place of whiteboard in the commands below. Node.js 20 or newer is required.
Installing the plugin or using the skills CLI needs no dotfiles installation; both include the
server and its assets. snip-upload is optional and only needed for publishing.
| Command | Does |
|---|---|
whiteboard start | Starts the shared background server, or prints the URL of the one already running. Always exits 0 while a server is up; run it once per session and move on. |
whiteboard new <project>/<topic> | Creates ~/.whiteboard/<project>/<topic>.html from the template and prints its path and URL. |
whiteboard url [<name>] | Prints the URL of a board, or of the index page. |
whiteboard errors [--clear] | Prints the JS and Mermaid errors reported by browsers that have a board open. |
whiteboard publish <name> | Bundles the board into one self-contained HTML file and uploads it with snip-upload. Prints the public URL. |
whiteboard status / stop | Show the server and its connected viewers, or stop it. |
Defaults: boards live in $WHITEBOARD_DIR (~/.whiteboard), port $WHITEBOARD_PORT (4477). The server
binds to $WHITEBOARD_HOST. When that is unset it uses the machine's Tailscale address (100.64.0.0/10), then
127.0.0.1. Pass --host 0.0.0.0 (or all) to listen on every adapter, including LAN and localhost,
and start then prints a URL for each one. The user bookmarks one index URL, and it lists every board,
newest first. To move a running server to another host or port, run whiteboard stop first; start
refuses to start a second server on the same directory.
One shared server. Every session and worktree uses the same server and the same ~/.whiteboard
directory, and keeps its boards apart with the <project>/ folder. Don't pass --dir, --host, or --port
unless the user asks: start reuses whatever server is running, and concurrent starts are safe (one wins,
and they all print its URL). Boards are plain files, so deleting a worktree leaves nothing running to clean
up. If the default port is taken by something else, the server uses the next free one, so give the user the
URL start prints rather than assuming 4477.
systemd service (optional, dotfiles installer). On Linux, install.sh --agents installs and enables the user unit
whiteboard.service, which runs whiteboard serve --wait-tailscale 60 at login (or boot with lingering)
and restarts it after a crash. With the unit installed, a default whiteboard start / stop goes through
systemctl --user, so the server is not tied to the agent or shell that started it. Logs are in
journalctl --user -u whiteboard.service. The address is chosen when the server starts, so after the
machine's Tailscale address changes, run systemctl --user restart whiteboard.service.
whiteboard status lists the connected viewers (page and remote address). Use it to confirm the user
actually has the board open, for example that a Tailscale address shows up.
Sandboxed shells: a server started in a network-isolated sandbox cannot be reached from outside it,
and it cannot see the Tailscale interface. Run whiteboard start outside the sandbox, or check that the
printed URL uses the host the user connects to. Editing board files needs no special access.
whiteboard start, then whiteboard new <project>/<topic>. Use the repo or task name as <project>
and a kebab-case topic.PASEO_AGENT_ID is set and the Paseo browser tools are available), also open the
board with browser_new_tab right after whiteboard new. Call browser_list_tabs first and reuse
an existing tab for the same URL instead of opening a duplicate. The tab opens in the background, and
agents cannot place it in a split pane, so tell the user to use Paseo's "Split pane right" to view it
beside the conversation. Opening the tab makes the board a viewer, so whiteboard errors works.whiteboard errors if a browser has the board open.
Fix anything it reports, then run whiteboard errors --clear.whiteboard publish <project>/<topic> shares a board with someone who can't reach the live server.
Preflight first. Before publishing, run snip-upload auth status. Exit 0 means a bucket is
configured. Any other exit (3 = not configured), or snip-upload missing from PATH, means stop and tell
the user to run snip-upload auth in their own terminal. It's an interactive setup that walks them through
creating a Tigris bucket and access key, so don't try to run it for them. If snip-upload isn't installed,
it comes from ./install.sh --bins in colin-dotfiles. publish runs the same check itself and fails
with that message.
snip-upload stores one file per URL, so publish builds a single self-contained file:
@import and url()), scripts, images, SVGs, and fonts are inlined, with
binaries as data URIs. The live-reload client is left out.snip-upload's random suffix, so the URL can't be guessed. The bucket deletes files
after 90 days. Keep the suffix: the random suffix is the only thing keeping a published board private, because
the bucket can't be listed and there's no index. Use --no-random only when the user asks for a predictable
URL. --out FILE writes the bundle without uploading.WARNING not bundled line: missing files and links to
other local boards won't work in the published copy. Publish those boards separately, or remove the links.fetch('data.json')). Put that data inline in the
board if it will be published.Uploading needs network access and the snip-upload credentials, so run publish outside the sandbox.
Publishing makes the board public, so only publish when the user asks, and give them the URL as a link.
Start from the template. It links /_wb/board.css (the whiteboard look: dotted background, light and dark
themes, a mobile layout) and /_wb/board.js (loads Mermaid and highlight.js only when the page uses them).
Board-specific CSS goes in the template's <style> block. You can use any HTML, inline SVG, or script.
Relative links to other files under ~/.whiteboard work, and saving those files reloads the board too.
Available building blocks:
| Class | Markup | Use for |
|---|---|---|
wb-page | <main class="wb-page"> (add wide for full width) | Page container. |
subtitle | <p class="subtitle"> under the h1 | One-line summary of the board. |
card | <div class="card"><h3>…</h3>…</div>, card focus to highlight | Components, modules, options. |
grid / cols / row | wrapping card grid / 2–3 columns / inline flex row | Layout. |
flow | <div class="flow"> with cards inside | A left-to-right chain with arrows (stacks vertically on phones). |
sticky | <div class="sticky">, plus pink, blue, green, or orange | Open questions, notes, asides. |
callout | <div class="callout">, plus warn, danger, or ok | Risks, decisions, gotchas. |
tag | <span class="tag">, plus add, del, or muted | new / removed / unchanged labels. |
steps | <ol class="steps"> | Ordered plans and timelines. |
diff | <pre class="diff"> with `<span class="add | del |
mermaid | <pre class="mermaid">sequenceDiagram …</pre> | Sequence, flowchart, ER, state, and class diagrams. |
| code | <pre><code class="language-ts"> | Highlighted snippets. |
What makes a good board:
erDiagram for schemas,
flowchart or stateDiagram-v2 for branching logic and lifecycles, and flow cards for simple
pipelines. Keep each diagram under about 12 nodes; split it rather than cram it.tag add/tag del and card focus on the parts the discussion is about.< and & as < and & inside <pre> and <code>, Mermaid source included.
> is safe, so arrows like --> and ->> can be written as they are.board.js picks Mermaid's dark or default theme from the
viewer's color scheme, and the theme sets the node text color. A solid light fill in a classDef or
style line puts light dark-theme text on a light box, which is unreadable. Use a translucent fill
(8-digit hex such as fill:#3aa55d33) with a solid stroke, so the box tints whatever background the
theme draws and the theme's text color stays readable. If a solid fill is required, also set color:
explicitly on the same class.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub colinmollenhour/dotfiles --plugin whiteboard