Ask your agent
What it does
This skill turns an X post or AI-news topic into a 9:16 reel with real receipts, a HeyGen avatar, bold Montserrat captions, and the Receipts visual system. It handles the script, sourcing, HyperFrames build, preview, QA, and final mastering without publishing the video.
SKILL.md
---
name: receipts-reel
description: Turn an X post or an AI-news topic into a finished 9:16 Instagram/TikTok/Shorts news reel in the "Receipts" style. The look is a talking-avatar card in the bottom half and real visuals on top, with real X post screenshots floating in 3D, their videos playing inside, a black dot-grid background, one-family Montserrat type with lime key words, and drawn red/green highlight boxes. It includes the script formula (hook → numbered list with bridges → "comment WORD" CTA) and a full HyperFrames build, QA and mastering pipeline. Use it when the user says "make a reel" or "receipts reel", or gives an X post URL or AI-news topic for a reel.
---
# Receipts Reel
A news reel where every claim on screen is backed by a real **receipt**: the actual post, page or official footage, highlighted on the exact phrase. This is a house style, refined over ~30 versions. **Don't redesign it. Swap the story and keep the system.**
**What you need:**
- [HyperFrames](https://hyperframes.dev) (HTML → video) and Node 18+.
- Python 3.11 and ffmpeg.
- A HeyGen avatar video for the voice and face. A temporary macOS `say` VO is used until you have one.
- Your own licensed music in `$MUSIC_DIR` and your own SFX in `assets/sfx/`.
- No music or SFX ship with the skill.
- `kit/tools/openverse_sfx.py` fetches CC0 sounds and levels them.
- macOS for the local OCR and cut-out tools (`kit/tools/ocr.swift`, `kit/cut/`). Everything else is cross-platform.
The HyperFrames skills (`hyperframes-core`, `hyperframes-animation`, `hyperframes-cli`, `hyperframes-audio`) are the authority on framework contracts. This skill decides **style, script and structure**.
## Read first
- `kit/examples/design.md`: the design truth. Copy it into every project unchanged.
- `references/editor-feedback.md`: one font family, levelled SFX, avatar timing, the hook, and the "AI design tells" don't-list.
- `references/script-style.md`: the script formula.
- `references/receipts-sourcing.md`: how to find the real footage for every beat.
- `references/visual-system.md`, `references/motion-graphics.md`, `references/reference-techniques.md`: layouts, motion grammar, zooms and splits.
- `references/gotchas.md`: hard-won HyperFrames fixes.
- `references/music.md`: bed level and licensing.
Some references mention older generators and archived example projects. Those aren't shipped. **`kit/examples/gen-v11.mjs` (+ `base-v11.css`) is the base for every reel.**
## The style in one screen
- **First 3 seconds:**
- Frame 1 is full-bleed 9:16 moving footage of the most shocking real moment, already mid-action, with the hook headline on screen from frame 1.
- The first sentence is ≤ 10 words, and the twist lands by ~2.5 s.
- Never open with "[Company] just dropped…".
- The voice starts at 0.00 s, and the visual changes every 0.8–1 s.
- **Layout:**
- The avatar sits in the bottom ~30% in split shots, with square corners on the split window.
- Slide or page beats fill the frame on their own background.
- Captions show only while the avatar is on screen.
- **Receipts, not mock-ups:**
- Show the real post, page or official footage.
- Zoom only where text is too small to read. Otherwise hold the shot static and **draw** lime rectangles or underlines on the phrase as it's said.
- `kit/blocks/hh.mjs` is the default "the article says X" shot: a 3D page fly-in, a dolly to the sentence, a highlighter inking it, and the X post popping in as the receipt.
- **Avatar:**
- On screen ~30–40% of the runtime, in complete-sentence windows. Cut only at clause ends.
- Punch in on 2–3 stress words. Never animate a zoom-out.
- **Sound:**
- About 5–8 click SFX on key reveals, and **zero whooshes**.
- Mark 2–3 big transitions with a short riser or a soft glitch.
- The music bed sits flat, 7 dB under the voice, with no ducking.
- **CTA:** an Instagram-style comment box rises on "comment", the WORD types in as it's said, and Post taps to a lime check. No extra banner.
- **Palette:** ink, paper, white, grey, red, green and lime. Montserrat for every caption and all motion-graphics type.
## Hard rules
1. **Truth first.**
- Every claim on screen comes from a real post or page you opened.
- No invented numbers, quotes or attributions.
- Mock commenters use generic handles and gradient avatars, never real people.
- Name the person who posted, not just the company.
2. **No downloads without asking the user,** fonts included.
3. **Never publish or post.** Render only after the user approves the preview.
4. **Kill only your own processes.**
5. **Avatar cuts only at clause ends.**
6. **SFX must be audible over the bed.** Use `kit/sfx_level.py` and the `SFX_VOL` table.
## Pipeline
Scaffold the project at `videos/<kebab-topic>/`:
```bash
npx --yes hyperframes@0.8.77 init "videos/<name>" --non-interactive --example=blank --skill=general-video
```
Write `BRIEF.md` with `workflow: general-video`, `flow: automation`, `storyboard: no`, `destination: instagram-reels`, `aspect: 9:16`. Copy `kit/examples/design.md` to the project root.
1. **Research.** Open the post or topic and read every post in it. Pick posts by role:
- **hero:** the most visual post with a video. It opens the reel.
- **items:** one post per list item, 3–5 of them.
- **plus:** one surprising extra fact, if there is one.
Then hunt the official footage: the keynote section on YouTube, and the announcement page's videos and images (`references/receipts-sourcing.md`). Map each script phrase to one real moment. Cut clips into `assets/broll/` with a `manifest.json`.
2. **Script.** Follow `references/script-style.md`.
- **Story reels:** stakes → big question by ~5 s → rehook cascade → head fake → payoff → CTA.
- **List reels:** hook → 3–5 numbered items → optional "Plus" → "comment WORD" CTA, 110–190 words.
- No social stats.
- Write `.work/script.json` as `[{id, text}]` plus a copy-paste `SCRIPT_HEYGEN.md`. Stop here and hand over the HeyGen script if the avatar video isn't recorded yet.
3. **Capture** (from the project root; `mkdir -p assets/cap assets/clips .work`):
- **Tweets:** write `.work/tweets.json` as `[{name, id, phrases:[exact substrings]}]`, then run `node <SKILL>/kit/cap-tweets.mjs .work/tweets.json`.
- **Video posts:** run `node <SKILL>/kit/cap-video.mjs <name> <tweetId> 14`, then `<SKILL>/kit/frames2mp4.sh <name>`.
- Check that no phrase rect in `assets/cap/tweets.json` is `null`. If one is, fix the substring.
4. **Audio:**
- **Temporary VO:** `<SKILL>/kit/make-vo.sh .work/script.json` writes a temp VO plus `assets/audio/transcript.json`. Everything is timed to that transcript.
- **SFX:** put your levelled SFX in `assets/sfx/`. If one is missing, run `python3 -I <SKILL>/kit/tools/openverse_sfx.py search "<sound>"`, then `get <id> <name> --out assets/sfx` (CC0 by default).
- **Music:** once the real VO exists, run `python3 <SKILL>/kit/bgm.py "$MUSIC_DIR/<file>" <start> <D>` and set the printed `BGV` in `gen.mjs`.
5. **Build:**
- Copy `<SKILL>/kit/lib.mjs` into `.work/`.
- Copy `kit/examples/gen-v11.mjs` and adapt it: scene ids and times, cards, highlight phrases, `LAYOUT`, key phrases, `SFX` and the CTA word.
- Time every word slam or highlight to the transcript word's `start`.
- Run `node .work/gen.mjs`.
6. **Verify:**
- Run `npx --yes hyperframes@0.8.77 check` and fix every error.
- Snapshot ~24 times, then inspect every frame. Look for stuck flashes, mis-placed highlights, clipped type and caption collisions.
7. **Handoff:**
- Run `npx --yes hyperframes@0.8.77 preview --background`.
- Summarize the reel beat by beat.
- Flag the temp VO, any unverified fact and any deliberate overlap.
- Render only after a yes.
8. **Render QA,** one tool at a time:
- `kit/tools/footage_ledger.py .` runs before the render. It finds clips that run out of source frames and repeated moments.
- `kit/tools/cut_qa.py renders/<slug>.mp4 .work/qa` finds 1–3-frame flashes, slivers, black frames, stalls, freezes and a still hook, and writes contact sheets.
- `kit/tools/text_qa.py renders/<slug>.mp4 .work/qa --transcript assets/audio/transcript.json` checks that every phrase the voice says on screen is phone-readable, using on-device OCR on macOS.
- `kit/tools/word_check.py renders/<slug>.mp4 --expect <script.txt>` finds dropped or clipped words at splices.
9. **Master:** `kit/tools/master.py renders/<slug>.mp4 renders/<slug>-master.mp4` gives −14 LUFS / −1.5 dBTP with one gain plus a limiter. Post the `-master.mp4`.
**HeyGen swap:**
- Put the avatar MP4 inside `#avin`, as a `<video class="clip" muted>` with object-fit cover, plus an `<audio>` for its track.
- Re-transcribe, then shift all scene, layout and SFX times to the new word times.
## Credits
- `kit/tools/caption-lint.py` is from Jake Schincariol's instagram-agent-skill (MIT; licence included).
- Several QA ideas (footage ledger, cut strips, word check, mastering) were adapted from Nate Herk's herk-edit-kit.
- The `hh` and `stat` blocks follow Shaan Johari's style cards.
- The script formula draws on Nick Saraev's and Geet's reels and Kallaway's "dopamine loop".
35 files
- SKILL.md9.0 KB
- kit/bgm.py4.2 KB
- kit/bgm_loop.py3.5 KB
- kit/blocks/hh.mjs12.9 KB
- kit/blocks/stat.mjs18.2 KB
- kit/cap-tweets.mjs3.0 KB
- kit/cap-video.mjs2.9 KB
- kit/cut/cut.swift1.5 KB
- kit/cut/trim.swift1.3 KB
- kit/examples/base-v11.css29.8 KB
- kit/examples/design.md1.4 KB
- kit/examples/gen-v11.mjs46.2 KB
- kit/frames2mp4.sh0.9 KB
- kit/lib.mjs4.3 KB
- kit/make-vo.sh