---
name: reels-editor
description: Edit a talking-head or voiceover video into a finished 9:16 Reel / TikTok / YouTube Short - word-timed captions of the speaker's exact words (one word at a time), explainer and payoff cards, optional B-roll cutaways, a hook title, phone safe zones and optional sound effects - rendered locally with Remotion and finished for web. Use when someone gives you a video and asks to make a Reel, Short, TikTok, vertical clip, or captioned social video from it.
---
# Reels editor
Turns a spoken video into an editorial-style vertical Reel: the speaker's own words pop up big at the top, one word at a time, on the frame they are said; full-screen cards explain the idea and land the payoff; a hook title is readable on the very first frame; nothing important sits under the phone UI. Everything is driven by one JSON file (`reel.json`) and rendered locally.
Files in this skill:
- `template/` - a small Remotion project. `src/ReelEngine.tsx` is the engine, `src/types.ts` holds config types, the default theme, safe zones and the cue resolver.
- `references/config.md` - every `reel.json` field. Read it before writing a config.
- `brand.example.json` - the neutral default theme; copy it into `reel.json` as `"brand"` and change colours/fonts to match the user's brand.
- `scripts/transcribe.sh` (Whisper word timestamps), `scripts/print-transcript.mjs` (readable transcript with times), `scripts/make-sfx.sh` (licence-free whoosh/pop), `scripts/finish.sh` (web delivery format).
## Requirements
Node 18+, ffmpeg/ffprobe, and `uv` (for `uvx`) or a local Whisper install. Remotion downloads its own headless Chrome on first render. Rendering is local only (`npx remotion render`).
## Rules that make it work
1. **Captions are the speaker's exact words.** Never paraphrase, summarise or invent headlines. Marks may only restyle a word or format it (numbers: "two hundred thousand" -> "200,000"). Fix Whisper's spelling of names and terms in `words.json` text, not by rewriting what was said.
2. **Never show anything before it is said.** Cue every card line, mark and B-roll on the word that introduces it (the noun: "time" in "limited time"). Don't show numbers, results or conclusions the speaker has not reached yet.
3. **One text layer at a time.** The engine enforces it: title, then caption stream; cards hide the big captions (or carry small ones with `captions: true`).
4. **One idea per Reel.** Start where the point starts (cut lead-ins like "so basically", "another thing is"), end as soon as it lands. Setup, substance, payoff. A section that doesn't stand alone doesn't become a Reel.
5. **Safe zones** (1080x1920): nothing important above y 250, below y 1470, or in the right 130 px between y 1050 and 1470. Built into the engine; check stills with `"showSafeZones": true`.
6. **The hook title is complete on frame 0** (it is the thumbnail). It is the one place allowed to name the topic before the speaker does. 2 to 6 words.
7. **Show the edit plan and get the user's approval before rendering.** Ask before posting anything anywhere; this skill only produces a file.
## Procedure
### 1. Set up
```bash
cp -r <skill-dir>/template ./my-reel && cd my-reel && npm install
cp /path/to/video.mp4 public/input.mp4
ffprobe -v error -select_streams v:0 -show_entries stream=width,height,r_frame_rate,duration -of default=nw=1 public/input.mp4
```
Ask the user (if not given): the goal of the Reel, where it should point (call to action: link in bio, newsletter, waitlist), and their brand colours/fonts. Without brand info use the neutral default.
### 2. Transcribe with word timestamps
```bash
<skill-dir>/scripts/transcribe.sh public/input.mp4 public/whisper
cp public/whisper/input.json public/words.json
node <skill-dir>/scripts/print-transcript.mjs public/words.json
```
On Apple Silicon this uses `mlx-whisper` (fast); elsewhere `uvx --from openai-whisper whisper <file> --word_timestamps True --output_format json`. Read the whole transcript. Correct misheard names and tool terms in `words.json` (`word` fields only).
### 3. Plan the cut
From the transcript, pick the strongest single point (30 s to 90 s is typical; length follows the point). Write `keep` ranges that remove fillers ("um", "you know"), retakes and false starts (keep the last, clean take), self-corrections (keep only the corrected version), lead-in words, and pauses over ~0.4 s. Leave ~0.05 s of air around each range so words aren't clipped. Make sure it reads as a complete thought.
### 4. Plan the graphics
- **Crop:** for 16:9 sources, a 9:16 window (`h` = source height, `w` = h x 9/16) centred on the speaker, with headroom above the head. Grab a frame (`ffmpeg -ss 5 -i public/input.mp4 -frames:v 1 frame.jpg`) and look at it to place `x`.
- **Title:** the hook, 2 to 6 words, one word or phrase highlighted (`bar` or `hi`). Decide whether it persists as a top label.
- **Marks:** 5 to 15 key words styled (`hi`, `bar`, `box`, `strike`), numbers as `cond`. Don't style everything.
- **Small stretches:** a few connecting lines on the chest for rhythm.
- **Cards:** usually one `explain` card for the core idea (lines build as each item is said), optionally one `jolt` for a turn ("the truth is..."), and a `payoff` card or the `cta` at the end. Cards last 2 to 6 s.
- **B-roll (optional):** only where a clip clearly fits; 2 to 4 s; footage the user owns or has a licence for (e.g. Pexels/Pixabay licences; check terms). Put files in `public/broll/`.
- **Sound (optional):** `<skill-dir>/scripts/make-sfx.sh public/sfx` then `"sfx": {"whoosh": "sfx/whoosh.wav", "pop": "sfx/pop.wav"}`; or the user's own files. Keep effects quiet under the voice.
### 5. Show the edit plan, get approval
Send a short table before building or rendering:
| Time | Exact words | What appears |
|---|---|---|
| 0:00 | (title) | "ads won't fix / **a bad offer**" |
| 0:04 | "the truth is" | jolt card: the / **truth** |
| ... | | |
Plus the list of cuts (time and exact words removed). Wait for the user's OK; apply their corrections.
### 6. Build and check stills
Write `reel.json` (see `references/config.md`; the template's `reel.json` is a worked example). Set `"showSafeZones": true` and check stills at the title (frame 0), each card, each B-roll and the end:
```bash
npx remotion still Reel out/check.png --props=reel.json --frame=0
```
Look at every still: text inside the safe zones, nothing over the face that matters, nothing before it is said, readable contrast. `npx remotion studio` gives a live preview. A `Cue not found` error means a phrase in the config isn't in the transcript (check spelling / use `after`).
### 7. Render and finish
Set `"showSafeZones": false`, then:
```bash
npx remotion render Reel out/raw.mp4 --props=reel.json --concurrency=2 # raise concurrency on machines with more RAM
<skill-dir>/scripts/finish.sh out/raw.mp4 out/reel.mp4
```
`finish.sh` converts to the standard web format (H.264, BT.709, limited range, yuv420p, tagged), normalises loudness to -14 LUFS and enables faststart. Verify: `ffprobe out/reel.mp4` (1080x1920) and `ffmpeg -i out/reel.mp4 -af ebur128 -f null - 2>&1 | grep -A1 Integrated` (about -14 LUFS). Watch the result once start to finish, then hand the file to the user.
### 8. Clean up
Remotion copies `public/` into a temporary bundle on every render; large sources can fill a small disk. Remove leftover `remotion-webpack-bundle-*` folders in your temp directory (by exact path) and `node_modules` when done.
## Customising
- Brand: override `brand.colors`, `brand.fonts` (any Google Fonts families) and `brand.googleFonts` in `reel.json`. Keep one accent colour; check it reads on the speaker's background.
- New card designs or illustrations: add a component in `src/ReelEngine.tsx` (e.g. a new `kind` in `CardView`) and cue it with the same `f(cue)` frames. Keep content between y 470 and 1470.
- 60 fps sources: set `"fps": 60`.
## Licences
- **Remotion has its own licence.** It is free for individuals and small companies; companies above a certain size need a paid Remotion company licence. Check https://www.remotion.dev/license before using this for a business.
- Fonts load from Google Fonts (open licences). Use B-roll, music and sound effects you have rights to; the generated `make-sfx.sh` sounds are made from scratch with ffmpeg.