Prep major release

From brianwestphal/glassbox · View interactive version

Prep major release is an AI agent skill from the GitHub repository brianwestphal/glassbox. Prepare the repo for a major release — review/update README.md so it stays compelling, and review the demo scenarios + screenshot scenes, proposing and applying any new/different/fewer screenshots (the maintainer captures them after).

How to use this skill

Skill file

Prepare Glassbox for a major release. A lot has usually changed since the last

release, so the public-facing story drifts: the README stops advertising the

best features, and the demo screenshots stop matching the UI. This skill

brings both back in line.

Two deliverables, in order:

  1. README.md — reviewed and updated so it stays compelling and advertises the

most important and interesting features.

  1. Demo scenarios + screenshot scenes — reviewed, with any *new / different /

fewer* screenshots proposed and the code changes applied, then handed off

to the maintainer to capture. Do not capture screenshots yourself —

capturing needs Chromium outside the command sandbox and the maintainer does

it (they said so). Your job is to get the scenes ready to capture and tell

them exactly what to run.

Step 0 — Orient (what's new since last time)

Before touching the README, build an accurate picture of the current feature set

so you advertise what actually ships today, not what shipped a year ago:

fastest synthesis of every feature and its status (Shipped / Partial / …).

docs/ that the README predates.

$(git describe --tags --abbrev=0 2>/dev/null)..HEAD`) to see what landed.

README claims that are stale (removed/renamed/changed). Consider spawning an

Agent (Explore) to diff "features in the docs/code" against "features in the

README" if the gap is large.

Step 1 — Review & update README.md

README.md is the front door (also rendered on npm and GitHub). Read it in full,

then revise for:

the value obvious in seconds: local, browser-based review of AI-generated code

with structured feedback an AI tool can act on. Keep the "you, the diff, and a

tight feedback loop" energy — punchy, not corporate.

ones highest. As of this writing the standouts worth leading with or featuring:

AI risk / narrative / guided review intelligence; AI-authored review notes

(.pr-notes/); image & SVG comparison (difference/slice/side-by-side, the A/B

single-side focus, doc 28); ground-truth image comparison with perceptual diff;

direct path comparison (--diff) and git difftool integration; attachments;

themes; the Claude Code MCP channel; desktop app. Re-check this list against

Step 0 — features get added; promote new ones, demote anything retired.

match reality (src/cli.ts for flags/usage, the requirements docs for

behavior). Fix anything stale. Don't invent features.

src="assets/…">` must point at a file that exists and shows what the

surrounding prose claims. Build the authoritative list of referenced images:

grep -oE 'assets/[A-Za-z0-9_.-]+\.(png|svg)' README.md | sort -u. Cross-check

against assets/ and against the scene list in Step 2. Note (don't fix yet)

any screenshot that should be re-shot because the UI moved — that feeds Step 2.

current, internal links (docs/…, anchors) and the releases/npm links work.

Apply the edits directly to README.md. Keep American-English spelling and the

project's no-emoji rule (see CLAUDE.md) — applies to README prose too.

Step 2 — Review the demo scenarios & screenshot scenes

The README's stills are generated from real app states. The pipeline:

per-scenario setup) backed by canned data in src/demo/fixtures.ts. Doc 12

(docs/12-demo-mode.md) is the spec.

array; each entry boots --demo:N (or --ground-truth …), drives the UI into

the showcased state, and writes assets/demo-<slug>.png (+ a standalone

.svg unless pngOnly). Run with npm run demo:capture-stills

(--only <slug1,slug2> to iterate on one). These are the README stills.

scripts/demo/capture-demo.ts (npm run demo:capture). Out of scope unless the

hero is clearly stale or the domotion-svg version changed (see Step 2b — a

domotion bump means the hero must be re-captured too); if so, note it for the

maintainer rather than rebuilding it here.

Review the set and decide what should change. Build the three-way map —

README <img> ↔ capture-stills.ts scene slug ↔ --demo:N scenario — and

look for:

release with no still (e.g. a new comparison mode, a new AI surface). If it

deserves a screenshot, add a SCENARIOS entry (and, if it needs a UI state the

demo data doesn't yet produce, extend DEMO_SCENARIOS in src/demo.ts +

src/demo/fixtures.ts so a real --demo:N reaches that state). Then reference

the new assets/demo-<slug>.png from the README.

misrepresents it. Fix the scene's setup() so it captures the current,

best-looking state. Keep captures deterministic and machine-independent

(the script already isolates GLASSBOX_CONFIG_DIR and uses --ai-service-test

— preserve that).

a feature no longer worth a dedicated image. Drop the weaker one from the README

and remove its SCENARIOS entry so the set stays tight.

Apply the code changes (README.md, scripts/demo/capture-stills.ts,

src/demo.ts, src/demo/fixtures.ts) and keep docs in sync — if you add/retire a

--demo:N scenario, update docs/12-demo-mode.md and the AI summaries

(docs/ai/*) per CLAUDE.md. Do not run the capture — the maintainer does

that.

Step 2b — Upgrade `domotion-svg` if out of date (before any capture)

The demos — both the README stills and the animated hero — are generated by

CODE0, pinned to an **exact

version** in devDependencies. A domotion release can fix rendering,

frame-synchronization, or browser-compat bugs, so a major release should ship its

demos built on the latest domotion. Do this before the capture handoff so

the re-capture in Step 3 runs on the new version.

  1. Check for a newer version. Compare the latest published version against the

pin:

npm view domotion-svg version (latest) vs the domotion-svg entry in

package.json → devDependencies (may need to run outside the command sandbox

if the registry isn't reachable). If they match, skip this step.

  1. Bump the pin + install. Edit package.json to the new exact version (keep

it exact — no ^; the exact pin is deliberate, so a domotion default-mode

change can't silently alter the output), then npm install to refresh

package-lock.json. Confirm with grep '"version"' node_modules/domotion-svg/package.json.

  1. Update every place that names the pinned version. Find them all with

grep -rn '<old-version>' scripts/demo docs — currently that's the header

comment in scripts/demo/capture-demo.ts, the requirements note in

scripts/demo/README.md, and the pin note in docs/ai/code-summary.md.

  1. Verify the API the scripts use didn't shift. A minor bump can change the

generation path. Run npm run typecheck:scripts (the capture scripts must

still compile against the new types); the animated-hero capture also asserts an

@font-face is embedded and fails loudly otherwise, so a clean capture in

Step 3 is the final proof. If typecheck:scripts fails, adapt the capture

scripts to the new API before handing off.

  1. A domotion bump forces a full re-capture. Because every demo frame is

re-rendered by domotion, both the stills and the animated hero must be

re-captured on the new version even if no UI changed — call this out explicitly

in the Step 3 handoff (npm run demo:capture-stills and npm run demo:capture).

Apply the package.json / doc changes here (they're code, not a capture); the

maintainer still runs the actual re-capture in Step 3.

Step 3 — Hand off the capture checklist

Because the maintainer captures the screenshots, end with a clear, runnable

handoff:

(old → new version, from Step 2b), and per scene: added / re-shoot / removed,

with the one-line reason.

npm run demo:capture-stills -- --only <slug1,slug2> for the changed scenes, or

npm run demo:capture-stills for a full refresh; note it MUST run outside the

command sandbox (Chromium needs Mach ports/IPC). If the animated hero needs a

redo, mention npm run demo:capture separately. **If Step 2b bumped

domotion-svg, a full re-capture of both is required** — hand off

npm run demo:capture-stills and npm run demo:capture regardless of which

scenes changed.

and the README references them.

If a decision is genuinely the maintainer's (e.g. "should we drop the narrative

screenshot or keep both?") and you can't resolve it from the code/docs, ask via

the Hot Sheet FEEDBACK NEEDED: mechanism rather than guessing — see the

worklist. Otherwise pick the obvious option, state it, and proceed.

Guardrails

Your output is committed code + a capture checklist.

project's git conventions in CLAUDE.md.

and the AI summaries must all match what you changed.

string you touch.

capture script + demo changes still build before handoff.

Output

A short report: the README changes made; any domotion-svg upgrade (old → new

version, or "already current"); the screenshot-scene decisions (added / re-shot /

removed, each with a reason); the exact capture command(s) for the maintainer to

run; and anything left for them to decide.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.