script-and-audio
Skill136 starsChanged 5 days agoMITView on GitHub
Write or tighten a YouTube script so it edits cleanly in code (short beats, clear turns, concrete examples, line-to-visual plan) and prepare/cut the voiceover audio (transcribe, catch Whisper skipped spans, tighten pauses, check WPM and loudness). Use before `edit` when starting from a topic, a rough draft, or a raw voiceover.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- about-meSkill
- design-systemSkill
- editSkill
- about-meSkill
- design-systemSkill
- editSkill
- script-and-audioSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 5 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Read brand/about_me/ first so the voice, audience, and examples match the creator.
- Very specific: line 17
Hook (first ~15 s): Start with the finished result, the surprise, or the problem—never *"hey guys welcome back"*.
- Distinctive: line 18
Give a reason to stay: Put the strongest item first, save a strong one for last, and tease it early.
- Distinctive: line 19
Break the rhythm: Don't give every section the exact same 30-second template.
- Distinctive: line 20
One piece, start to finish: Every section must lead into the next.
- Distinctive: line 21
Outro: Always connect back to the hook and close cleanly with the creator's call-to-action.
- Distinctive: line 24
Short sentences, one idea per breath: Keep sentences short enough to say in one breath, with an occasional longer "thinking out loud" line …
- Very specific: line 25
Explicit turns & reasons: Use "but" to flip an idea (maps cleanly to strike2 or pick2), "because" to give the reason right after a claim, …
- Very specific: line 28
Mark visual cues & links: Put website URLs next to tool names, and draft a quick line → visual beat table (especially for screen-recording …
- Very specific: line 34
Run these inside videos/<name>/audio/ with voice.mp3 in place.
- Very specific: line 54
If voiceover_cadence.txt exists with <break time="0.5s"/> tags, preserves those intentional dramatic pauses while tightening everything …
- Very specific: line 59
After build.py and hyperframes render, run:
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Script structure & audio cutting
Great edits start with an editable script and clean, tightly cut audio. Raw rambling voiceovers force the editor to guess visuals; clean beats and tight audio make every shot land on the word.
Part 1 · Script structure (write for the edit)
Read brand/about_me/ first so the voice, audience, and examples match the creator.
1. Shape & retention
- Hook (first ~15 s): Start with the finished result, the surprise, or the problem—never "hey guys welcome back". Show the first real result or payoff by
~0:15, and flash 2–3 quick previews of what's coming in the first10 s. - Give a reason to stay: Put the strongest item first, save a strong one for last, and tease it early.
- Break the rhythm: Don't give every section the exact same 30-second template. Mix fast hits (10 s), short stories ("this saved me when…"), and before/after comparisons.
- One piece, start to finish: Every section must lead into the next. If you open with a rant or problem, turn it with a personal story ("I used to think…") into a concrete answer.
- Outro: Always connect back to the hook and close cleanly with the creator's call-to-action.
2. Write in visual beats (not walls of text)
- Short sentences, one idea per breath: Keep sentences short enough to say in one breath, with an occasional longer "thinking out loud" line for natural rhythm.
- Explicit turns & reasons: Use
"but"to flip an idea (maps cleanly tostrike2orpick2),"because"to give the reason right after a claim, and"..."before a reveal. - Concrete examples & real numbers: Replace abstract claims with everyday examples ("tell it to build an e-commerce app") and real numbers ("from a year, to 8 months, to 3 months" → maps to
bars2orwords). - Cut AI clichés: Strip phrases like "Here's the part nobody talks about", "Let's be real", "In today's world", "game-changer", "unlock", "dive in", stacked one-word zingers, and em-dash asides.
- Mark visual cues & links: Put website URLs next to tool names, and draft a quick
line → visualbeat table (especially for screen-recording tutorials, where the script must match the exact order of actions on screen).
Part 2 · Audio editing & cutting
Run these inside videos/<name>/audio/ with voice.mp3 in place.
1. Transcribe & catch Whisper skipped spans
python ../../../tools/transcribe.py voice.mp3 ../script.txt- Pass
../script.txtso Whisper spells tool names and terms accurately. - Check for skipped spans:
transcribe.pywarns if there is a> 4 sgap between segments or if the transcript ends >5 sbefore the audio ends.faster-whisper(small.en) can occasionally skip 20–30 s chunks of speech. - If a span was skipped: Slice that range with FFmpeg, transcribe the slice, offset its timestamps, and merge it into
words.jsonbefore tightening:ffmpeg -ss <START> -to <END> -i voice.mp3 slice.wav python ../../../tools/transcribe.py slice.wav ../script.txt
2. Cut pauses & normalize loudness (tighten.py)
python ../../../tools/tighten.pyWhat tighten.py does automatically:
- Detects silences longer than
0.30 s(-34 dB) and shrinks them to0.22 s(with12 msfade-in/out on every cut so there are no clicks). - If
voiceover_cadence.txtexists with<break time="0.5s"/>tags, preserves those intentional dramatic pauses while tightening everything else. - Normalizes loudness to YouTube target (
-14 LUFS,-1.5 dBTP) at48 kHzand outputsvoice_tight.wav+words_tight.json+cuts.json. - Optional pacing check: Target roughly
175–190 WPMafter tightening. If the delivery is noticeably slow (under~170 WPM), you can gently speed it up with FFmpegatempo(never past1.10x/~195 WPM, and re-runtranscribe.pyif you change speed).
3. Verify the final mix
After build.py and hyperframes render, run:
python tools/edit_kit/final_check.py videos/<name> videos/<name>/renders/<name>_v01.mp4Confirm every word is clearly heard (no SFX covering a word) and loudness sits around -14 LUFS.
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
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.

