Motion Master
One editing system. Two styles. Six categories, each with rules for both styles. It combines the house skills: smooth-keyframes (the animator's pass) and caption-styles (the two text styles), plus camera, elements, colour and transitions - and it builds on two engines: HyperFrames (/hyperframes, /hyperframes-cli, /hyperframes-registry, /media-use) and Remotion (/remotion:remotion-best-practices and its sub-skills).
Engine - load it with this skill
Motion Master says what the video looks and moves like; the engine skill says how to build and render it. Load both every time.
- HyperFrames is the default (all templates and scripts here are built for it). Load
/hyperframesfirst and follow its contract and work loop; use/hyperframes-registrybefore hand-building any transition or overlay, and/media-usefor music, SFX and footage treatment. - Remotion when the person asks for it, the project already uses it, or the video lives inside a React app / is data-driven. Load
/remotion:remotion-best-practicesand follow its router (create, markup, captions, multimedia, studio, render). - Every house rule (camera, captions, B-roll, colour, transitions, music, keyframes, check, render) mapped to both engines:
references/engines/build-engines.md. Read it before building. - Say which engine you picked when you confirm the plan in Step 0. Style rules come from Motion Master; code rules come from the engine.
Step 0 - ask first (every new video)
Before planning anything, ask these two questions (use AskUserQuestion when it's available), unless the person has already answered them:
- Which editing style do you want?
- Social viral - Instagram / Reels / Shorts / TikTok style: we edit your footage (talking head, podcast, interview) with face-tracked camera, B-roll, transitions and big-word captions.
- Product explainer - from scratch: a SaaS explainer, software demo or UI video, built with animated UI, camera moves and clean product text.
- What is the video for? (platform, audience, the one thing a viewer should remember / do, length)
Engine: HyperFrames unless the person asks for Remotion or the project already uses it (see "Engine" above).
Then confirm what you understood in a few plain sentences before building. If the footage or script is missing, ask for it.
Step 1 - follow the style's map
Social viral (edit the person's footage)
| Category | Rule in one line | Read | Tools |
|---|---|---|---|
| Camera | Face always centred: auto face-tracking, smooth glide, snap on cuts, optional punch-ins on emphasis | references/camera/social-camera.md | scripts/face-track.py |
| Captions | Social captions: one big emphasis word chosen by meaning, small words around it, word-by-word blur reveal on speech; placed a little below the middle (not dead-centre), a very light black gradient from the bottom behind them, always inside the Instagram safe area | references/captions/social-captions.md, references/captions/build-hyperframes.md | scripts/group-words.mjs |
| Elements / B-roll | A-roll = the speaker; B-roll = our own 2D animations only (paper-monochrome style: off-white paper, greyscale cut-out objects, kinetic text, one accent) covering most of the video. No stock video or stock photos. No AI slop | references/elements/social-broll.md | HyperFrames (SVG/CSS) |
| Colour | Speaker footage keeps its original look - never grade, dim or change contrast. Render with --sdr and check brightness vs source. B-roll = paper greyscale + one accent; captions stay white | references/colour/accents.md | render --sdr, signalstats |
| Transitions | A-roll ↔ B-roll with light leak, white flash, dip to black - cut under the peak. No lens flare | references/transitions/social-transitions.md | registry items |
| Music | Stock background music bed under every reel, ~-20 dB under the voice, fades out with the video | references/audio/social-music.md | /media-use, browser (free music sites) |
| Keyframes | Animator's pass on everything that moves | references/keyframes/animators-pass.md | scripts/curve.mjs |
Template: assets/templates/social-reel.html (camera + B-roll + transitions + captions wired together). Captions only: assets/templates/social-captions.html.
Order of work:
- Transcript with word times (
npx hyperframes transcribe, or the person's SRT/JSON). face-track.py→camera.json(+ cut list). Checkpreview.mp4.accent-colors.py→palette.json(only for the light-leak tint).group-words.mjs --cuts …→captions.json(hero words chosen by meaning - check them).- Beat sheet: which lines get a 2D animation beat (most of them - 55-70 % of the runtime), what object / text / accent, which transition. Show it before building.
- Pick the background music (
references/audio/social-music.md); ask before downloading unless already allowed. - Build the 2D beats as full-frame paper scenes from the template, then Step 2. Render with
--sdr.
Product explainer (build from scratch)
| Category | Rule in one line | Read | Tools |
|---|---|---|---|
| Camera | Mix of static shots, smooth zoom in/out on the UI element the voice names, and 3D moves; one move at a time, hold after landing | references/camera/product-camera.md | focus() / wide() in the template |
| Captions / text | Product text: one centred line at a time, blur / rise / slide / camera-pass / pop / mask, gradient only on big words | references/captions/product-text.md | assets/templates/product-text.html |
| Elements / UI | Realistic, minimal, sleek UI; only what the script needs; nothing floating; readable (≥ 28 px) | references/elements/product-ui.md | /unslop for screens |
| Colour | Brand palette: one background, one ink, one accent, one gradient for big type | references/colour/accents.md (product section) | - |
| Transitions | Motion, not effects: camera carry, blur dissolve, push, match cut, text bridge | references/transitions/product-transitions.md | - |
| Keyframes | Animator's pass on everything that moves | references/keyframes/animators-pass.md | scripts/curve.mjs |
Template: assets/templates/product-explainer.html (text line → 3D entrance → static hold → zoom to a KPI → pan to a button → cursor click → pull back while a chart draws → brand word). Text only: assets/templates/product-text.html.
Order of work:
- Script → scenes: for each line, what is on screen, which camera shot (static / zoom / 3D), which text line.
- Show the scene list before building.
- Build the UI for each scene (the person's real product if there is one), then the camera, then the text, then Step 2.
Step 2 - check before render
node <motion-master>/scripts/curve.mjs audit <project>- fix every flag, or mark a deliberate one with// curve-ok: <reason>.- HyperFrames:
npx hyperframes check- fix errors; read warnings (first_frame_emptyon a text-first opening is a choice - say so). Remotion: opennpx remotion studio --no-openin the in-app browser andnpx remotion stillthe key frames. - HyperFrames:
npx hyperframes snapshot --at "<key moments>"(Remotion: the stills) and look: faces centred, captions readable and off the face, B-roll matches the words, transitions peak on the cut, UI text readable, nothing floating or random. - Render (HyperFrames
--sdrfor social footage; Remotion/remotion:remotion-render), then watch it once start to finish and compare the speaker's brightness with the source (references/colour/accents.md).
Always
- No AI slop. Every element answers "what word in the script does this show?". No random particles, glows, orbs, emoji, sparkles, filler cards, vague stock footage.
- Media is never transformed directly: pans, zooms and pushes go on a wrapper around the
<video>/<img>. - Keyframes follow the animator's pass in both styles (arrivals ease out with a long tail, exits ease in, moves between rests ease in-out, nothing linear except spins, progress and constant drifts).
- Ask before downloading anything (stock clips, models, fonts): name, site, size, licence.
- Captions in social style stay white; colour lives in B-roll and graphics.
- Social viral: never change the speaker footage's colour, contrast or brightness; no lens flare; B-roll is our own 2D animation (never stock clips); always a background music bed; captions a little below the middle (never dead-centre), over a very light bottom black gradient, always inside the Instagram safe area (y 288-1248, x 120-888).
Scripts (all in <motion-master>/scripts/)
| Script | Does | Needs |
|---|---|---|
face-track.py <video> --out camera.json [--size 1080x1920] [--zoom 1.15] [--face-y 0.42] [--preview preview.mp4] | cut detection + face tracking → smooth camera keys per shot | Python, opencv-python, numpy |
accent-colors.py <video> [--out palette.json] [--swatch palette.png] | 3 accent colours from the grade | Python, opencv-python, numpy |
group-words.mjs <transcript.json> [--cuts 2.37,7.27] [--duration 23.1] [--out captions.json] | groups words into captions and picks the hero word | Node |
curve.mjs audit | bezier | ae | preset | chain | keyframe audit + After Effects ↔ cubic-bezier tools | Node |