Generate video

From microsoft/vscode-team-kit · View interactive version

Generate video is an AI agent skill from the GitHub repository microsoft/vscode-team-kit. Make the shortest narrated video that fully explains a GitHub pull request (at most 90 seconds, captions, diagrams chosen for the PR, and real footage of the app, before and after side by side, when the change is visible) in one white Microsoft look. USE FOR: "/generate-video 12345", "make a video o

How to use this skill

Skill file

Generate a PR video

The shortest narrated video that fully explains one pull request: at most 90 seconds, captioned, with a diagram for

each idea and, when the change is visible, the real app doing it. You write the story and fill the diagrams from the PR;

the engine fetches, voices, renders, and checks every word on screen against the PR. First read

contract.md.

Needs: a terminal that runs commands for minutes, and file tools (reading images, subagents and chat artifacts help).

macOS or Linux with Node.js 20+, Python 3.11–3.13, and access to github.com and PyPI. Commands install what they need

into ~/.cache/ on first use. gh, signed in, is optional: public PRs work without it.

The fast path: setup.mjs → prs new → storyboard.json and prs check → prs direct → footage, in a subagent

if you have one (prs app, the capture kit) → prs voice in the background while you fill scenes.js → prs preview

until lint is clean → prs publish → prs review-pack and the review → fixes, prs publish, prs review-pack, until

signed off → deliver.

1. Find the PR and the engine

A calling skill may pass a brief (a code walkthrough's groups): follow it as the contract says. For a brief about a

branch, use its PR (gh pr view <branch> --json url, in that repository); if it has none, say that a video needs a

pull request, and stop.

every command.

resource (voice.mai.azResource), otherwise the offline Kokoro; prs doctor says which.

2. Make the video

About 10 minutes, or 25 with footage, reviews included. Post a one-line update after each step.

  1. Fetch. prs new <url> writes <studio>/videos/<slug>/ (the slug is <owner>-<repo>-<n>; pass it to every

command): brief.md, pr.diff, the changed files, and a storyboard skeleton. If the change is visible in VS Code,

start prs app <slug> --before in the background now: the builds download while you write the story.

  1. Story. Write storyboard.json (below). Run prs check <slug> until it passes, then apply the cut test.
  2. Direct. prs direct <slug> picks a diagram treatment for each beat, different from recent videos. It scaffolds

scenes.js with each pick's fields and a note on how to narrate it ("names the aspects in order"): fit each say

to its pick.

prs direct <slug> --force to rewrite the scaffold (before you fill it; the picks stay). prs catalog lists the

treatments. If none fits, say so in your answer.

  1. Footage, when the PR changes something a user sees or does: capture.md. It needs only

the storyboard. With subagents, hand it to one now (capture.md, the slug, <studio>, and the footage beat's say

and cues), and go on with the next steps while it records.

  1. Voice and scenes. Start prs voice <slug> in the background, and fill every TODO of scenes.js meanwhile

(below). The voice prints what a listener hears in each beat. Fix a word "heard differently" with pronounce or

other words, then run prs voice <slug> --redo <beat>.

  1. Preview. prs preview <slug> renders key frames and build/stills/contact.png, then lints. Look at the sheet,

then the frames that matter, and fix until lint reports 0 problems. Lint times the screen too: text up too briefly to

read is a problem (give the beat a hold, or say less), and an element named before it shows is a warning worth a

look.

  1. Publish. prs publish <slug> renders, encodes, and checks the audio against the captions (the sync gate; a

failure says what to fix). It then delivers the video.

The storyboard

A beat is one idea, in one to three sentences, with one diagram. Merge or drop the skeleton's beats that add no answer:

a before and after can show both what changes and why.

is a placeholder: {{facts.additions}}.

counts from 0: a phrase said twice cues the first time unless nth is 1).

evidence: { "file", "anchor" } (text or a regex at the head commit; "removed": true for a removed line),

{ "body" }, { "commit" } or { "review" } (exact words), or { "fact": "additions" }. A count you make is a

claim: anchor each thing counted.

The first beat (title) says what the PR does in one sentence; its card shows the number, author, size and state. The

last (status) says what matters most before review or merge; its screen lists scope, tests and where to start reading.

Pronunciation. The voice splits camelCase, spells short capitals and says "dot". Anything else goes in the top-level

pronounce ({ "scm": "S C M", "mcumming": "M Cumming" }).

scenes.js

Beat keys are the storyboard ids. The engine lays everything out. Never open another video's scenes.js.

Mix them in an array.

{ diff: true, anchor } (its hunk); add occurrence: n when the anchor matches several lines. Avoid long lines: the

font fits the longest.

Without one, items spread over the beat.

recording (k.mark('click')) at the cue it maps to, at real speed, and holds its result until the next; before

is the same for the app without the change. Optional: crop: [x, y, w, h], label, note, and

layout: 'rows' for a wide, short part. A clip without marks takes from, to, at (its cue) and speed.

the action once, then the difference ("press Save: the old build drops the selection, the new one keeps it").

3. Review

Follow review.md, with prs review-pack <slug> before each round.

4. Deliver

prs publish prints where it delivered the mp4 (~/Downloads/pr-videos/<slug>/ by default). That folder holds the mp4,

a webm (VS Code's chat plays it in place of the mp4), the captions and contact.png.

artifacts.

contact.png (Key frames: #<n>), by absolute path. End your turn there.

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.