sketch
Write one Sketch as an HTML file and publish it on the public viewer.
Done when a tool url is shown.
CLI
The shared CLI reference defines $BOARD_CLI.
- Load cli before the first
$BOARD_CLIcall of a session.
Template
Write from the template.
- Load template.md and write from it.
Render Environment
The viewer mounts the fragment in its own document. Write for this environment.
- The fragment renders in a sandboxed
iframe. Board and the fragment cannot reach each other's CSS or scripts. Scripts run when the sketch mounts. :root,html, andbodyselectors act on that document (zero margin, transparent). Abodybackground paints the diagram only; anhtmlbackground is ignored.- The frame takes no pointer input by default, so
:hoverand drag do nothing. A sketch may use click handlers. The canvas pans and zooms over it. - No network. Put every style, shape, glyph, and script in the fragment.
Performance
The frame is resized by its content and exported as one still image. Write for that.
- Draw a still diagram. Add animation only when the user asks for it.
- Animate only
transformandopacity. A change in size resizes the frame on every step. - Avoid
filter,backdrop-filter, and large blurred shadows. They are slow to paint. - Run no endless loop. Keep script work short: the viewer gives up when the sketch does not report a size in time.
- Keep the element count low.
Mode
Pick short link or cloud. Short link is the default.
- Use cloud mode only when one of these holds: the user asks to save, keep, or update a cloud diagram, or to search cloud diagrams; the user pastes a
#b:link; this session already created the diagram in cloud mode. Load cloud flow. - Otherwise use short-link mode.
- If
loginfails or times out, use short-link mode and tell the user why. - If the user pastes a viewer URL, load pointers.
Short link flow
Publish unsigned.
- Write the fragment to
.cache/sketch/<name>.html.<name>is a short English name for the diagram. - Run
$BOARD_CLI encode-source --file <file> --out .cache/sketch --title <title>. Always write a short title that names the diagram. - Run
$BOARD_CLI preview-diagram --file <skt>, where<skt>is thefilethatencode-sourcereturned. - Show only the
urlfield and stop. - To change, edit the HTML file and publish again. That creates a new short url.
- To keep, use cloud mode (
#b:).
Boundaries
- CLI contract:
$BOARD_CLI --help.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |