Demo video

From FriendlyInternet/nuxt-crouton · View interactive version

Demo video is an AI agent skill from the GitHub repository FriendlyInternet/nuxt-crouton. Record a WebM demo video of a UI flow with shot-scraper video — a YAML storyboard drives the browser (click, type, scroll, wait) with an animated cursor overlay, so a reviewer can watch the feature instead of driving it. Use to attach motion evidence to a UI sign-off (#307), to turn an issue's "How

How to use this skill

Skill file

Demo Video — storyboard-recorded WebM demos

Records a watchable demo of a UI flow using

CODE0

(Simon Willison, Apache-2.0, Playwright-based): a declarative YAML storyboard

opens the app, clicks, types, scrolls and waits — with an injected **animated

cursor + click-ring overlay** so the recording reads like a human demo, not a

ghost session.

What this is: evidence capture — the motion analog of scripts/app-shots.mjs.

What this is NOT: assertion testing. The e2e harness (/e2e-smoke) remains

the correctness gate; Playwright's own video: 'on' test artifacts (#356) remain

the test-run recordings. This skill is for narratable demos a reviewer watches.

When to use

of the flow under review — richer than a PNG, cheaper than the reviewer

driving it themselves.

numbered steps; the video is the before/after evidence.

Setup (once per session)

bash scripts/demo-video-setup.sh

Idempotent. Installs shot-scraper via pip and makes sure Playwright's expected

chromium exists — downloading it where possible, or (in the egress-blocked web

harness) symlink-shimming the expected build dirs onto the pre-installed

/opt/pw-browsers browsers. Don't hand-roll the shim; don't conclude "no

browser" from a failed playwright install (see crouton-harness-observability §5's headless-browser

note — same trap).

Recording

  1. Copy example-storyboard.yml (next to this file) and adapt it. The

storyboard can boot the app itself via server: (e.g. pnpm dev), or point

url: at an already-running server / local HTML file.

  1. Output path: screenshots/<name>.webm — same HARD-GATE location rule as

screenshots; *.webm/*.mp4 are gitignored so recordings stay out of commits.

  1. Run it:
shot-scraper video storyboard.yml            # → WebM
shot-scraper video storyboard.yml --mp4      # + MP4 (needs a real system ffmpeg)

Storyboard essentials

output: screenshots/feature-demo.webm
url: http://localhost:3000/        # or omit and use `open:` in the first scene
server: pnpm dev                   # optional: runs while recording, killed after
viewport: {width: 1280, height: 720}
cursor: true                       # the demo-polish switch — keep it on
wait_for: "text=Dashboard"         # recording starts AFTER this settles
scenes:
- name: Create a thing
  do:
  - click: "#new-thing"
  - type: {into: "input[name=title]", text: "Demo item", delay_ms: 40}
  - press: Enter
  - wait_for: "text=Demo item"     # doubles as a weak smoke assertion
  - screenshot: screenshots/feature-demo-result.png   # stills mid-recording
  - pause: 1

Actions: click, type (visible keystrokes) / fill (instant), press,

scroll (eased, or to: a selector), pause, wait_for, wait_for_url,

open, js, screenshot, sh, python. Full syntax: the video.py pydantic

models in the shot-scraper source, or shot-scraper video --help.

Authed apps: log in once with shot-scraper auth <url> auth.json, then

record with shot-scraper video storyboard.yml -a auth.json. Never commit

auth.json.

Delivering the video

GitHub's API can't attach binary media to comments, so pick by context:

it from the PR comment; or drag-and-drop manually — a human gesture, not an

agent one.

system ffmpeg with libx264) when the audience needs QuickTime/Slack inline.

Gotchas

fill is instant and reads as a glitch.

page; add a trailing pause: 1 so the last state is visible.

that's a feature (broken flow ⇒ no misleading demo), but keep storyboards

short and re-runnable.

third-party storyboards like shell scripts.

is the sweet spot.

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.