generate-test-video
Skill65 starsChanged 17 days agoMITView on GitHub
Make a short narrated "how to test" or "how to verify" video for a VS Code test plan item (TPI), a fixed bug, or a few fixed bugs of one area: recorded in real VS Code Insiders in a throwaway profile, every step checked in the app, with captions, a zoom, flags that pause where something is wrong, a verdict slide and a recap. macOS. USE FOR: "make a how-to-test video for TPI 342400", "a video to verify issue 341013", "how-to-verify video for bugs 339711 339712 339714". DO NOT USE FOR: explaining a PR to someone who won''t test it (use pr-studio:generate-video), plain screen recordings, editing an existing video.
In this repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- manage-bansSkill
- build-healthSkill
- setup-component-explorer-fullSkill
- setup-component-explorer-lightSkill
- setup-component-explorerSkill
- use-component-explorerSkill
- debugSkill
- inbox-add-reactionSkill
- inbox-dismiss-notificationSkill
- inbox-get-notification-detailsSkill
- inbox-install-gh-cliSkill
- inbox-list-notificationsSkill
- inbox-manage-subscriptionSkill
- inbox-mark-all-readSkill
- inbox-memorySkill
- inbox-open-notificationSkill
- inbox-search-issuesSkill
- inbox-setupSkill
- council-planSkill
- council-reviewSkill
- monitor-prSkill
- my-issuesSkill
- my-work-setupSkill
- my-work-uiSkill
- generate-presentationSkill
- generate-videoSkill
- review-areasSkill
- review-planSkill
- session-timelineSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Read video.md, scenario.md, and before step 9 slides.md.
- Very specific: line 25
Probe: Write scenario.mjs with a hidden prepare step.
- Very specific: line 26
Voice: Write one short sentence per shown step in voice/lines.json, then run $PY $KIT/voice.py <work> [--only step,…] until every take is …
- Very specific: line 41
Delete any build you downloaded.
- Very specific: line 42
If you can, record the mp4 as a chat artifact (Video: #<n> <short title>).
- Distinctive: line 55
Faithful and exact: use the item's steps, order, names and values, and nothing the item and its PRs don't support.
- Distinctive: line 57
GitHub: read only. Never post, comment, react or label.
- Very specific: line 59
Small images: every image you open stays in the session at full size.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Generate a test video
A short video a tester follows instead of reading the item: its setup, steps and expected results, in its order and words, in real VS Code Insiders. Every step acts in the app and checks the result there, so the video never shows a result the app didn't produce. It pauses on anything wrong, opens with a verdict slide, and ends with a recap.
Needs macOS, VS Code Insiders in /Applications, Node 20+, Python 3.10–3.13, gh signed in, and a terminal tool that runs commands for minutes. Items about chat or agents need a signed-in Insiders: its sign-in is copied into each throwaway profile.
1. Set up
Run node <plugin-dir>/scripts/setup.mjs (the plugin's folder is two above this file). Add --selftest on a Mac's first use: it makes a tiny video to prove every stage works. It installs the tools into ~/.cache/test-videos/ once (about 400 MB) and ends with KIT=, PY=, FFMPEG=, WORK= and DELIVERY=: $KIT and so on below. If it reports a problem it can't fix, stop and say what to install. The voice is Kokoro (offline), or MAI-Voice-2 when AZURE_SPEECH_KEY is set or ~/.cache/test-videos/config.json names an Azure Speech resource.
Read video.md, scenario.md, and before step 9 slides.md. Then read one example in examples/ (issue-342051/: one item, editor window; bugs-welcome-messages/: a group, Agents window), never the one for the item you're making.
2. Make the video
The item is a URL, <owner>/<repo>#<n> or a number (microsoft/vscode unless told otherwise). Several numbers are fixed bugs of one area in one video ("Bug groups" in video.md). With nothing, ask. Work in $WORK/<name>/ (<work>; make it first, and keep your notes and diffs there too), named tpi-<n>-how-to-test, issue-<n>-how-to-verify or bugs-<area>-<n1>-<n2>-…-how-to-verify.
- Read the item.
$PY $KIT/item.py <n>lists its PRs (closing ones first), whether the installed Insiders has them, and the title's phrase. Then read the item withgh issue view <n> --repo microsoft/vscode --json title,body,labels,comments(--commentsalone drops the body), its PRs and their "how to test". List every setup item, step and expected result, and decide what to show ("Scope" in video.md). - Build. Use the installed Insiders if it has every fix. Otherwise download one by commit:
https://update.code.visualstudio.com/api/commits/insider/darwin-arm64lists them, andhttps://update.code.visualstudio.com/commit:<sha>/darwin-arm64/insiderdownloads one. Unzip it into<work>withditto -x -k, and pass--build <app>torun.mjsanditem.py. If no Insiders has the change yet, stop and say so. For the bundled Copilot SDK, check the build's own files. - Probe. Write
scenario.mjswith a hiddenpreparestep. Runnode $KIT/run.mjs <work> --probeuntil the app is in the starting state, then--probe --until <step>to probe the steps through that one: what's on screen (run/probe-aria.yml,run/probe.jpg) and how to check it. - Voice. Write one short sentence per shown step in
voice/lines.json, then run$PY $KIT/voice.py <work> [--only step,…]until every take is "as written". Reword any line that isn't. - Steps and bands. Each step does its action, timed to its words, and checks the result. Its band in
captions.jsonis numbered by the item's own steps. - Record.
node $KIT/run.mjs <work>; every step must pass. When signed in, plan so one recording is enough ("Signed in" in scenario.md). - Compose and check.
$PY $KIT/compose.py <work>, then$PY $KIT/check.py <work>; only a CHECK needs action. Open the contact sheets (out/contact-*.jpg).- To see one moment:
$FFMPEG -v error -ss <s> -i <mp4> -frames:v 1 <work>/frames/f.png, then$PY $KIT/small.py <work>/frames/f.png --crop x,y,w,h. Frames are 1920×1330, with the band in the top 250 px. - For sheets of a stretch:
$PY $KIT/small.py --video <mp4> <dir> [--every s] [--from s] [--to s]. - Does each step show what its band says, at its words? Is anything covered, clipped or too fast? Fix and repeat.
- To see one moment:
- Compare with the item in a table: item step → video time → same / different / not shown. Fix what you can.
- Flags, then the verdict and recap (slides.md). Run
$PY $KIT/flags.py <work> --preview, look atflagged/preview-*.jpg, and run it again without--preview(no flags: skip it). Do the same withcards.py(carded/slides/preview-*.jpg), then run$PY $KIT/check.py <work>/carded.
Post a one-line update after each stage, and ask only when blocked.
3. Deliver
- Copy
<work>/carded/out/<name>.mp4into$DELIVERY, replacing an older one of that name. - Delete any build you downloaded.
pgrep -fl <your run folder's tv-… name>must print nothing. - If you can, record the mp4 as a chat artifact (
Video: #<n> <short title>). - End with the report:
- the verdict and flags;
- the video's path and length;
- the steps shown, and what isn't shown and why;
- the build (version and commit);
- signed in or not, and the chat requests sent;
- anything a tester should know that the video doesn't say.
The user attaches the video on GitHub; the API can't.
Rules
- Faithful and exact: use the item's steps, order, names and values, and nothing the item and its PRs don't support. Every step checks its result in the app. Never fake a result; if the item can't be shown, stop and say why.
- Isolated: launch VS Code only with
run.mjs. Never touch the user's windows, profiles, settings, repositories,~/.copilotor system settings. Install nothing, and write only in<work>and$DELIVERY. Never let VS Code runnpx -y; see "MCP servers" in scenario.md. - GitHub: read only. Never post, comment, react or label.
- Cheap: sign in only when the item needs it. Send only the chat requests it needs, short and harmless, on a low-cost model. Approve only actions inside the throwaway workspace.
- Small images: every image you open stays in the session at full size. Open only small JPEGs (
run/probe.jpg, contact sheets,preview-*.jpg,small.pyoutput), never a PNG. Prefer text (probe-aria.yml, DOM checks) when it answers the question.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

