---
name: talking-head-reel-editor
description: Edit raw talking-head footage into a finished vertical reel (Instagram Reels, YouTube Shorts, TikTok) with Claude driving Palmier Pro over MCP for the cut and HyperFrames for motion graphics. Use when someone hands over a phone recording and says "edit my video", "make this a reel" or "cut this for Shorts".
---

# Talking-Head Reel Editor

Give this file a raw talking-head recording and get back a finished 9:16 reel: clean cut, sped up, denoised, captioned, with a motion-designed layout, real screens for every point, a call to action, and a QA report.

**Use it as a prompt:** paste this whole file into a coding agent that can run a terminal and has the Palmier Pro MCP connected (Claude Code, Claude Desktop, Codex, Cursor), then add one line: `Edit my video: /path/to/recording.mov`.
**Use it as a Claude Code skill:** save it as `~/.claude/skills/talking-head-reel-editor/SKILL.md`, restart, and say `edit my video /path/to/recording.mov`.

---

## 0. Inputs and defaults

Required: one recording (one continuous take is fine; retakes inside it are expected).

Ask only for what you cannot infer, in one message, before the first cut:
1. **Music:** which track from their library (never generate or pick music for them). "No music" is a valid answer.
2. **Caption language:** the spoken language, or English translation.
3. **Brand:** accent color and two fonts (one bold sans, one italic serif). Defaults below.

| Setting | Default |
|---|---|
| Canvas | 1080 x 1920, 30 fps |
| Speed | 1.2x on the talking head |
| Pauses | every pause of 0.2 s or more cut down to 0.07 s pads |
| Fonts | Poppins Bold (text) + Playfair Display Italic (highlight words), both Google Fonts, OFL |
| Accent | yellow #FFD23F for highlight words; ink #161513; paper #EFE9DE |
| Music | under 10% of the voice level |
| Loudness | -14 LUFS integrated, -1.5 dBTP |
| CTA | "Comment KEYWORD" box that types the keyword |

Deliverables: `renders/final.mp4` (1080p), `renders/final-phone.mp4` (720p, under 30 MB), the edit open in Palmier Pro, and a short report (section 10).

## 1. Toolchain

- **Palmier Pro** (macOS app, palmier.io). Free and open source (GPL-3.0, github.com/palmier-io/palmier-pro); paid plans only add AI generation credits. While it is open it runs a local MCP server. Connect once:
  - Claude Desktop: in Palmier Pro open Help > MCP Instructions > Install in Claude Desktop.
  - Claude Code: `claude mcp add --transport http palmier-pro http://127.0.0.1:19789/mcp`
  - Tools used: `manage_project`, `import_media`, `inspect_media` (transcript with word timestamps), `add_clips`, `edit_speed`, `ripple_delete_ranges`, `denoise_audio`, `get_timeline`, `export_project`.
- **HyperFrames** (`npx hyperframes`, open-source HTML-to-video renderer). One HTML composition, one paused GSAP timeline, `data-start` / `data-duration` on media. Commands: `check`, `snapshot`, `preview --background`, `render -q draft`, `render -q delivery`.
- **ffmpeg** and **Python** (numpy, scipy, Pillow) for measuring audio and frames.
- A face detector for the caption check: macOS Vision (`VNDetectFaceRectanglesRequest`, a 15-line Swift script) or OpenCV's FaceDetectorYN.

## 2. Ingest and transcribe

1. Create a Palmier project at 9:16, 30 fps. Import the recording.
2. Transcribe with `inspect_media` and `wordTimestamps: true`. **Pass the spoken language explicitly** (for example `ml`, `hi`, `ta`). A mismatched-language model returns confident garbage.
3. Use word **timestamps** for timing, never trust word **content** from a weak transcript for cut decisions. Read the transcript as prose before cutting.
4. Make a contact sheet (one frame every 4 s) to see framing, light, and whether the speaker leans in and out.
5. iPhone footage is usually HLG HDR. Export from the editor (it tone-maps to SDR), and check frame 0: some editors leave it pale. Replace frame 0 with frame 1 if it is brighter.

## 3. Cut

**Retakes: keep the LAST version.** Speakers repeat a line and change one word ("use it like a..." then "run it like a..."). Scan for the same two opening words again within 12 s and for one transcript word stretched over 1.2 s (a hidden retake). List every candidate with its timestamps. Cut only the ones you can confirm with a second signal (audio energy, a visible restart). If unsure, keep the footage and flag it. A lost sentence is worse than a kept stumble.

**Pauses:** find them in the audio, not the transcript (transcripts stretch words across silences).
```python
# RMS in 20 ms windows every 5 ms; silence = below -45 dBFS (raise it if the room is noisy)
# pause >= 0.20 s  ->  remove [start + 0.07, end - 0.07]
# keep the first onset - 0.07 and the final trailing pause (the CTA needs a beat)
```
Pass every range to `ripple_delete_ranges` in one call (clip mode, units seconds). Then re-read the timeline and check:
- no gaps, no clip shorter than 8 frames,
- no join with speech energy on both sides (a mid-word cut),
- the speaker's own sign-off ("okay, stopping the camera") and long pauses before the CTA keyword are cut.

**Look-downs:** face crops at 2 fps across the cut. Between sentences, cut them. Mid-sentence and uncuttable, cover them with a full-screen graphic.

## 4. Speed

Set the talking head to 1.2x with the editor's speed tool (`edit_speed`, uniform). It keeps pitch. **Do not rebuild the sped-up voice with ffmpeg `atempo`**: on reverberant or outdoor takes it sounds echoey and doubled. Take the voice from the editor's own export instead.

## 5. Voice and mix

1. Export the cut timeline's audio (the editor's 1.2x voice).
2. Denoise it with `denoise_audio` at **strength 1.0** (fully processed, no dry blend), one clip per call, on a scratch timeline. Export, extract the audio.
3. **Check sync at many points, not one.** Some exports drift (we measured 0 ms at the start and 80 ms late at the end of a 99 s clip). Band-pass both tracks to 300 to 3000 Hz, cross-correlate 1 s windows every 0.5 s, median-smooth the lag curve and warp the denoised track back. After the warp: median lag under 1 ms, 95% within 10 ms.
4. Voice chain: high-pass 85 Hz, -2 dB at 280 Hz, +2 dB at 3.8 kHz, gentle expander below -52 dBFS, compressor 3:1 at -24 dBFS, peaks clamped to speech RMS + 8 dB.
5. Music: the track they chose, at -22 dB plus a further dip under speech. Target: music about 5% of the voice level under speech, 7% in gaps. Measure it, do not guess.
6. Sound effects: **one** sound, used only on real on-screen actions (a cursor click, a button press, the CTA pop). No whoosh on every cut. Duck effects about 8 dB under speech.
7. Two-pass `loudnorm` to -14 LUFS / -1.5 dBTP, linear mode (use LRA=20 so it does not fall back to dynamic).

## 6. Plan the visuals (one graphic per point)

Write a beat list from the transcript: each sentence or idea gets one visual job.
| What they say | What appears |
|---|---|
| A product or site name | the real site, captured (full-page screenshot), scrolled or punched in, with a highlight on the exact line |
| A list ("B-roll, music, video") | numbered tiles that pop in on each word |
| Steps ("go to the site, open settings, click install") | a checklist that ticks as each step is said; a cursor that clicks the real button |
| A number or price | a counter (for example $49 -> $0) |
| "My last video..." | the actual previous video, playing, in a phone-shaped card |
| How it works under the hood | a 3D exploded layer stack of the real app screenshot |
| The ask | a comment box that types the keyword with a blinking cursor |

**Fact-check before it goes on screen.** Open the official site and pricing page. If the speaker's claim does not match the site (a price, "open source", "unlimited"), do not show the claim as a graphic, and tell them before delivery so they can re-record the line.

**Real things, never mockups:** real screenshots, real commands, real buttons. Capture pages at a narrow viewport with 1.5x zoom so text is readable on a phone.

## 7. Choreograph the frame (the part that makes it look edited)

The face footage is one element that **morphs between layouts** instead of hard-cutting:
- **Intro:** a dot pops, the footage grows out of it to full frame (0.5 s, expo.out).
- **FULL:** full-bleed face for hooks, opinions and the CTA.
- **BANNER:** the face shrinks into a rounded top banner (about y 110 to 1010) while a graphic builds underneath (about y 1040 to 1720). Morph with clip-path and a transform on the inner video, 0.6 s, expo.inOut. Never animate width/height/top.
- A slow push (1.0 to 1.08 over 3 to 4 s) on FULL stretches; reframe so the face never hits the banner edge.
- Editorial canvas behind everything: warm paper, hairline grid, tiny uppercase meta labels ("A-ROLL · TAKE 01", a running frame counter), numbered section labels ("05 · HOW TO INSTALL").
- Change the composition every 1 to 3 seconds. Hold a graphic only while it is being talked about.

**Measure the face, do not assume it.** Detect the face box every 0.25 s on the cut footage (macOS Vision or OpenCV), extend it 40% upward for hair and 10% down for the beard, and frame layouts from those numbers. Speakers who lean toward the camera sit much lower in the frame than you expect.

## 8. Captions

- **3 to 5 words per scene**, varying. Stack them on 2 or 3 lines.
- Plain lines alternate the two fonts (italic serif, then bold sans). The highlighted word or phrase gets its own line in the accent color, **bigger** (about 2x), sized to fit the width.
- White with a soft shadow on footage. On light cards, the highlight becomes a marker swipe behind dark text (yellow text on cream is unreadable).
- Words appear on their spoken time, 0.3 s pop, highlight words with a little overshoot.
- **Never on the face.** FULL layout: below the chin. BANNER layout: on the strip between the chin and the banner edge, scaled down to fit. Measure every scene against the face boxes (section 7) and fix any overlap.
- Every spoken word gets a caption; no gap of 0.25 s or more while they speak. A caption that the CTA box already says can be dropped.
- If the speech is not English, captions in the spoken script need a font that has the glyphs (for Malayalam: Anek Malayalam). Latin words inside them still use the brand fonts. List every caption for the speaker to proofread.

## 9. Accents (stickers, mascot, emoji-style cutouts)

Optional. If the creator has a sticker set (cutouts of themselves in poses):
- Remove the background but keep the white sticker border (flood fill from the edges on the paper color).
- About one sticker every 7 seconds, on the beats that carry emotion (the hook, a price, "it's free", a secret, a win).
- **Fully in frame, left or right of the center line, on top of everything.** Never on the face, never on captions, never over the element being explained. If there is no room, slide that card aside (scale 0.62 toward the far side) while the sticker is up.
- A short speech bubble beside its head ("I didn't touch it!", "here!").
- Slide in from its own side, hold 2 to 3 s, slide out. No pop-and-vanish, no wobble.
- Never let a sticker replace the speaker's face. The real face stays the narrator.

## 10. Review loop and QA (do this before saying "done")

**Review cycle:** apply a change, run `npx hyperframes check`, snapshot the moments you changed, then let them scrub the live preview (`preview --background`). Heavy compositions stutter in a live preview, and a stutter makes animations look like flashes, so for timing feedback send a draft render (`render -q draft`, under a minute for 60 s). Render full quality only after they approve.

**QA checklist, on the actual export:**
1. Frame count matches the timeline; first frame not pale.
2. Loudness -14 LUFS, true peak at or below -1.5 dBTP.
3. Export audio equals the mix (subtract them: about -40 dB residual), and the offset is 0 ms.
4. Face vs caption check: zero overlaps.
5. Caption coverage: no speech without a caption for 0.25 s or more.
6. `hyperframes check`: no errors, no text overlaps (fix label hand-offs so the old one leaves before the new one arrives).
7. One-frame-per-second contact sheet of the whole export: every graphic, sticker and caption appears where planned; nothing renders black.
8. The CTA exists (check the data, not just the code; a broken edit can silently drop it).
9. Retake list confirmed with the speaker.

**Report:** what was cut (retakes with timestamps), facts that did not match the official site, captions to proofread, anything unresolved.

## 11. Known traps

- **A video inside a rotated or transformed card can render offset or black.** Give screen videos `position: absolute; top: 0; left: 0` and a unique `id`.
- **Time-stretch echo:** ffmpeg `atempo` on reverberant speech. Use the editor's own speed export.
- **Denoise drift:** check sync at many points; warp it back.
- **Captions on the mouth** in a banner layout: the speaker's chin is lower than you think. Measure.
- **Stickers peeking from the frame edge** read as missing. Keep them fully inside.
- **Live preview stutter** looks like flashing animations. Judge timing on a draft render.
- **Yellow on light backgrounds** disappears. Use a marker swipe behind dark text.
- **Instagram's SDR copy of an HDR upload** can come back grey (whites at about 55%). If you reuse an old post, restore levels with a curve before using it.
