/peak-media:video-spinefrom peak-media
Turns a video brief into a timed spine: writes script.md sized to runtime, gets cold-read approval, then synthesizes narration or beat grid into manifest.json or beatgrid.json.
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; scripts run unread.
You build the spine: the clock every plate hangs on. Narration sets the timing; with no voice, a beat grid carrying on-screen text does. Never generate narration anywhere else.
Scripts: ${CLAUDE_PLUGIN_ROOT}/skills/video-spine/scripts/ (spine.mjs, sample-voice.mjs).
Run node <script> --help for every flag. If a script says a dependency is missing, run
node "${CLAUDE_PLUGIN_ROOT}/scripts/setup.mjs" and retry.
Before writing a script, Read references/narration-writing.md (and references/voices.md when
picking a voice).
brief.md in the video project folder must give:
- **Runtime:** 20 s target (s, ms or min).## Beats heading, one list item per beat starting with its id in bold:
1. **hook** (motion) — what the beat says. Ids are lowercase letters, digits and dashes.Show the brief to the user and wait for a yes.
Size it first. Words ≈ (seconds − beats × 0.5 s padding) × wpm ÷ 60. Get the word budget
with spine --brief brief.md --budget --wpm <rate>. For a real voice, measure the rate with
sample-voice.mjs on the opening paragraph; without one, use 165. Write to the budget; never
write long and trim.
Write script.md next to the brief, in this format:
# <title> (optional; text before the first beat is ignored)
## hook
<Warm> Two tools, one promise: spec before code. They differ on who checks the work.
On screen: Who checks the work?
## compare
One paragraph, written for the ear. It may wrap over several lines.
Style: Slower and deliberate. (optional: overrides --style for this clip only)
## <beat-id> section per brief beat, in the brief's order (the spine rejects a mismatch).<Warm> stay in the text: they are performed, not read, and are not counted as words.On screen: is the beat's short visible text. It is required in practice for a beat grid
(without it the spine uses the paragraph's first sentence).<!-- comments --> are ignored.Cold read. Spawn a fresh agent with only the script text (no repo, no brief) playing the brief's audience. Ask it to mark each beat CLEAR or UNCLEAR, what it would do next, what confused it, and which lines sound like hype. Fix every UNCLEAR beat and read again.
Show the user the script and the cold-read result. Wait for approval.
node ${CLAUDE_PLUGIN_ROOT}/skills/video-spine/scripts/spine.mjs --brief brief.md [--voice <v> --style "<s>"]
PEAK_MEDIA_OPENROUTER_API_KEY, or the legacy TTS_OPENROUTER_API_KEY, is set, or --tts-model fake/tone for offline
tests): one clip per beat → spine/narration.wav, spine/manifest.json, and the clips copied
to spine/clips/. Each beat is --lead-ms + clip + --tail-ms (250 ms each by default, at
least 200), so beats are separated by ≥ 400 ms of silence and plate cuts can land in it. A
spine that runs short holds each beat up to --max-hold-ms (1 s) longer, never past the target.--no-narrate): spine/beatgrid.json with each beat's on-screen
text, durations weighted by the paragraph's words and snapped to whole beats at --bpm, and a
silent spine/narration.wav. No network calls. Pass --narrate to fail instead of falling back.PASS runtime … and the gate line GATE 2 spine: PASS — … (printed by the script; plate-factory relies on it). On runtime … outside ±10% (exit 1) the files
are still written; cut or add words in script.md and rerun. Don't stretch the spine by hand.check-cuts spine/narration.wav --cuts <each beat's startMs after the first> --min-silence-ms 400.The manifest (schema schemas/spine-manifest.v1.json) gives each beat's startMs and
durationMs; the plate list (stage 3) copies them. Keep script.md, spine/manifest.json and
spine/clips/ with the video: the tagged text plus the clips reproduce the audio exactly.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
video-production, script-writing, narration, beat-grid, spine
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./web2videoMakes a short MP4 of a web page or app from one sentence: asks only what it can't infer, writes
the script and storyboard, gets one approval, records with a visible cursor and captions (or
narration, or silent), checks the take, and hands over a file encoded for where it is going
(website, YouTube, archive). Handles pages behind a sign-in. A front door over video-capture
and video-spine; it never uploads or sends the video.
Triggers on: "make a video of this page", "record a demo of", "turn this deck into a video",
"screen recording of the app", "video tour of the dashboard", "/web2video".
npx claudepluginhub peakflames/claude-plugins-peakflames --plugin peak-mediaOther plugins' skills for the same job