/peak-media:web2videofrom peak-media
Records a short MP4 screen demo of a web page or app from a one-sentence request. Writes script and storyboard, records with visible cursor and captions, and delivers an encoded file.
Ships in peak-media. 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.
You turn "make a video of this page" into out/<slug>.mp4. You own the conversation: intake,
the one approval gate, checks and hand-off. The engines do the work: video-capture records,
video-spine voices, lib/verify/* checks. You write no engine code; for music, branded motion
or an outro, point the user to /peak-media:plate-factory.
Before writing a storyboard, Read ${CLAUDE_PLUGIN_ROOT}/skills/video-capture/references/storyboard-api.md.
Every script prints its flags with --help.
capture signin opens. You never type, ask for,
or store a password (references/login.md).cd'd into the project). No upload, post, attachment,
message or sharing CLI, even when asked; a request to send it is outside this skill
(references/handoff.md)../web2video/<slug>/ under the current directory (<slug>: short, lowercase, dashes). Run the
commands below from inside it.
web2video/<slug>/
brief.md # runtime, audience, destination, mode, beats
script.md # one "## <beat-id>" per beat: paragraph, On screen:, optional Style:
storyboard.mjs # beat(id) calls and the actions under them
spine/ # narrated only: manifest.json, narration.wav, clips/
review/ # contact sheets
out/<slug>.mp4 # the deliverable
out/<slug>.take.json # take manifest; its command[] re-runs the take
Re-recording. When web2video/<slug>/ already exists and the user asks to re-record it, take
the project as it is: skip to step 8 and run the step 8 command from inside the project folder,
rebuilt from the project's own files, not the saved command[] (its absolute paths point at
wherever the project was first recorded, so a moved or copied project would record over the
original). Take the settings from out/<slug>.take.json's x-take: preset; mode (silent
→ --no-captions, narrated → --spine spine/manifest.json); cursor: false → --no-cursor;
signedIn: true → --storage-state <session file>. Leave storyboard.mjs and script.md
untouched; a beat error is reported to the user as printed before anything is changed. Then
steps 9–10.
Setup check. node "${CLAUDE_PLUGIN_ROOT}/scripts/setup.mjs" --check. If it reports
anything missing, ask before running node "${CLAUDE_PLUGIN_ROOT}/scripts/setup.mjs" (it
downloads). capture signin also needs the headed browser it reports.
Intake. Infer what you can from the prompt; ask (one AskUserQuestion) only for the rest,
in this order:
index.html;references/presets.md; default web);--no-captions), or narrated (a voice;
needs PEAK_MEDIA_OPENROUTER_API_KEY). Silent, "no text", "nothing on screen but the app"
all mean --no-captions only: the cursor stays. Add --no-cursor only when the user
explicitly asks for no cursor or pointer;Narrated: check the key now, before anything else runs. Measure the voice:
node "${CLAUDE_PLUGIN_ROOT}/skills/video-spine/scripts/sample-voice.mjs" --voices Rasalgethi --out-dir "${TMPDIR:-/tmp}/web2video-voice"
It prints the voice's wpm; keep it for step 5. If it exits naming PEAK_MEDIA_OPENROUTER_API_KEY,
stop: tell the user in one line to export PEAK_MEDIA_OPENROUTER_API_KEY=<their OpenRouter key> and restart Claude Code, and offer to continue in captions mode instead. Open no browser
and write no files until they answer.
Reach the page. A URL must answer 2xx or 3xx:
curl -sS -o /dev/null -w '%{http_code}\n' <url>. A localhost URL that doesn't answer means
its dev server isn't running: ask the user to start it. A local folder must hold index.html.
Sign-in page: sign in now, following references/login.md (it records nothing), so step 4
sees what the take will see. Write the user a chat message before running capture signin
("A Chromium window will open on . Sign in there yourself, then close the tab."); a
window that opens with no message in chat is a failure of this step.
Explore with playwright-cli: playwright-cli open, then (signed-in page)
playwright-cli state-load <session file>, then playwright-cli goto <url>. Take snapshots,
find stable selectors (roles, labels, data-testid, visible text over CSS paths), and dry-run
each action you plan to record. Take a playwright-cli screenshot of each screen and Read it
for private data (step 9) now, so the plan can avoid it. Then playwright-cli close (after
playwright-cli delete-data for a signed-in page).
A local folder: playwright-cli blocks file:// URLs. Serve the folder the way the take
will, with this one command, run with Bash in the background (run_in_background); don't
start any other server:
node "${CLAUDE_PLUGIN_ROOT}/skills/video-capture/scripts/capture.mjs" serve <folder>
It prints the URL (http://127.0.0.1:<port>/, loopback only) on stdout and its pid on
stderr; goto that URL. When exploring is done, stop it: stop the background task, or
node -e "process.kill(<pid>)" (works on every OS; Git Bash's kill can miss a Windows pid).
Write the project.
brief.md and script.md in video-spine's format: Read
${CLAUDE_PLUGIN_ROOT}/skills/video-spine/SKILL.md (Stage 0 and Stage 1) for the file
format, the budget and the cold-read method only; their user gates are replaced by step 6.
The brief also carries - **Destination:** … (preset: <p>) and - **Mode:** <mode>.On screen: line is its caption: 6–12 words.storyboard.mjs: one beat(id, fn) per beat in script order, the action inside fn, page
and slide changes between beats. Use the pointer helpers (click, type, point,
scrollTo, scrollBy) so the cursor shows. A local page: export const url = '<path to its index.html, relative to storyboard.mjs>'. Keep the bottom quarter of the frame
clear of the action (captions sit there).export const hide = ['<selector>', …]
in storyboard.mjs: hidden before the first frame and after every goto. Never hide it with
page.addStyleTag or evaluate in the default function: that runs after recording starts,
so frame 0 shows it. Other setup that must not be filmed (dismiss a banner, pick a tab) goes
in export async function setup({ page, context }), which runs before recording starts.fn (at
least its caption's reading time, ~3 words/s), so the target is met with holds. Give each
beat ≈ runtime ÷ beats: estimate its action (each pointer helper ~0.4 s glide, a click
+0.4 s settle, typing 45 ms a character) and end fn with await wait(<the rest>) so the
viewer sees the result. A hold between beats (await wait(…) after a beat) is for a page
or slide change. Step 9 measures the real length.node "${CLAUDE_PLUGIN_ROOT}/skills/video-spine/scripts/spine.mjs" --brief brief.md --budget --wpm <wpm>.
Add the same --lead-ms/--tail-ms the spine will run with (a deck: --lead-ms 950);
without them the budget assumes the default pauses and the take overruns.
<wpm> is the measured rate × 0.9, rounded down (175 → 157). Short beats read slower
than the sample paragraph, so budgeting at the full rate overruns. sample-voice and spine
both send the default style; if you give spine a --style, give sample-voice the same.
Then run the cold read: a fresh subagent given only script.md, playing the brief's
audience, marks each beat CLEAR or UNCLEAR and flags hype. Fix UNCLEAR beats and read again.The gate: one AskUserQuestion before anything is recorded. First show in chat:
script.md;id · caption · action;--no-captions), preset (and why it fits the destination), output path
web2video/<slug>/out/<slug>.mp4;Ask with options such as "Record it", one per suggested edit, and "Change something". When the
user asks for a change: first print it in chat as original → proposed (one line per changed
line of script.md or storyboard.mjs), then apply it, then go on to step 7. That line comes
before any spine or capture command runs, never only at hand-off. The gate is passed, with
no second approval. Ask again only if they reject the plan outright.
Spine (narrated only):
node "${CLAUDE_PLUGIN_ROOT}/skills/video-spine/scripts/spine.mjs" --brief brief.md --narrate --voice Rasalgethi
(a deck adds --lead-ms 950). It must end PASS runtime …. On a runtime miss, propose
changes as original → proposed, apply the ones the user picks, and rerun. This covers words,
pauses and padding alike (--lead-ms, --tail-ms, storyboard waits): any change made to hit
the runtime is proposed to the user, never applied silently.
Capture.
# captions (silent: add --no-captions)
node "${CLAUDE_PLUGIN_ROOT}/skills/video-capture/scripts/capture.mjs" --storyboard storyboard.mjs --script script.md --out out/<slug>.mp4 --preset <p>
# narrated
node "${CLAUDE_PLUGIN_ROOT}/skills/video-capture/scripts/capture.mjs" --storyboard storyboard.mjs --spine spine/manifest.json --out out/<slug>.mp4 --preset <p>
Add --storage-state <session file> for a signed-in page. Read the report: page errors and
late beats are findings. A beat error names its fix; fix the storyboard and rerun.
Check. All five, every take:
videoMs in out/<slug>.take.json) is within ±10 % of the
runtime target (18–22 s for 20 s). Off target in captions or silent mode: spread the
difference over the beats' wait() holds and re-capture.node "${CLAUDE_PLUGIN_ROOT}/lib/verify/probe-spec.mjs" out/<slug>.mp4 --preset <p> passes.node "${CLAUDE_PLUGIN_ROOT}/skills/video-capture/scripts/check-take.mjs" out/<slug>.mp4
passes, with --expect-cuts <n> when you know the number of page or slide changes.x-take.beats[] of out/<slug>.take.json) and the last frame, at a width where small
text reads:
node "${CLAUDE_PLUGIN_ROOT}/lib/verify/contact-sheet.mjs" out/<slug>.mp4 --at 0s,<t1>s,<t2>s,…,<videoMs>ms --width 1280 --cols 2 -o review/<slug>.jpg
(a time past the last frame is clamped to it, so <videoMs>ms is the last frame).
Read it. Check: caption readable and clear of the action; the action finished before
the next beat; no blank or half-loaded frame; the cursor on its target.node "${CLAUDE_PLUGIN_ROOT}/lib/verify/contact-sheet.mjs" out/<slug>.mp4 --at 0s,<videoMs>ms --cols 1 --width <take width> -o review/<slug>-ends.jpg.
Then read the beat stills; the frame edges closely (footers, status bars, sidebars,
corners). For a doubtful spot, Read a full-size still of that moment (--at <t>s --cols 1 --width <take width>). The time stamp covers each still's top-left corner: check that
corner in the step 4 screenshots. Say in the hand-off which frames you read. A finding
stops here. Show the still and its timecode, then ask: crop it out of frame (scroll
position or viewport), hide it (export const hide = ['<selector>'] in the storyboard:
hidden from frame 0 on), or re-record with clean data. Hand off only after the user
decides; record their choice.A failed check means fix and re-run steps 8–9, not a new gate.
Hand-off with references/handoff.md. If a session file was made, offer to delete it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/plate-factoryMakes a faceless motion-graphics video from a brief, end to end: brief → script → spine
(narration or beat grid) → plate list → storyboard stills → plates → composite → music and
SFX → out/final.mp4. Runs stages 0–9 in order, each with a gate: the user approves the brief,
script, plate list, storyboard and mix; checks gate the rest. A thin orchestrator over
video-spine, video-plates, video-capture and video-assemble.
Triggers on: "make a video", "make an explainer video", "plate factory", "turn this brief into
a video", "motion-graphics video from this page", "faceless video", "/plate-factory".
/video-assembleAssembly for a plate-factory video: composites the rendered plates onto the spine at their
timecodes into a review MP4, checks that every plate cut lands in a silent gap, remuxes
music and SFX stems under the narration without re-encoding the picture, appends the brand
outro and exports out/final.mp4 (source size or 1080p60).
Triggers on: "assemble the video", "composite the plates", "make the review cut",
"add the music", "add sound effects", "music pass", "SFX pass", "export the final video",
"export 1080p60".
/video-captureCaptures a live web page in real time while a storyboard drives it (clicks, typing, scrolling,
slide changes), with captions and a visible cursor, and writes an MP4 plus a take manifest. Use
it for app demos, site tours and web slide decks, on its own or as the `live` plates of a
plate-factory video (timed to the spine's narration). No TTS here: the spine owns the voice.
Triggers on: "record this web app", "screen-capture the site", "capture a demo of", "make a
captioned demo", "record the deck", "capture the live plates", "tour this page".
/video-platesBuild and render motion and slide plates for a peak-media video — one HyperFrames composition per plates.json entry, rendered alone to renders/plates/<id>.mp4 at the planned duration, in the brand pack's tokens. Use for stages 4–6 of plate-factory (storyboard stills, pipeline test, build plates), to re-render one plate after a fix, or to rebrand every plate. Not for live (screen-captured) plates — that is video-capture./video-spineTurns a video brief into a timed spine: writes script.md sized to the runtime, gets it
cold-read and approved, then synthesizes narration (or a beat grid when there is no voice)
into spine/manifest.json or spine/beatgrid.json that every plate is timed to.
Stages 0–2 of the plate factory; usable on its own.
Triggers on: "write the narration", "script this video", "make the spine", "time the beats",
"narrate this brief", "voice-over for the explainer", "beat grid".
npx claudepluginhub peakflames/claude-plugins-peakflames --plugin peak-mediaOther plugins' skills for the same job