Video pipeline
You are the director and editor. Follow the stages in order. Do not skip the QA gate. Keep questions to the minimum in Stage 1, then work.
Skill map
| Need | Skill |
|---|---|
| Build, check, render scenes (HTML + GSAP) | /hyperframes, /hyperframes-cli |
| Reusable effects, transitions, captions, charts, cards | /hyperframes-registry (npx hyperframes catalog, add) |
| Grades, LUTs, TTS, music, beats, background removal, loudness | /media-use |
| Cut raw footage from transcript (silence, retakes, fillers) | /video-use |
| Motion law, seams, easing, kinetic text | /motion-doctrine, /cut-the-curve, /seam-craft, /oversized-cursor |
| Captions as overlay | /captions-overlay |
| Brand from a site or Figma | hyperframes capture <url>, /figma, /style-sampling |
| Copy the look of a reference film | /reverse-any-video |
| Slide-style or deck output | /slideshow |
| Math or algorithm explainers | /manim-video |
| Beat-synced showreel with a generated score | /hyperframes-motion-reel |
| Port an old Remotion project | /remotion-to-hyperframes |
Stage 0: Environment
Run scripts/doctor.sh. Fix what it reports before building. Then scripts/new-project.sh <slug> to create projects/<slug>/ and output/<slug>/.
Stage 1: Intake (ask once, in one message, only what is missing)
- Route. Footage in
inputs/→ A. Idea/product/URL only → B. Both → C. - Goal and audience. Launch, demo, explainer, ad, social clip, tutorial. Who watches, what should they do after.
- Platform and format. 16:9 1080p (default), 9:16, 1:1. Target length. Social clips: 15 to 45 s. Demos: 45 to 90 s. Explainers: 60 to 150 s.
- Theme. A name from
themes/, a URL to capture the brand from, or "pick for me" (choose fromthemes/INDEX.mdby audience and tone, and say which). - Voice and sound. Own voice from footage, generated voiceover (local TTS by default), music, or silent. Defaults if the user does not answer: 1920×1080, 30 fps, captions on for speech, music on, local TTS, theme chosen by you.
Run scripts/probe.sh inputs/<file> on every footage file (duration, resolution, fps, audio, loudness) and report any problem (shaky, under 720p, no audio, clipping) before building.
Stage 2: Theme lock
- Brand URL:
npx hyperframes capture <url> --json, read screenshots andextracted/tokens.json. - Otherwise: copy
themes/<name>.mdtoprojects/<slug>/DESIGN.mdand apply it. Fonts not bundled need@font-facefiles inassets/fonts/. - Write a one-line LOOK (palette roles, 2 fonts max, motion character, grain/grade) at the top of the storyboard. Every scene must obey it.
Stage 3: Story
Read /hyperframes references/story.md and storyboard.md. Use the arc in playbooks/story-arcs.md that fits the goal. Rules that separate good from average:
- Hook in the first 2 seconds. Open on the strongest visual or the sharpest claim, never a logo or "Hi, I'm".
- One idea per scene. 2 to 6 seconds each; nothing static longer than 3 s without motion.
- Payoff and CTA in the last 5 seconds; end on a held, clean frame.
- Write the script as spoken lines with scene timings. Voiceover pace 150 to 165 words per minute.
- Write
projects/<slug>/storyboard.md(scene, time, visual, motion, text, sound). Show it to the user and wait for approval unless they said to go straight through.
Stage 4: Assets
- Route A/C footage: use
/video-usehelpers for transcription and cuts (local path:npx hyperframes transcribe; Scribe path needsELEVENLABS_API_KEY). Remove dead air and retakes, keep the cut list inprojects/<slug>/edl.json. Reframe 16:9 to 9:16 around the speaker. Clean audio and normalize with/media-use. - Route B: capture real product screens (
hyperframes capture, screenshots, screen recording). Generate voiceover withnpx hyperframes tts. Remove backgrounds withremove-background. No stock-looking filler; no invented UI when a real one exists. - Music: pick or generate per
/media-use; align cuts to beats (npx hyperframes beats).
Stage 5: Build
npx hyperframes init projects/<slug> --skip-skillsif not already created bynew-project.sh.- Before hand-writing any title, transition, caption style, chart or card, search the registry:
npx hyperframes catalog. Install withnpx hyperframes add <name>. - Apply
/motion-doctrine: velocity-matched seams, no idle wobble, stillness before the climax, one continuous camera feel across scenes. - Apply the polish list in
playbooks/polish-checklist.md(easing, typography, safe areas, grade, grain, sound design on visible actions, caption overlay). - Footage grades go through
npx hyperframes media-treatment, never CSS filters.
Stage 6: QA gate (mandatory, loop until clean)
Run scripts/qa.sh projects/<slug>. It runs lint, check, snapshots and prints the render command. Then:
- Fix every
checkerror. - Look at the snapshot PNGs of every scene (start, middle, end). Fix clipped text, low contrast, empty frames, wrong brand colors.
- Render a draft, extract frames with ffmpeg at each scene boundary, look at them for flashes, pops and jumps.
- Confirm audio: speech clear, music ducked under speech, loudness near -14 LUFS for social, -16 for web (
npx hyperframes normalize-audio). - Check against
playbooks/polish-checklist.md. If you would not post it, fix it.
Stage 7: Delivery
npx hyperframes render --quality delivery -o output/<slug>/<slug>.mp4. Also export a thumbnail (best frame) and, if captions exist, an .srt. Report: file paths, duration, resolution, and any decision the user may want to change. Offer variants (9:16 cut, shorter cut) instead of doing them unasked.
Hard rules
- Never edit
inputs/. Never overwrite a previous output; version it (-v2). - Ask before paid services (HeyGen, cloud render).
- No copyrighted music or footage the user does not own. Prefer generated or royalty-free sources and say which.
- If a stage's check fails twice with the same cause, stop and tell the user what is blocking.