Communitygithub.com

explainer-reels

Make a vertical 9:16 animated explainer reel (white grid, word-by-word captions with one accented word, UI cards that pop in on the word that names them, a round avatar head that flies to each card and talks, soft UI sounds) from a script and a voiceover, rendered free on this machine with HyperFrames. Use when asked for an explainer reel, a faceless Short or Reel, "a video like reel 07", or to turn a script or an MP3 into a captioned explainer.

What is explainer-reels?

explainer-reels is a Claude Code agent skill that make a vertical 9:16 animated explainer reel (white grid, word-by-word captions with one accented word, UI cards that pop in on the word that names them, a round avatar head that flies to each card and talks, soft UI sounds) from a script and a voiceover, rendered free on this machine with HyperFrames. Use when asked for an explainer reel, a faceless Short or Reel, "a video like reel 07", or to turn a script or an MP3 into a captioned explainer.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/seocombat/explainer-reels/tree/HEAD

Ask in your favorite AI

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

Documentation

What does explainer-reels do?

A thin pack on top of HyperFrames (Apache-2.0). HyperFrames renders, transcribes, checks layout, measures audio and snapshots frames. This pack adds the look, the card kit, the head and a storyboard you write by words.

Work in this skill's folder (<SKILL>); put each reel in its own folder, e.g. reels/<slug>/. Run every npx hyperframes command with HYPERFRAMES_NO_TELEMETRY=1 and never use hyperframes cloud, auth, share, publish, templates or --describe: the render is local and free.

0. Setup (once)

cd <SKILL> && npm install          # pulls the HyperFrames CLI (Node 22+, FFmpeg needed)
npx hyperframes doctor             # Chrome and FFmpeg must be green

Read references/storyboard-format.md before writing a storyboard.

1. Script

Ask for the topic and the one action (follow, comment, link). Then write or check the script:

  • Hook in 2 s. The first sentence names the viewer's pain or gain and is true for them ("You're paying for every Claude Code request."). No greeting, no "in this video".
  • Value first. Every line teaches or proves something; the ask comes last, once.
  • Numbers as words in the voiceover text ("eighty-seven"), so any TTS reads them right. Captions show what is heard.
  • No fake numbers. Every figure comes from a source you can name. A number you cannot source is cut, not rounded. No counts of followers, users or stars you have not checked. This holds for animation too: a counter that counts up shows numbers the script never says ("$21", "65%"). Set from equal to to so the figure appears final on its word, unless the count itself is the point.
  • 30 to 60 s, about 2.6 words a second. Short sentences; one idea each.
  • Close: what the viewer gets now (it is in the caption) plus the named next episode.

Show the script and wait for the user's yes.

2. Voice

Use the user's MP3 or WAV as given: their own recording, ElevenLabs, or any TTS. Never spend credits without the user's yes. For a free local voice, use HyperFrames' Kokoro:

python3 -m venv reels/<slug>/.venv && reels/<slug>/.venv/bin/pip install kokoro-onnx soundfile
HYPERFRAMES_PYTHON=$PWD/reels/<slug>/.venv/bin/python HYPERFRAMES_NO_TELEMETRY=1 \
  npx --prefix <SKILL> hyperframes tts --text-file reels/<slug>/script.txt --voice af_heart -o reels/<slug>/voice.wav

(--list shows the voices.) Write the TTS text for the ear: spell out what a voice would misread ("dot Claude slash settings dot JSON", "R M dash R F"), then map those phrases back to written form for the captions with captions.show.

3. Word timings

cd reels/<slug> && HYPERFRAMES_NO_TELEMETRY=1 npx --prefix <SKILL> hyperframes transcribe voice.mp3 --model small.en --language en --json

The first run builds whisper.cpp (a few minutes). It writes transcript.json (or assets/transcript.json). Fallback: python scripts/transcribe.py voice.mp3 transcript.json after pip install faster-whisper numpy.

Read the words. Fix a misheard or wrongly cased word with captions.show in the storyboard ("get reset": "git reset"; keep the phrase long enough to be unique) rather than in transcript.json, so the fix survives a new voice take. Storyboard cues match words case-insensitively, by what whisper heard.

4. Storyboard by words

Write reels/<slug>/storyboard.json (references/storyboard-format.md; a full worked example is examples/reel-07/storyboard.json). Rules:

  • One scene per beat (a new idea or a new screen); flash: true on chapter cuts (3 to 6 a reel).
  • Each card enters on the word that names it. Its parts (rows, chips, counter, stamp, tick) arrive on their own words. When a scene opens on a header (STEP 2, THE CATCH), bring its main card in with it ("Step+0.3") and fill the card on later words, so the space under the header is never empty.
  • Use drawn icons (icons, card.icon) and connectors (line) for objects and relations instead of chips with text.
  • Give the head moods where the voice turns: wide on a "don't"/"limit"/"isn't", think on "thinks", happy on "yes" and after the Follow click (needs sprites; see the format reference).
  • 2 to 4 events a second. Something changes about every 1.2 s, and nothing holds still more than 0.5 s (cards bob, the head drifts and talks).
  • The head flies to the card being talked about and sits on its corner (near), never on text.
  • Keep text between y 270 and y 1250 and x 120 to 900; the bottom fifth belongs to the app. On a phone, TikTok's right-hand button column starts at about x 928 (measured on a 1080x1920 frame), so keep text clear of it.
  • 1 accented caption word per phrase: the word that carries the meaning.
  • Only numbers the voice says; a card never shows a figure the script does not.

5. Build, check, render

bash <SKILL>/scripts/render.sh reels/<slug>/storyboard.json reels/<slug>/<slug>.mp4 --draft   # fast look
bash <SKILL>/scripts/render.sh reels/<slug>/storyboard.json reels/<slug>/<slug>.mp4           # delivery

render.sh prints the pace report (events a second, longest gap), runs hyperframes check and stops on any error. Warnings to weigh: outside_safe_zone (move the card), line_unread (a line shown too briefly: give it more time or fewer words), text_below_floor. Faint upcoming caption words trip contrast_aa_failure on purpose; the spoken word is ink.

To look at frames without rendering: in reels/<slug>/project, run npx hyperframes snapshot --at 1.5,6,12 -o ../snap (add --against other.mp4 for a side-by-side with a reference reel). To edit by hand: npx hyperframes preview.

Swapping the voice later

Word references are words, not seconds, so a new take of the same script needs no storyboard edit: replace the audio file, run transcribe again on it, then render.sh again. If the new take changes a word (a different number, a cut phrase), fix the storyboard references that point at it; the build names any word it cannot find. Hand edits to transcript.json are lost on a re-transcribe, so put spelling and casing fixes in captions.show instead ("bash": "Bash", "pro or max": "Pro or Max"): they survive any new take.

6. QC

bash <SKILL>/scripts/qc.sh reels/<slug>/<slug>.mp4 <cover-second> [--fix-loudness]
  • Loudness about −14 LUFS, true peak at or under −1 dBTP; --fix-loudness writes a fixed copy.
  • First frame not empty: frame 0 is the thumbnail. Cards due at 0 s are already on screen.
  • Contact sheet (one frame per 2.5 s): look at it. Every tile must show a card, a caption and the head; nothing overlapping text; no two tiles alike in a row.
  • Cover frame: pick the strongest frame (the big number, the hook card) and pass its second.
  • Watch the first 3 s and the last 3 s with sound.

Hand over the MP4, the contact sheet and the cover, and say what was measured versus watched.

Related Skills