record-demo
БесплатноБез исполняемых скриптовНе проверенRecord a short video of a change in the real local app and attach it to the pull request. Use after a UI change, a new flow, or motion, when the user writes…
от nightly-labs★ 13 288 звёзд на GitHubОб этом скилле
Record demo
Drive the change in the local dev app while you record one page. Then
attach the .webm file to the PR. A video does not replace the smoke
test or CI.
Before you start
- Read
AGENTS.mdand thesmokeskill. Use its rules for the dev stack:env -u ELECTRON_RUN_AS_NODE,bun run dev:statusfirst, reuse this worktree's stack, no--shared, never drive another worktree's app. - When the change has no visible result, say so and stop.
- Recording needs the ffmpeg build of the installed Playwright. When
recordfails withExecutable doesn't exist at .../ffmpeg-<n>, runbun node_modules/playwright-core/cli.js install ffmpegonce.
Step 1 — Write the script
Write 3 to 8 steps that show the change from the start state to the
result. Use the dev:automation role and name of each control. Get them
from a snapshot before you record. Include the reverse action when the
change adds one. Keep the video under 60 s.
Do not show secrets, real user data, or a real account. A new worktree
profile already has showcase data; use it. Do not run dev:seed for a demo.
Step 2 — Record
Bring the app to the state where the demo starts.
Start the recording with
run_in_background:bun run dev:automation record --out=<name>.webm --duration=90000 --wait-for=<role>,<name>Use a
<name>with no/, so that the file stays at.openbot-build/dev-automation/<name>.webm.--page=<target-id|url-substring>records another window or an embedded browser view.--service=test-clientrecords the second client.stderr prints
recording <w>x<h> ... stop with kill -INT <pid>. Wait for this line before the first action.
Do the steps with
clickandtype, each with--wait-for, as thesmokeskill says. Keep about 1 s between steps so that a viewer can follow. Onesleep 1between commands is permitted here: the pause is for the viewer, not for the app.Stop:
kill -INT <pid>with the PID from stderr. The command writes the file and prints{"recording": "<path>", "durationMs": <n>}. At the limit of--durationit stops by itself.
Other surfaces:
| Surface | Record with |
|---|---|
| Desktop app, test client | bun run dev:automation record |
Browser client (/app), public web |
The harness's preview recording tool, if it has one. Otherwise a temporary script under .openbot-build/ with Playwright page.screencast.start({ path }) |
| iOS simulator | xcrun simctl io booted recordVideo --codec=h264 .openbot-build/<name>.mp4, stop with kill -INT <pid> |
Step 3 — Check the video
Do not attach a video that you did not check. Extract frames at the start,
middle, and end, and look at them. For example, open the file in Chrome
with Playwright, set video.currentTime, and take a screenshot of each
frame. Confirm:
- The result of the change is visible.
- No dialog, error, or empty loading state hides it.
- No secret, real name, email, or private path is visible.
- The file is less than 10 MB (GitHub's limit on the free plan).
When a check fails, record again. Do not edit the video.
Step 4 — Attach to the PR
Use gh 2.101 or later (gh --version). Do not commit the video.
- New PR: add
--attach .openbot-build/dev-automation/<name>.webmtogh pr create. - Existing PR:
gh pr edit <pr> --attach .openbot-build/dev-automation/<name>.webm. Without a body flag, gh keeps the body and appends the video. - To put the video in
## Screenshots, writethere in the body file and pass--body-file <file> --attach <same path>. gh replaces the reference with the uploaded asset.
Open a PR only when the user asks. When there is no PR, give the file path.
Step 5 — Clean up and report
- Stop each stack you started with
bun run dev:stop. Leave a stack that was live before you started. - Give the video path, its duration, the steps it shows, and the PR link when you attached it.
Установить record-demo в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл record-demo?
Record a short video of a change in the real local app and attach it to the pull request. Use after a UI change, a new flow, or motion, when the user writes `$record-demo`, or asks for a demo, a video, or a recording for a PR.
Как установить скилл record-demo?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл record-demo запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic