Record a short, watchable video of a web product doing something, to show it or to prove it works: captions, a visible pointer, a title card, an honest pass or fail verdict, a contact strip and a steps.json. Use when you shipped or built something a person can see (a fix on a live app at phone size, a UI-kit component, a feature) and must show or prove it, or when asked for a demo video.
Ships in boring-library. 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 reviewer cannot see a gesture, a transition or a wait in a screenshot. This records the real page being driven, with the step in words at the bottom, and says honestly whether it worked. A failure stays in the video, in red.
Use it when you shipped or built something a person can see and need to show or prove it (10 to 40 seconds). Do not use it for static content, for a claim a test proves better (verify-this), for debugging a browser (control-ui), or for a faux product illustration (stageshow). Never with real people's data: only the fictional test user and invented data.
node <skill>/scripts/record.mjs --steps flow.json --out /home/ubuntu/fleet/evidence/<app>/<D-n>/ --publish --task <app> D-n
Records, uploads to the private bucket and puts the verdict and a 7-day link on the task (see "Where the result goes"). Without --publish the result stays in the folder; without --task it is only uploaded and the link printed.
<skill> is the folder of this skill (~/.agents/skills/demo-video). Needs Playwright with Chromium and ffmpeg (both on the dev VM; found by themselves). Add --fast to run only the checks (no pauses, no video; writes steps.json, strip.png, verdict.txt) as a gate. Exit code: 0 pass, 1 a step failed, 2 bad steps file, 3 refused (a secret-looking value), 4 environment.
It writes demo.mp4 (H.264, constant 30 fps, plays on a phone, in GitHub and Slack; the app untouched, the caption and 3 / 7 in a band below it; a portrait 960x2048 frame for a phone, 1520x1140 for a desktop), demo.webm, poster.png, strip.png (one frame per step, caption under it), steps.json, verdict.txt, and prints one line: PASS 7/7 steps, 28.0s, 0 console errors or FAIL step 3/7 "caption": expected see:Midi (not true after 5s).
JSON: a few settings and a list of steps. Captions are in the language of the file ("lang": "fr" also gives the cards « Fonctionne » / « Ne fonctionne pas : étape N »).
{ "title": "Coach Max : noter son déjeuner", "app": "Coach Max", "lang": "fr", "viewport": "phone",
"steps": [
{ "do": "type", "testid": "composer-input", "text": "ce midi 150 g de riz", "caption": "J'écris ce que j'ai mangé" },
{ "do": "tap", "testid": "composer-submit", "caption": "J'envoie", "until": "nosee:Rien encore", "timeout": 90000 },
{ "caption": "Deux lignes dans Midi", "until": "see:Riz", "pause": 2000 },
{ "do": "tap", "role": "button", "name": "Modifier Riz", "caption": "Je touche la ligne", "until": "see:pour 100 g" } ] }
Desktop ("viewport": "desktop"; a native <select> uses select):
{ "title": "Expert-comptable : retrouver une écriture", "lang": "fr", "viewport": "desktop",
"steps": [
{ "do": "tap", "text": "Recette (fictif)", "caption": "J'ouvre le dossier", "until": "see:Écritures" },
{ "do": "select", "label": "Journal", "option": "VE", "caption": "Je filtre par journal", "until": "see:3 lignes" },
{ "do": "tap", "role": "button", "name": "Ouvrir écriture F26-001 · 706000", "caption": "Je clique une ligne", "until": "see:Lignes de l" },
{ "do": "press", "key": "Escape", "caption": "Échap ferme le panneau", "until": "nosee:Lignes de l", "pause": 1500 } ] }
Full files: examples/phone-coach-max.json, examples/desktop-expert-comptable.json, examples/local-failure.json (a deliberate red step). Every step: do + a target + caption + optional until (the check, waited up to timeout ms, default 5000) + pause (ms). Targets: testid, target (CSS), role+name, label, placeholder, text. A step with only a caption (and until/pause) shows a caption and checks. Gestures, check grammar and the rest: reference.md.
Write checks that prove the claim (until), not just that a button was pressed. A step with no check only fails if its target is missing.
--url (page, file or path; default: the file's url, then $LIVE_APP_URL), --viewport phone|desktop|WxH[:touch], --child-frame <css> (app inside an iframe), --version <commit> (title card: pass "$(git rev-parse --short HEAD)" of the thing shown), --mask <css,css>, --serve "<cmd>" (start a local server, stopped at the end), --ready <css>, --strict-console (a console error fails the step), --publish, --task <app> D-n. --help lists all.
Do not sign in yourself: the shared helper hands the session to the command, in its environment only (never in argv or a file):
cd /home/ubuntu/projects/boring-factory
node evals/e2e/live-session.mjs coach-max -- node <skill>/scripts/record.mjs --steps flow.json --out DIR # phone
node evals/e2e/live-session.mjs expert-comptable -- node <skill>/scripts/record.mjs --steps flow.json --out DIR # desktop
The recorder reads COACH_SESSION / COMPTA_SESSION and LIVE_APP_URL set by the helper and sets the __Host-app_session cookie. Read evals/e2e/README.md of hachej/boring-factory for what the account may do (invented data; in expert-comptable only the dossier « Recette (fictif) »). A Coach Max sentence is a real model call: keep to a few, and clear what you wrote afterwards (the line's "Retirer" button needs no model).
The kit harness (hachej/boring-ui, ux/scenarios/*.json) is played as it is: --scenario ux/scenarios/x.json --flow F01 --viewport 390 --url <built page> (build it with the harness's buildPage; its fixture query is added). Same gestures; say is the caption, until the check, expect the sentence.
Keep it outside git: /home/ubuntu/fleet/evidence/<app>/<task-or-date>/ (a few MB at most; delete scratch takes). Then:
--publish (with --task <app> D-n to post it on a task) to the recorder, or run node <skill>/scripts/publish.mjs <folder> --task <app> D-n for a recording already made. Add --no-post to file the objects under the task's key without commenting.
boring-backups (the one docs/archive/ARCHIVE.md describes, the same Vault credential, no new token) under evidence/<app>/<D-n or date>/<title slug>/ (demo.mp4 video/mp4, demo.webm, poster.png, strip.png, steps.json, and evidence.json, all Content-Disposition: inline, so a phone plays and seeks), and prints a watch link valid 7 days. A re-run of the same title overwrites (the latest take wins).node <skill>/scripts/link.mjs <evidence/.../demo.mp4 | the prefix ending in / | the folder> [strip|webm|poster|steps].strip.png and steps.json attached. The task store takes no video (.mp4/.webm are refused as attachments), so the video lives in the bucket. A shipped or abandoned task is immutable: the comment and the attachments are refused. The run does not fail: the same text, without any signature, is written to task-comment.txt beside the recording, and the link is printed once to you.evidence.json (kind: "demo-video", title, verdict, durationMs, viewport, app, commit, createdAt, objects = the five object keys) holds keys only, never a link or a secret. A task card resolves the keys to links with a route that checks rights (not built yet) and plays them with the UI kit's file viewer.wrangler is not reachable, the recording is kept and one sentence says what to run later. A signed link is written to no file and no log; it is in the task comment and in what the command prints.evidence/. Delete a scratch take with wrangler r2 object delete boring-backups/<key> --remote (token as in ARCHIVE.md); finished evidence stays like the other archives.steps.json (steps passed, seconds, console errors), and the evidence folder path. Never commit the video. GitHub inlines a video only when someone drags it into the web editor: leave that to a person.Reading steps.json: verdict.ok and verdict.line first; then each steps[]: ok, reason (why it failed), ms (time of the gesture and its check), check.ok (the until), consoleErrors, retried (the gesture was tried twice). warnings says if the video is over 40 s (over 60 s: split it).
input[type=password] and [data-private] (add more with --mask); the session cookie is read from the environment and never written, printed or shown; an address is printed without its query string.| Symptom | Do |
|---|---|
FAIL step N ... Timeout on a target | the text, role or label is wrong or not yet there: --fast and look at strip.png (red frame) |
Exit 3 refused | the page shows a secret-looking value: use invented data, mask it or fix the page |
Exit 4 playwright not found | DEMO_VIDEO_PLAYWRIGHT=<folder with node_modules/playwright-core>, and CHROMIUM=<binary> if needed |
| No MP4, only WebM | ffmpeg missing or without libx264: install ffmpeg |
| Video over 60 s | a model call waits: cut steps, or split into two files |
| Page redirects to sign-in | the session expired: run through live-session.mjs again |
| Typing hidden behind the caption | it moves to the top by itself when the field is at the bottom |
Tests (offline; the recording ones need Chromium and ffmpeg): node --test skills/demo-video/test/*.test.mjs in the library.
LICENSE (opens in a new tab)examples/desktop-expert-comptable.json (opens in a new tab)examples/local-failure.json (opens in a new tab)examples/local-steps.json (opens in a new tab)examples/local.html (opens in a new tab)examples/phone-coach-max.json (opens in a new tab)examples/phone-expert-comptable-activity.json (opens in a new tab)reference.md (opens in a new tab)scripts/lib/compose.mjs (opens in a new tab)scripts/lib/gestures.mjs (opens in a new tab)scripts/lib/overlay.mjs (opens in a new tab)scripts/lib/publish.mjs (opens in a new tab)scripts/lib/safety.mjs (opens in a new tab)scripts/lib/steps.mjs (opens in a new tab)scripts/lib/strip.mjs (opens in a new tab)scripts/lib/verdict.mjs (opens in a new tab)scripts/link.mjs (opens in a new tab)scripts/publish.mjs (opens in a new tab)scripts/record.mjs (opens in a new tab)test/composition.test.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/boring-library:demo-videofrom boring-library
npx claudepluginhub hachej/boring-stack --plugin boring-library