Script And Audio logo

Script And Audio

Community
Mohcen56
script-and-audio

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.

Overview

PublisherMohcen56
Repositoryytb-edit-kit
Skill namescript-and-audio
Stars
166
Forks
25
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Mohcen56 on GitHub. Read the source before you install it.

Installation

Install the Script And Audio AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Mohcen56/ytb-edit-kit/tree/main/.agents/skills/script-and-audio
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Mohcen56/ytb-edit-kit.git /tmp/ytb-edit-kit
mkdir -p .claude/skills
cp -r /tmp/ytb-edit-kit/.agents/skills/script-and-audio .claude/skills/script-and-audio
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Script And Audio in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Script And Audio on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Script And Audio is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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 first 10 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 to strike2 or pick2), "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 bars2 or words).
  • 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 → visual beat 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

bash
python ../../../tools/transcribe.py voice.mp3 ../script.txt
  • Pass ../script.txt so Whisper spells tool names and terms accurately.
  • Check for skipped spans: transcribe.py warns if there is a > 4 s gap between segments or if the transcript ends > 5 s before 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.json before tightening:
    bash
    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)

bash
python ../../../tools/tighten.py

What tighten.py does automatically:

  • Detects silences longer than 0.30 s (-34 dB) and shrinks them to 0.22 s (with 12 ms fade-in/out on every cut so there are no clicks).
  • If voiceover_cadence.txt exists 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) at 48 kHz and outputs voice_tight.wav + words_tight.json + cuts.json.
  • Optional pacing check: Target roughly 175–190 WPM after tightening. If the delivery is noticeably slow (under ~170 WPM), you can gently speed it up with FFmpeg atempo (never past 1.10x / ~195 WPM, and re-run transcribe.py if you change speed).

3. Verify the final mix

After build.py and hyperframes render, run:

bash
python tools/edit_kit/final_check.py videos/<name> videos/<name>/renders/<name>_v01.mp4

Confirm every word is clearly heard (no SFX covering a word) and loudness sits around -14 LUFS.

Frequently asked questions

What does the Script And Audio AI skill do?

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.

Why use Script And Audio on TypingMind?

Because you install it once and use it with any model. Script And Audio is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Script And Audio in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Mohcen56/ytb-edit-kit/tree/main/.agents/skills/script-and-audio. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Script And Audio?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Script And Audio?

As many as you like. As long as a model supports skills, you can use Script And Audio with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Script And Audio AI skill free?

Yes. It is published on GitHub by Mohcen56 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇