/demo-video:demo-videofrom demo-video
Use when the user asks to "record a demo", "make a demo video", "record the feature", "make a fallback recording", or "make a screen recording of the app" for a finished web feature. Writes a storyboard from the plan and diff, records a real headless Chromium walking it on the running app, and builds chapter MP4s (plus a GIF in quick mode) with ffmpeg. Skip for non-web apps, terminal or desktop recordings, and do not run unasked after every finished feature.
Ships in demo-video. 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.
Turns a finished web feature into a recorded browser walkthrough. A storyboard is explored live, turned into record.mjs, and recorded at human pace on the real app. Slow waits are sped up, never cut, and the output is checked frame by frame before it is called done.
node <folder>/lib/verify.mjs <folder> exits 0. It checks codec, size and duration of every MP4 and writes one frame per step to <folder>/frames/.frames/ with the Read tool and checked each one for: the wrong page, an error state, a visible secret (key, token, real personal data) and an unreadable caption.Saying "the recording succeeded" without running verify and reading the frames gives the user a false pass. If verify fails, or a frame shows a problem, return to the step that caused it, fix it and record again. Never report around it.
Ask which mode if the request does not say. Both modes are unmistakable:
| quick | polished | |
|---|---|---|
| For | a PR or chat, reviewers and teammates | a launch, a talk or a fallback recording |
| Storyboard approval | none: record straight away and show the storyboard with the result | required before anything runs |
| Captions, title and end card | none | yes; to switch captions off, set captions: false in record.mjs, or re-encode with node <folder>/lib/postprocess.mjs <folder> --no-captions |
| Output | demo.mp4 and demo.gif | one MP4 per chapter, plus a combined demo.mp4 when there are several chapters |
Polished mode approval gate: write storyboard.md, show it to the user and stop. Explore, scaffold and record only after the user approves or edits it. A silent "looks fine" from yourself is not approval.
Paths below are relative to this skill's directory. The output folder is docs/demo-videos/YYYY-MM-DD-<feature>/ in the user's repo, and <folder> stands for it.
Pick the mode. See Modes.
Preflight. Run node scripts/preflight.mjs <app-url> --repo <repoRoot>. It checks Node 20 or newer, a global playwright with a launchable Chromium, ffmpeg, ffprobe, git lfs with its filter initialised in that repo (git lfs install), a font that covers the speed marker with a one-frame drawtext render, and that the URL answers. On any FAIL, show the install hint and stop.
Write storyboard.md in <folder> from the feature's plan, spec and diff, plus any demo script the project already has. Follow references/storyboard.md for the format. Mark every slow call with Wait for. Use invented demo data only.
Polished mode: wait for approval. See the gate above. Quick mode skips this step.
Scaffold. Run node scripts/scaffold.mjs <repoRoot> <folder>. It copies lib/ and a record.mjs template into the folder and adds the Git LFS and ignore rules to .gitattributes and .gitignore, in the line ending the files already use. Scaffolding first gives the explore fallback below its lib/. When you re-record an older folder after a plugin update, run scaffold.mjs again first: it overwrites lib/ with the current version and keeps your record.mjs.
Explore every step live with the Playwright MCP tools, on the real app. If the Playwright MCP tools are missing or cannot launch a browser, explore the steps with a short throwaway script and delete it afterwards. Load Playwright in it with import { loadPlaywright } from '<folder>/lib/playwright.mjs', the loader record.mjs uses. Confirm each step works and pick stable locators: role and name first, then test id, then CSS. Note which element shows that each slow call has finished. If a step cannot be made to work, stop and report it. Never record around a failing step.
Fill in record.mjs. Set these fields of the record({...}) call:
baseUrl, mode, title and endCard;locale, from the storyboard's language ('nl-NL' for a Dutch storyboard), so the app renders in the same language as the captions; timezoneId and contextOptions when the app needs them;captions: false for cards without captions;setup, with a silent login for an app that needs one, or storageState, a path relative to the folder, such as .auth/state.json;pace, speedFactor and minWait only when the defaults do not suit the app.Then turn the storyboard into chapters; the mapping is in references/storyboard.md. Put login in setup or a storageState file, never in a step.
Record. Run node <folder>/record.mjs. It records, writes timeline.json and post-processes in one command. A failed step exits non-zero and produces no video.
Verify. Run node <folder>/lib/verify.mjs <folder>, then do the frame review from the gate. A frame looks blank problem can be a false positive on a page that is mostly a footer or a sidebar: view the frame. If it shows the right page, carry on; do not re-record in a loop.
Report the paths of the videos, their durations, the storyboard, and the re-record command node <folder>/record.mjs. Show the .gitattributes and .gitignore diff.
Never commit. Not the videos, not the folder, not the .gitattributes and .gitignore changes. The user reviews the diff and commits.
To switch captions off or on after a fix without recording again, node <folder>/lib/postprocess.mjs <folder> [--no-captions] re-encodes from the existing raw videos without recording again.
setup, or in a storageState file kept in the gitignored .auth/. Never film credentials.## chapters yields one MP4 per chapter and a combined demo.mp4.| File | Contents |
|---|---|
| references/storyboard.md | The storyboard format, an example, and the mapping from each line to record.mjs and the h.* helpers |
scripts/preflight.mjs | Machine and app checks |
scripts/scaffold.mjs | Output folder setup and git rules |
templates/record.template.mjs | The record.mjs skeleton |
lib/ | Runtime, post-processing and verify, copied into each output folder |
lib/ffmpeg-graph.mjs (opens in a new tab)lib/firstpaint.mjs (opens in a new tab)lib/playwright.mjs (opens in a new tab)lib/postprocess.mjs (opens in a new tab)lib/runtime.mjs (opens in a new tab)lib/timeline.mjs (opens in a new tab)lib/verify.mjs (opens in a new tab)references/storyboard.md (opens in a new tab)scripts/ffmpeg-graph.test.mjs (opens in a new tab)scripts/fixtures/app.html (opens in a new tab)scripts/fixtures/second.html (opens in a new tab)scripts/postprocess.test.mjs (opens in a new tab)scripts/preflight.mjs (opens in a new tab)scripts/runtime.test.mjs (opens in a new tab)scripts/scaffold.mjs (opens in a new tab)scripts/scaffold.test.mjs (opens in a new tab)scripts/timeline.test.mjs (opens in a new tab)templates/record.template.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub marcelroozekrans/superpowers-extensions --plugin demo-video