/tslateman-skills:demofrom tslateman-skills
Record a video demo (mp4) of a UI change working by driving the app through a shot-scraper video YAML storyboard. Use when asked to record a demo, capture video evidence of a frontend change working, or when `/ship` runs with `--demo`.
Ships in tslateman-skills. 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.
Turn a UI change into a short mp4 that proves the flow works: write a YAML storyboard, let shot-scraper video drive Playwright through it, and deliver the recording. Every wait_for in the storyboard is both synchronization and evidence: the run only completes if each expected state actually appeared.
/ship --demo invokes this skill mid-run, between verification and the push. Reach for /demo directly when the recording is all you want.
shot-scraper --version must be 1.10+. If missing: uv tool install shot-scraper && shot-scraper install (the second command downloads Chromium).--mp4 conversion needs ffmpeg on PATH; without it you still get the WebM.shot-scraper video --help (top-level keys, scene keys, every action). Read it before writing the first storyboard of a session instead of guessing from memory.From $ARGUMENTS, or from the working diff when invoked without arguments: identify the one user-visible interaction that demonstrates the change. One tight flow, roughly 15-45 seconds. A demo shows the changed behavior, not a site tour. If the diff has no user-visible surface, say so and stop.
Use the project's documented dev-server command (nearest CLAUDE.md, or the run skill's knowledge). Two options:
url: at an already-running server you started yourself.server: key so shot-scraper owns the lifecycle. Prefer this; gate the opening scene with wait_for so cold starts don't record blank frames.url: also accepts a local HTML file path (relative to the invocation cwd) for component-level demos with no server.
A server: command runs in the invocation cwd too. Since the storyboard lives in the scratchpad, you invoke from there, so a command written for the project root fails to spawn. Use absolute paths, or the toolchain's own escape hatch (uv run --directory <repo>, npm --prefix <repo>).
Write it in the session scratchpad. Working shape:
output: demo.webm
url: http://localhost:8080/some/page
viewport:
width: 1280
height: 720
cursor: true
wait_for: "text=Page heading"
scenes:
- name: Fill and submit the form
do:
- click: "#field-tci"
- fill: { into: "#field-tci", text: "example" }
- click: "button:has-text('Save')"
- wait_for: "text=Saved"
- pause: 1
wait_for / wait_for_url. That is what makes the recording verification evidence rather than a hopeful screencast.text=, :has-text(), and ids over deep CSS chains; those survive markup churn and fail with readable timeouts.wait_for to something unique — #stackcount:has-text('3 skills') over text=3 skills, which also matches every ancestor — or say >> nth=0 and mean it.shot-scraper video storyboard.yml -o demo.webm --mp4
Logged-in flows: capture cookies first with shot-scraper auth <url> auth.json, then pass --auth auth.json. The auth command opens a real browser for a human to log in, so ask the user to run it themselves (suggest ! shot-scraper auth ...).
On a selector timeout, fix the selector or add a missing wait_for and re-run. Two failures on the same step means the assumption about the page is wrong: re-inspect the actual DOM before a third try.
A completed run already proves each wait_for state appeared. Extract the final frame too, and look at it to confirm the video shows what it should:
ffmpeg -sseof -0.5 -i demo.mp4 -frames:v 1 -y last-frame.png
Read the frame image. For longer demos, add screenshot: actions at key states inside scenes and review those.
Copy the mp4 to ~/Desktop/demos/ (create if needed) named <repo>-<branch-slug>-<flow-slug>.mp4, and report that path. GitHub PR descriptions accept a drag-dropped mp4; gh cannot attach videos, so leave the upload to the user.
A demo that lands in the repo — in the README, in docs, as the project's shopfront — outlives the session that recorded it and goes stale with nothing to re-run. Commit the storyboard beside the video and give it a recipe:
scripts/demo.yml) and re-record from that copy, so the committed video is the committed script's output.article.card >> nth=0) rather than by name, so the storyboard records whatever data a teammate has.For a README, commit a GIF too. GitHub strips a <video> pointing at a repo path — only files on its own CDN get a player — so the mp4 renders as a link and nothing more:
ffmpeg -i demo.mp4 -vf "fps=10,scale=800:-1:flags=lanczos,split[a][b];[a]palettegen=max_colors=96[p];[b][p]paletteuse=dither=bayer:bayer_scale=4" -loop 0 demo.gif
At 800px and 10fps a 15-second GIF runs about 1.5 MB against 650 KB of mp4. Embed the GIF, link the mp4 under it.
--mp4 silently requires ffmpeg; the WebM is always written regardless.tail or head. The server child inherits stdout, so the pipe stays open long after the run ends and the whole thing reads as a hang. Redirect to a log file and read that.navigator.clipboard.writeText. A button that flips to "Copied" inside a .then() never flips, and the scene burns the full timeout. Stub the write in top-level javascript:, then prove the real path ran with a js: action that throws unless the app handed the stub the right text.shot-scraper auth: log in via the app's dev-login endpoint with curl and write the cookies into a Playwright storage-state JSON yourself. Include every auth-adjacent cookie (e.g. csrftoken alongside sessionid); a missing one can leave the SPA booting but silently never firing API calls.id="gen-id-43"-style) change across page loads. Anchor selectors to visible label text instead, e.g. div:has(> label:text-is("Field Label")) input, and click the label itself for custom checkboxes whose real input is visually hidden.wait_for.pause: second inflates the runtime and file. Use pauses only where a viewer needs a beat to read the result; keep the total under about a minute.shot-scraper video --help is the source of truth and newer releases add actions.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
61 skills in this plugin
/adrGenerate Architecture Decision Records that capture the reasoning behind technical decisions. Use when the user asks to "create an ADR", "document a decision", "record why we chose X", or discusses architectural trade-offs worth preserving./arenaSpawn N parallel candidates at the same task, pick a base, graft the strongest parts of the losers into it. Use for /arena, 'arena this', 'throw it in the arena', or when one attempt at a non-trivial artifact would lock in the wrong shape./automagic-problem-discoveryAudit a workspace for recurring friction, pick the highest-leverage one, and build the automation that removes it. Use when the user asks "what should I automate", "what's wasting my time", "find the friction in my workflow", wants a self-improvement pass over their own tooling, or runs this on a recurring loop./blast-radiusFind what a change could break somewhere else before it ships, beyond the diff, and prove the one fact it's safe because of by running real code instead of writing it up. Use for 'blast radius of X', 'what could this break', or reviewing a small diff you don't trust./brainstormThis skill should be used when the user asks to "brainstorm", "generate ideas", "ideate", "what are my options", "think of ways to", "explore possibilities", or wants divergent thinking on any topic. Also triggers on "what could we do about", "help me think through", or "creative options for"./broRe-explain the previous assistant message in a much simpler way — for when the reply made you go 'bro what'. Use /bro to get a plain-language version of the last answer.tslateman-skills@tslateman is listed by tslateman/claude-plugins — review the source before installing
npx claudepluginhub tslateman/claude-plugins --plugin tslateman-skills