/peak-media:plate-factoryfrom peak-media
Orchestrates faceless motion-graphics video production from brief to final MP4 across 10 stages with user approval gates at key checkpoints.
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 run a video project through ten stages. The spine (narration, or a beat grid with no
voice) sets the clock; each beat gets one plate (motion, slide or live) rendered on its
own; assembly puts the plates on the spine. Stills are approved before any animation is written,
and audio never forces a re-render.
Every stage ends with its gate line, and the run is checked for all ten.
spine.mjs → GATE 2 spine: …; render-plate.mjs plates.json <first id> --pipeline-test → GATE 5 pipeline: …; gate.mjs build . → GATE 6 build: …;
assemble.mjs . → GATE 7 composite: …. Never type or echo these four lines yourself; on
FAIL, fix and rerun the command.GATE 3 plates: APPROVED — plates.json (3 plates, retimed from spine/manifest.json). A user
gate's APPROVED line goes right after the user's answer, before the next command. While you
wait for an answer, print no gate line (REJECTED is only for an answer that turns it down).APPROVED line, then start the next stage;plates.json, re-run the storyboard
(--rescaffold), show it and ask again; no APPROVED until the user approves the new one;APPROVED until they approve what they heard.The user's wording wins. Keep the brief's wording in the script. Never rewrite the user's lines on your own or apply cold-read findings before the user picks: present them as a batch of proposed changes (original line → proposed line) and apply only the ones the user chooses.
Show what the user approves. Before each user gate's AskUserQuestion, put the thing being
approved in the chat, with absolute paths so the user can open files: gate 0 the whole brief.md,
gate 1 the whole script.md and the cold-read verdict per beat, gate 3 the plate table, gate 4
the storyboard path and one line per plate, gate 8 the file to listen to and its measured levels.
references/stages.md says exactly what for each.
The plugin root is ${CLAUDE_PLUGIN_ROOT}. Wherever a reference file writes PM/ or
${CLAUDE_PLUGIN_ROOT}/, use this path, quoted, in the command.
This skill only orders the work. Each stage calls the skill that owns it. Read that skill's SKILL.md before its first stage:
| Stages | Skill | Entry points |
|---|---|---|
| 0–2 | ${CLAUDE_PLUGIN_ROOT}/skills/video-spine/SKILL.md | spine.mjs, sample-voice.mjs |
| 3, 6, 8 | this skill | skills/plate-factory/scripts/retime-plates.mjs, scripts/validate.mjs, skills/plate-factory/scripts/gate.mjs, skills/plate-factory/scripts/audio-options.mjs |
4–6 (motion, slide) | ${CLAUDE_PLUGIN_ROOT}/skills/video-plates/SKILL.md | render-plate.mjs |
6 (live) | ${CLAUDE_PLUGIN_ROOT}/skills/video-capture/SKILL.md | capture.mjs --plates plates.json --plate <id> (no --preset); the storyboard calls beat('<plate beat>', fn) once |
| 7–9 | ${CLAUDE_PLUGIN_ROOT}/skills/video-assemble/SKILL.md | assemble.mjs, remux-audio.mjs |
| review | — | lib/verify/contact-sheet.mjs, lib/verify/check-cuts.mjs, lib/verify/probe-spec.mjs |
Run any script with --help for its flags. If one reports a missing dependency, run
node "${CLAUDE_PLUGIN_ROOT}/scripts/setup.mjs" (it needs the network: ask first) and retry.
Before stage 0, Read ${CLAUDE_PLUGIN_ROOT}/skills/plate-factory/references/stages.md. It
has each stage's steps, commands and gate-line format. Read
${CLAUDE_PLUGIN_ROOT}/skills/plate-factory/references/review-rubric.md before stage 4.
| # | Stage | Output | Gate | Gate line (required; 2, 5, 6, 7 printed by the script) |
|---|---|---|---|---|
| 0 | Brief | brief.md | user confirms | GATE 0 brief: APPROVED — brief.md |
| 1 | Script | script.md | cold-read agent, then user | GATE 1 script: APPROVED — script.md (…) |
| 2 | Spine | spine/manifest.json or beatgrid.json | runtime within ±10% | GATE 2 spine: PASS — spine/manifest.json <ms> ms (target <ms> ±10%) (spine.mjs) |
| 3 | Plate list | plates.json, retimed from the spine | user confirms | GATE 3 plates: APPROVED — plates.json … |
| 4 | Storyboard | review/storyboard.jpg | user approves before any animation | GATE 4 storyboard: APPROVED — review/storyboard.jpg |
| 5 | Pipeline test | plate 1 rendered alone | renders cleanly | GATE 5 pipeline: PASS — renders/plates/<id>.mp4 (<ms> ms, lint clean) (render-plate --pipeline-test) |
| 6 | Build plates | renders/plates/<id>.mp4 each | ≤ 3 self-review rounds per plate, then a reviewer agent | GATE 6 build: PASS — <n> plates; reviewer: <d> defects, <f> fixed (gate.mjs build) |
| 7 | Composite | review/review.mp4 | every cut in a silent gap | GATE 7 composite: PASS — review/review.mp4 (<k> cuts in ≥300 ms silence) (assemble.mjs) |
| 8 | Music, then SFX | review/review-mix.mp4 | user listens | GATE 8 audio: APPROVED — review/review-mix.mp4 … |
| 9 | Export | out/final.mp4 | spec check + final contact sheet | GATE 9 export: PASS — out/final.mp4 … |
references/stages.md, only once the gate holds. A failed check prints FAIL (from the script
for 2, 5, 6, 7); a refusal by the user gets a REJECTED line; fix and repeat the stage.
Going back to an earlier stage repeats every stage after it.AskUserQuestion and wait for the answer. Never
approve on the user's behalf. Mechanical gates (2, 5, 6, 7, 9) report the check's result.retime-plates plates.json;
never type startMs/durationMs by hand. One plate per beat.GATE 4 storyboard: APPROVED, don't
Write or Edit any plates/<id>/index.html and don't run render-plate without --storyboard.
Storyboard changes go into plates.json (text, intent, kind, assets), then
render-plate plates.json --all --storyboard --rescaffold. Re-running the storyboard later
reopens gate 4: no plate writes until the user approves again.vendor/hyperframes/hyperframes/references/runtimes.md before the first plate, as
listed in skills/video-plates/references/vendored-map.md (stage 4 does this).script.md and the spine, never
to a render.references/stages.md). Never
put music or keys in it that the user didn't give you. At stage 8 offer only the brand pack's
tracks and SFX (audio-options.mjs) or a folder the user names; never search the disk for audio.What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/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".
/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