Communitygithub.com

edit-video:トーク素材から YouTube 完成版まで一気に編集

カメラ目線のトーク素材を YouTube 16:9 と Instagram 9:16 の完成動画に仕上げるエージェントスキル。文字起こし、クリーンカット、モーショングラフィックス、B ロール、効果音、任意の BGM、単語単位の字幕、-14 LUFS マスタリング、最終検証まで。英語・ヒンディー語・テルグ語・混在発話に対応。

edit-video:トーク素材から YouTube 完成版まで一気に編集 とは?

YouTube エピソード配方のステップ 1(編集)。SrigadaAkshayKumar/ai-video-editor(2026-10-09 公開。README には完成版の 16:9 コンタクトシートがあり、GitHub Actions で毎日動く顔出しなしチャンネルのパイプラインが説明されている)。生素材を inbox/talking/ に置き「video-1 をテンポよく編集して」と言うだけ。エージェントがスタイルの言葉を設定に変換し、文字起こし(英語は Whisper、テルグ語・ヒンディー語は ElevenLabs)、言い直し・言いよどみ・無音を削るクリーンカット、6 種のレイアウトと 28 種のモーショングラフィックス+B ロールの映像プランを作成。Remotion で映像を書き出し、HyperFrames で単語単位の字幕、ffmpeg で効果音と任意の CC0 BGM をミックスし、-14 LUFS でマスタリング、尺・ラウドネス・フリーズ・全カット点を検証する。判断はすべて JSON に保存され、どの工程もやり直せる。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SrigadaAkshayKumar/ai-video-editor/tree/HEAD/.claude/skills/edit-video

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

edit-video — トーキングヘッド → final-16x9.mp4 + final-9x16.mp4

あなたは編集者です。tools/ 内のツールは機械的な作業を行います。すべての編集上の決定はあなたが行い、それをファイル(work/edl.json、work/visual-plan.json、work/audio-plan.json)に保持することで、どの段階でもやり直せるようにします。セッションごとに docs/lessons.md を一度読んでください。そこにあるすべてのルールは、壊れたレンダリングという代償を払って得られたものです。

アーキテクチャ(なぜこのような形になっているのか)

raw ─ transcribe ─ cut ─┬─ work/cleancut.mp4 ──────────────┐
                        │                                    │ (対話)
       visual-plan.json ┴─ Remotion `Doc` (ミュート) ×2 フォーマット  │
                             └─ HyperFrames キャプションパス ×2  │
       audio-plan.json ─────────────── tools/mix.mjs ◄───────┘ → work/mix.wav (一度だけ)
                                                     finalize: 映像 + -14 LUFS マスター + イントロ/アウトロ
  • Remotion が映像全体を描画します:Aロール(フル / ドック左 / ドック右 / バンド / コーナー / テイクオーバーの6つのステージレイアウト)、28種類のモーショングラフィック、Bロールカットアウェイ、カメラ移動、チャプターガイド。
  • HyperFrames は単語レベルのキャプションのみを描画します(ブラウザシェーピングによりテルグ語/デーバナーガリー文字を正しくレンダリング)。
  • ffmpeg はすべてのオーディオを処理します:どのレンダリングでも <audio> は使用しません。このリポジトリが継承しているテンプレートでは、オーディオを埋め込むと対話が繰り返し破損していました。
  • 両方のフォーマットで、1つのクリーンカットタイムライン、1つのビジュアルプラン、1つのミックスを共有します。

ステージ

#ステージツールスキル・注意点
0取り込みnpm run new -- <inbox-name> --brief "…" [--lang te|hi|en] [--style glass|broadcast] [--keyterms "A,B"]下記「取り込み」を参照
1文字起こしnpm run transcribe -- <p>英語 → whisper(無料)・テルグ語/ヒンディー語 → ElevenLabs
2クリーンカットnpm run cut -- <p> [--dry-run]clean-cut スキル。最も重要なステージ。
3ビジュアルプランwork/visual-plan.json を作成;npm run visuals -- <p> --check;--stills t1,t2motion-graphics スキル
4Bロールnpm run broll -- search|getmotion-graphics 内
5映像レンダリングnpm run visuals -- <p>映像1分あたり約1~2分(フォーマットごと)
6キャプションnpm run scaffold -- <p> (+ npm run captions -- <p> --style …)captions スキル
7オーディオプランwork/audio-plan.json を作成;npm run sfx -- list;npm run bgm -- search|get;npm run mix -- <p>sfx、bgm スキル
8ファイナライズnpm run finalize -- <p>lint、レンダリング、マスタリング、イントロ/アウトロ、output/credits.md
9検証npm run verify -- <p> → work/verify-*/sheet.jpg を両方とも読む絶対にスキップしない
10パッケージ化youtube-metadata、youtube-thumbnail スキル最後に提案する

npm run status で進行状況を確認できます。再カット後:node tools/retime.mjs <p> で両方のプランを新しいタイムライン(古いクリーン → raw → 新しいクリーン)に引き継ぎ、カットされた瞬間のものを一覧表示します。

実行手順

  1. 取り込み。 ユーザーが inbox/talking/ にクリップをドロップし、プロンプトで名前を指定します("edit video-1 …"、場合によっては "/video-1" と書かれていることもあります。スラッシュを削除してください)。npm run inbox で待機中のものを確認できます。 npm run new -- video-1 --brief "<the user's style words, verbatim>"(+ ユーザーが指定した場合は --lang、名前やブランドの場合は --keyterms)を実行します。プロンプトのスタイル指示がブリーフです — 計画前に設定にマッピングしてください(「スタイルブリーフ → 設定」を参照)。プロンプトですでに答えていることは質問しないでください。 ブランド/チャンネル:デフォルトではなし — このリポジトリは複数のクライアント向けに編集を行います。ユーザーが自分の動画だと明示した場合のみ、config/brands/<slug>.json をロードするか(ユーザーから提供された情報をもとに作成)、--brand を指定し、さらにユーザーが要求した場合は inbox/brand/ からイントロ/アウトロクリップを指定します。
  2. 文字起こしを実行し、work/transcript.md を最初から最後まで読みます。ヘッダーの engine と language を確認します。
  3. クリーンカット — clean-cut の指示に正確に従います。境界監査と脆弱な単語出力も含みます。
  4. work/cleancut.transcript.md(クリーンカットのタイムスタンプ)からビジュアルプランを作成します。プランを書き、--check を実行します(各コンポーネントの必須フィールドを検証します — テンプレートのサイレントな欠陥の第1位)。修正後、6~10 の興味深いタイムポイントで --stills をレンダリングし、フルレンダリングの前に両方のフォーマットで確認します。フレーミング:9:16 で話者が中央からずれている場合は、"framing": {"9:16": "40% 45%"} を設定します。
  5. 映像レンダリング、キャプションスキャフォールド、オーディオプラン作成とミックス、ファイナライズ、検証を実行します。
  6. 報告:両方の出力パス、raw → クリーンカットの長さとカットされた内容(理由別)、オーバーレイ/Bロール/SFX の数、使用した音楽、脆弱または不確実な点、説明に必ず記載すべきクレジット、そしてミックスをあなたは聞けないことを明確に伝え、ユーザーにジョイン、ベッドレベル、ダッキングを確認するよう依頼します。/youtube-metadata と /youtube-thumbnail を提案します。

スタイルブリーフ → 設定

ユーザーの言葉を具体的な選択肢に変換し、計画前に1行で記述します。

ユーザーの発言設定
速い / エネルギッシュ / リール / パンチーkeepPauseMax 0.25、キャプション pop 2-3 単語、2-4秒ごとにビート、カメラパンチ、構造にサブバンド SFX
落ち着いた / プロフェッショナル / ドキュメンタリー / 長尺keepPauseMax 0.4-0.5、キャプション clean 4-6 単語、6-10秒ごとにビート、SFX 少なめ、ソフトベッド
ミニマル / クリーン / シンプルオーバーレイは少なめ(必要な場合のみテキストマーク)、マーキー/グリッチなし、clean キャプション または なし
大胆 / プレミアム / ニュース / 論説--style broadcast、高コントラストアクセント
ストーリーテリング / 感動的karaoke キャプション、piano/cinematic ベッド、キーラインで音楽を止める
「音楽なし」 / 「SFXなし」 / 「キャプションなし」 / 「Bロールなし」厳密にその通りにする;該当ステージをスキップ
(音楽が言及されていない)BGM なし — ユーザーはプロンプトの最初で音楽を追加するかどうかを指定します。デフォルトはなし。追加する場合:CC0 のみ(--cc0)で、SFX はその上でもはっきり聞こえるようにする
色(「黄色を使う」、16進数)キャプション --accent、オーバーレイ section のアクセント/ブランド

ブリーフ内で特別な指示があれば、これらのデフォルトを上書きします。 project.json.brief にブリーフを保持し、後で再編集する際にも同じスタイルを適用できるようにします。

レビューゲート

デフォルト:そのまま進めて報告します。ユーザーがチェックポイントを要求した場合(または project.json.review が "stages" の場合)、クリーンカット後、ビジュアルプラン後(スチルを表示)、オーディオプラン後に停止します。要求された変更は、そのステージの新しい基準となります。該当ステージを修正し、再度表示します。

ルール

  • すべてのプランのタイムスタンプはクリーンカットタイムライン基準。EDL のタイムはraw基準。
  • オーバーレイテキストはデフォルトで短い英語(ネイティブ文字はキャプション内)とします。ブリーフで特に指定がない限り。
  • 生成されたファイル(compositions/captions.html、work/props-*.json)は手動で編集せず、再生成してください。
  • .env のキー:ELEVENLABS_API_KEY(テルグ語/ヒンディー語)、PEXELS_API_KEY または PIXABAY_API_KEY(Bロール)。不足している場合、停止してどのキーが不足しているか、およびそれが C:\AI-edits\.env にあるべきであることを正確に伝えてください。
  • Windows:JSON は Write ツールで書き込んでください(PowerShell はインライン JSON を壊します。Out-File/Set-Content は BOM を追加します — ツールは JSON 内ではそれを許容しますが、コードファイルをその方法で決して書き込まないでください)。
  • ユーザーが最終版を確認したらクリーンアップ:render/、work/visuals-*.mp4、work/captioned-*、work/stills-*、work/verify-* は再生成可能です。output/、work/*.json、assets/ は保持します。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

SrigadaAkshayKumar/ai-video-editor

Turn a finished AI-edits video (projects/<p>, or several parts of one long video) into YouTube Shorts. Reuses the edit's word timestamps, reads the whole transcript, picks self-contained dialog moments, adds text hooks + comment prompts, renders 9:16 clips with Remotion. Use when the user asks to clip/make shorts from an edited project or a long video.

SrigadaAkshayKumar/ai-video-editor

Choose, fetch and place background music for an edit — Openverse search (commercial-use CC, or CC0-only), music_cues in work/audio-plan.json with fades, offsets and a deliberate silence gap; tools/mix.mjs conditions every bed, sets it to one measured house level under the voice and sidechain-ducks it. Use when adding, swapping or re-levelling music.

SrigadaAkshayKumar/ai-video-editor

Generate and style word-synced captions (Telugu, Hindi, English, code-mixed) as the HyperFrames captions pass over each format's Remotion picture, fix caption text, black captions out under on-screen text, and check caption content at every cut join. Use when creating, restyling, correcting or repositioning captions in any edit.

SrigadaAkshayKumar/ai-video-editor

Editorial rules for turning a raw talking video or voiceover into a clean cut — removing retakes, repetitions, false starts, stutters, fillers, mispronounced words, contradictions/inconsistencies, off-script chatter and dead air — by writing work/edl.json for tools/cut.mjs. Telugu, Hindi, English and code-mixed speech. Use for stage 2 of edit-video or whenever the user asks to tighten/re-cut a video.

SrigadaAkshayKumar/ai-video-editor

Turns a bare voiceover (no presenter on camera) into a finished faceless documentary/explainer for YouTube 16:9 and Instagram 9:16 — clean-cuts the narration, DIRECTS it (story spine, tension curve, hooks, involvement beats), researches the claims and screenshots the real sources, plans a scene track (stock b-roll, stills, news screenshots, pure-graphic beats) with motion graphics, designs music + SFX, renders, captions and credits it. Use when the user gives a voiceover/narration file (or says "faceless video", "make a video from this VO", "documentary").

SrigadaAkshayKumar/ai-video-editor

Plan the picture of an edit in work/visual-plan.json — motion graphics (28 component types across six stage layouts that dock/shrink/dim the video), b-roll cutaways from Pexels/Pixabay, camera moves, a-roll framing for 9:16 — validate it, QA it with stills in both formats, and render it with Remotion. Use for any titles, charts, stats, lower thirds, diagrams, b-roll or zooms in a talking-head or faceless edit.

SrigadaAkshayKumar/ai-video-editor

Design the sound effects of an edit in work/audio-plan.json sfx_events — which effect, where, how often — using the measured SFX library (repo assets/sfx, HyperFrames' bundled set, CC0 fetches from Openverse) and the spectral rule that sub-band cues carry structure while vocal-band cues are rationed. Mixed and levelled by tools/mix.mjs. Use when adding or adjusting SFX in any edit.

SrigadaAkshayKumar/ai-video-editor

Write the upload package for a video this repo edited — YouTube title options, description with chapters, tags, pinned comment, thumbnail text, and the Instagram Reels caption + hashtags for the 9:16 cut — optimised for whichever channel/client the user says it is for (config/brands/ profiles, only when named). Use when the user asks what to title a video, for a description, tags, chapters, "the YouTube metadata", an Instagram caption, or SEO/CTR advice on a finished render.

SrigadaAkshayKumar/ai-video-editor

Design and build a high-CTR thumbnail for a video this repo edited — hook selection, the real face frame pulled from the footage, background cut-out, type set with real fonts (Telugu/Devanagari included), the YouTube 1280x720 thumbnail and the Instagram 1080x1920 cover, an optional image-generation prompt for the background layer, and a feed-size legibility check. Use when the user asks for a thumbnail, thumbnail ideas, a cover image, or how to make the thumbnail more clickable.

関連スキル