agentleFS
sourav2024sourav2024/reelspec/.claude/skills/reel/SKILL.md

reel

Skill0 starsChanged 6 days agoMITView on GitHub

Build a spec-driven explainer reel end to end — script, measured voiceover, spec, component, stills, render, mix, verify. Use when the user asks to create a reel, a short video, an explainer, or to add a new topic to the series.

15 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create examples/<slug>/script.txt — ONE narration block per line, blank lines ignored.

    line 23
  2. Very specific:

    Check every word against the pronunciation table in docs/playbook.md rule 6 ("documentation" not "docs", "no-sequel" not "NoSQL", …).

    line 29
  3. Very specific:

    import the frame from ./shell.jsx — NEVER reimplement badge, banner, Caption or SignOffCard

    line 83

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Build a reel

You are operating a measured pipeline. The one law: no time in a spec is ever estimated — every t: cites a measurement. If you catch yourself typing a time you didn't measure, stop and measure it.

0. Setup check

  • cd remotion && npm install if node_modules is missing.
  • ffmpeg required. Voice: macOS say (make-voiceover.sh, script.txt) or the Kokoro neural voice (make-voiceover-kokoro.sh, vo.json — run scripts/setup-kokoro.sh once). Prefer Kokoro for anything shipped.
  • whisper-cli optional (enables word-level onsets; without it, time captions off blocks.json blocks). WHISPER_MODEL overrides the model path.

1. Script

Create examples/<slug>/script.txt — ONE narration block per line, blank lines ignored. Rules:

  • Hook in the first line: the problem the viewer already feels, not the topic name. Retention is decided in the first 3 seconds.
  • Identity/sign-off is the LAST line, never an intro.
  • Check every word against the pronunciation table in docs/playbook.md rule 6 ("documentation" not "docs", "no-sequel" not "NoSQL", …).
  • Numbers that matter (phone numbers, amounts): digits one at a time, comma-separated, on their own line — that line gets a slower rate.
  • Target 35–80s total at 192wpm; trim the script, don't speed the voice.

2. Voiceover

scripts/make-voiceover.sh examples/<slug>
cp examples/<slug>/vo_norm.wav remotion/public/<slug>-audio.wav

Kokoro instead: write examples/<slug>/vo.json (see examples/kokoro-voice/vo.json; spoken punctuation, per-segment speed 0.92–1.08) and run scripts/make-voiceover-kokoro.sh examples/<slug>. Check the Kokoro pronunciation table in docs/audio.md first — plural acronyms drop their s.

Read the readback it prints, word for word. A mangled word means fix the script (synonym for ordinary words; comma at the seam or context phrase for proper nouns) and rebuild. Note the TOTAL — that is your DURATION.

Re-voicing an existing reel: cp words.json words.v1.json BEFORE rebuilding, then python3 scripts/retime-spec.py examples/<slug> remotion/src/specs/<slug>.js and review the diff — never re-measure 60 anchors by hand.

3. Measure anchors

python3 scripts/find-onset.py examples/<slug> "phrase one" "phrase two" ...
python3 -c "import json;[print(f\"{o['start']:6.2f} -> {o['start']+o['dur']:6.2f}  {o['text']}\") for o in json.load(open('examples/<slug>/blocks.json'))]"

Measure the onset of: every act boundary, every caption start, every visual moment, the sign-off lines. Block starts from blocks.json are exact by construction; word onsets need whisper.

4. Spec — remotion/src/specs/<slug>.js

Copy the SHAPE of specs/pipeline-demo.js exactly:

  • header comment: the visual DEVICE and why (animate the MECHANISM — pick the geometry from what the concept actually does, playbook rule 8)
  • DURATION = measured total; AUDIO = the public wav name
  • ACTS (key/label/t/out), MOMENTS (each with a // "quoted phrase")
  • CAPTIONS: short lines, ONE hot word each (hot: must appear verbatim in its text), tiling the runtime — each out equals the next t
  • BEATS: one per visual group + {kind:'signoff'} at the sign-off onset
  • SIGNOFF: identity fields + measured line2At/handleAt

5. Component — remotion/src/<Name>Reel.jsx

Copy the SHAPE of PipelineDemoReel.jsx:

  • import the frame from ./shell.jsx — NEVER reimplement badge, banner, Caption or SignOffCard
  • each visual group is an IIFE gated on win(t, beat.t, beat.out, 0.3)
  • colors ONLY from theme.js C; fonts from FONT
  • content lives between y=380 and y=1560
  • characters: both rigs share the POSE contract; everyone breathes, blinks off-phase, and gets a ground shadow (see docs/characters.md)

Register in Root.jsx with durationInFrames={Math.round(spec.duration * VIDEO.fps)}.

6. Verify, stills, render, mix, preflight

node scripts/verify-synth.js <slug>                  # must pass before rendering
cd remotion
npx remotion still src/index.js <slug> ../examples/<slug>/still-N.png --frame=<beat-frame> --gl=angle
# LOOK at every still. Emoji size, collisions, dead highlights, floating figures.
npx remotion render src/index.js <slug> ../examples/<slug>/render.mp4 --gl=angle --concurrency=4
cd ..
DUR=$(ffprobe -v error -show_entries format=duration -of csv=p=0 remotion/public/<slug>-audio.wav)
python3 scripts/gen-music.py examples/<slug>/music.wav "$DUR"
scripts/mix-music.sh examples/<slug>/render.mp4 examples/<slug>/music.wav examples/<slug>/<slug>-FINAL.mp4
mkdir -p remotion/out && cp examples/<slug>/<slug>-FINAL.mp4 remotion/out/<slug>.mp4
node scripts/preflight.js <slug>

7. Final content check

Transcribe the FINISHED mp4 and verify every narrated value against what the video shows (playbook rule 2). If the reel contains digits that matter, read them back digit by digit from the final file. Only then is it done.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.