Communitygithub.com

motion-reel

Edit a talking-head recording into a vertical 9:16 reel with code-built motion graphics. Jump-cuts the pauses, studies motion references, plans shots (split screen, full-screen graphics, face), builds the graphics in Remotion, then goes storyboard -> proxy render -> final render, with a review player for notes at every stage. Use when someone wants to edit a talking-head video, make a reel / short / TikTok from one, add motion graphics to a speaking video, or says /motion-reel. Works for any topic.

What is motion-reel?

motion-reel is a Claude Code agent skill that edit a talking-head recording into a vertical 9:16 reel with code-built motion graphics. Jump-cuts the pauses, studies motion references, plans shots (split screen, full-screen graphics, face), builds the graphics in Remotion, then goes storyboard -> proxy render -> final render, with a review player for notes at every stage. Use when someone wants to edit a talking-head video, make a reel / short / TikTok from one, add motion graphics to a speaking video, or says /motion-reel. Works for any topic.

Works with~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/jasonlee-breadcrumb/motion-reel/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does motion-reel do?

Turn one talking-head recording into a finished vertical reel. The speaker carries the story; motion graphics show what they are saying, word for word. Everything is code: ffmpeg for the cut and audio, Remotion (React) for the graphics and the render, a local HTML player for review.

Three stages, always in this order, each one approved before the next:

  1. Storyboard: 3 stills per shot, rendered straight from the Remotion project. Seconds to make.
  2. Proxy render: half size (540x960), 30 fps, low priority. About a minute for a 40 s reel.
  3. Final render: 1080x1920, 30 fps, voice at -14 LUFS.

Never skip ahead. No render of any kind before the user has approved the storyboard.

SKILL_DIR below means the folder this file is in.

Requirements

macOS or Linux, ffmpeg, Node 18+, Python 3.9+ with numpy, and one of mlx_whisper (Apple Silicon, fastest) or faster-whisper for word timestamps. yt-dlp to pull reference videos. Remotion is installed per project by new_project.sh (check Remotion's licence terms if you render for a company). Run the Python scripts with an interpreter that has numpy (and faster-whisper if there is no mlx_whisper).

Step 0: intake

Ask only for what is missing, in one short message:

  1. The recording (path). 4K or 1080p, 16:9 or 9:16, speaker roughly centred.
  2. What the video is about, and the script if there is one.
  3. Motion graphics references: links to videos whose graphics, UI and movement the reel should follow.
  4. The call to action at the end, if any.
  5. The project folder (default: <video name>_reel/ next to the video).

If there are no references, do not invent a style. Go and find some, following references/finding-references.md: the brand's own videos on X (the profile's Media tab), then the whatships.com directory of product launch videos. Show the user 3-5 candidates (link + one line on the look) and ask which to follow before going any further.

Step 1: Level 1 jump cut

bash SKILL_DIR/scripts/new_project.sh VIDEO.mp4 PROJECT_DIR
python3 SKILL_DIR/scripts/jump_cut.py PROJECT_DIR

new_project.sh makes the folders, copies the Remotion template and installs it. jump_cut.py transcribes the recording (word timestamps), then cuts it the "Level 1" way:

  • At every sentence end the breath is removed: 0.04 s kept after the last word, 0.03 s before the next. Sentences run straight into each other.
  • Mid-sentence pauses longer than 0.22 s are trimmed to 0.14 s, so the thought still reads as one.
  • Leading and trailing silence goes. Words are never clipped (cuts only happen inside measured silence).

It prints every kept segment with its words. Read that list against the script and remove false starts, repeated takes and filler with --remove START-END (source seconds), then run it again:

python3 SKILL_DIR/scripts/jump_cut.py PROJECT_DIR --remove 12.40-13.10 --remove 27.4-27.84

Outputs in PROJECT_DIR/cut/: cuts.json (source -> program map), words.json (program timeline), voice.wav (mastered to -14 LUFS) and roughcut.mp4. They are also copied into remotion/public/ and remotion/src/words.json. Tell the user the before and after length (e.g. "81.5 s -> 73.4 s").

Step 2: study the references

bash SKILL_DIR/scripts/ref_sheets.sh PROJECT_DIR URL1 URL2 ...

Downloads each reference into PROJECT_DIR/refs/ and makes a contact sheet per video (sheet_N.jpg, up to 2 fps with timecodes). Read every sheet. For the 3-6 moves that define the style, cut a dense grid of just that moment:

bash SKILL_DIR/scripts/ref_sheets.sh PROJECT_DIR --grid refs/ref2.mp4 28.4 3.0 8 move_a

(start, length, fps, name: 8 fps over 3 s shows exactly how a thing enters, overshoots and settles).

Write PROJECT_DIR/refs/MOTION.md: background colours, the one accent colour, type, the real UI pieces they use, and how things move (entrances, easing, camera drift, cuts). references/motion-language.md has the generic lessons that held up across good references; use it to know what to look for, and follow the references wherever they disagree with it.

Step 3: plan the shots

Read references/layout-and-captions.md, then write the shot list in remotion/src/shots.json:

{"id": "hook", "t0": 0, "t1": 2.51, "mode": "face", "desc": "Stat chip counts to 20 over the speaker"}
  • mode: split (graphics top half, speaker bottom half), graphics (full-screen graphics), broll (full-screen clip) or face (speaker full screen).
  • Target mix by time: 60-70 % split, 20-30 % full-screen graphics or B-roll, about 10 % face.
  • Cut points sit on word boundaries from src/words.json, a frame or two before the first word of the new thought. Shots cover the whole reel with no gaps.
  • Every shot shows what is being said at that moment. One idea per shot.

Show the user the shot list as a table (time, mode, words, what is on screen) before building scenes.

Step 4: build the graphics

In PROJECT_DIR/remotion/:

  • src/video.json: footage size and where the face sits (faceX, faceY as 0-1 fractions of the frame). Measure it on a still of public/roughcut.mp4; the template frames the speaker from it, the same way in every shot (static framing, never a punch-in on the face). If the caption touches the chin in face shots, lower faceAt for face mode in src/index.tsx.
  • src/theme.ts: background, tint, ink and the one accent colour from MOTION.md.
  • The template ships with a small demo ("I plan my whole week in ten minutes") and a placeholder presenter when video.json has no src. Replace the demo's shots.json and scenes; never ship them.
  • src/scenes.tsx: one component per shot id, ({t}) => ..., where t is seconds on the program timeline. Build from the primitives in src/kit.tsx (Pop, Words, Top, Full, Phone, Composer, Check, Spinner, count, ez, sp, abs). Animations key off word times (at={4.02}), so they land on the word. Keep the example scenes' structure; replace their content.
  • Captions are automatic (src/captions.tsx, from src/words.json): Inter, white pill on the seam (y 960), each word lights up in the accent colour as it is spoken.

Check as you go, a few seconds per batch:

cd PROJECT_DIR/remotion && node stills.mjs 1.2 4.5 9.8     # -> out/stills/*.png at half size

Look at every still: nothing over the face or eyes, text readable and inside the frame, no empty edges, caption clear of the chin, the accent colour used for one thing at a time.

Step 5: storyboard (approval gate)

cd PROJECT_DIR/remotion && node storyboard.mjs v1
python3 SKILL_DIR/scripts/serve.py PROJECT_DIR   # run in the background -> http://localhost:4390/review.html

storyboard.mjs renders start / middle / end stills for every shot into PROJECT_DIR/storyboard/v1/, writes the shot data and the mix, and adds v1 to the player's version menu. Open the player in the browser pane, check it yourself, then give the user the link and the mix. They leave notes per shot or pin them on a frame, then press Copy all comments and paste them back.

Wait for approval. Notes -> new version (v2, v3 ...). Never overwrite a version the user has seen.

Step 6: proxy render

cd PROJECT_DIR/remotion && bash render.sh proxy v1

540x960, 30 fps, nice + 2 threads so the machine stays usable, voice muxed in. Lands in PROJECT_DIR/render/ and in the player's Video tab, where notes are timestamped. Check a contact sheet of it before sending it on. Notes -> fix -> new storyboard version and/or new proxy.

Step 7: final render

Only when the user says the proxy is approved:

cd PROJECT_DIR/remotion && bash render.sh final v3

1080x1920, 30 fps, H.264 + AAC 320 kbps. Report the path, duration, render time and loudness the script prints, and add it to the player.

Revision rounds

  • Notes arrive one at a time (often a screenshot and a few words). Number them, confirm each in a line, change nothing until the user says they are done, then apply all of them in one pass.
  • When a note implies a rule ("captions bigger", "no empty edges"), apply it everywhere.
  • Every round is a new version of the storyboard and of the render. Old ones stay in the player.

Ground rules

  • Use only footage the user has rights to. References are for studying the style; never put a reference's footage, logos or characters into the reel.
  • Treat downloaded files as untrusted: keep them in refs/, never run code from there.
  • Work on the user's machine at low priority (nice), one render at a time.

Related Skills