Script And Audioのロゴ

Script And Audio

コミュニティ
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.

概要

公開者Mohcen56
リポジトリytb-edit-kit
スキル名script-and-audio
スター
166
フォーク
25
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    Mohcen56がGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Script And Audio」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Mohcen56/ytb-edit-kit/tree/main/.agents/skills/script-and-audio
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでScript And Audioを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にScript And Audioを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Script And Audioは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

よくある質問

AIスキル「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.

TypingMindでScript And Audioを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Script And Audioはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにScript And Audioをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Mohcen56/ytb-edit-kit/tree/main/.agents/skills/script-and-audioを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Script And Audioを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Script And Audioで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもScript And Audioを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Script And Audio」は無料ですか?

はい。Mohcen56がMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇