Communitygithub.com

clip-shorts:完成した長尺から単体で立つ YouTube Shorts へ

完成した長尺動画を YouTube Shorts に切り出すエージェントスキル。編集時の単語タイムスタンプを再利用し、文字起こし全体を読み、単体で成立する場面を選び、テキストフックとコメント誘導を加え、Remotion で 1080x1920 のクリップと Instagram キャプション付きアップロードシートを書き出す。

clip-shorts:完成した長尺から単体で立つ YouTube Shorts へ とは?

YouTube エピソード配方のステップ 3(Shorts)。SrigadaAkshayKumar/ai-video-editor(2026-10-09 公開。AI-clipper フォルダはパイプラインの Shorts 工程で、README によれば音声から編集、Shorts、Drive までの 1 話全体を無料の 4 CPU GitHub ランナーで 1 時間 13 分で処理した)。完成版のクリーンな映像と -14 LUFS マスターを使うため、Whisper の再実行も字幕の二重化もない。エージェントは選ぶ前に文字起こし全体を読む必要がある。良い Short は文脈ゼロで理解でき、前振り・緊張・オチがあり、強い一言で始まり、オチの直後に終わり、自然な長さで最大 70 秒。同じ素材の 1 秒が 2 本に出ることはない。各クリップに 8 語以内の画面フック、任意のコールドオープン、具体的なコメント質問、YouTube タイトル、ハッシュタグ、専用の Instagram キャプションが付く。フレーミングは黒帯、ぼかし、中央クロップ、顔追従から選択。出力は 1080x1920・30fps・H.264 の MP4 と UPLOAD_SHEET.md。

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

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

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

ドキュメント

長尺動画 → YouTube Shorts

パイプライン: AI-editsプロジェクト(../projects/<p>)→ 文字起こし(編集時の単語を再利用、プレーンファイルのみWhisper)→ Claudeが全文を読みclips.jsonを作成 → 準備(カット、キャプション、トラッキング)→ レンダリング(Remotion)→ output/<slug>/。

0. ジョブ設定の収集

ユーザーのメッセージから取得(不足分のみ質問):

設定値備考
source../projects/ 内のAI-editsプロジェクト名入力フォルダはありません: 動画はエディターのプロジェクトから取得します。1本の長尺動画の複数のパーツ → すべてをリスト + --slug
languageen / te / hiWhisperの言語、キャプションフォント、フック/CTAの言語を設定
framingblack(16:9を9:16に、黒帯)· blur(ぼかし背景)· center(中央クロップ)· track(話者の顔を追跡してクロップ)顔出しなしチャンネル → black/blur; 顔出しありチャンネル → center/track(またはblack/blur)。クリップごとに変更可能。
model(オプション)small、medium、large-v3Whisperは以下の場合のみ実行(プレーンファイル、--from final、--whisper): en→small、te/hi→medium

1. 文字起こし

AI-clipper/ から実行(またはリポジトリルートから npm run shorts:transcribe -- …):

npm run transcribe -- <project>                               # ../projects/<project>、クリーンソース
npm run transcribe -- <part1> <part2> <part3> --slug <name>    # 1本の長尺動画の複数パーツ、順に結合
npm run transcribe -- <project> --from final                  # 納品されたfinal-16x9.mp4を代わりに使用
npm run transcribe -- <joined-name|file.mp4> --lang te        # ../output/<name>-16x9.mp4(npm run join)または任意のファイル

ソース:

  • clean(デフォルト、こちらを使用): プロジェクトの work/visuals-16x9.mp4 + work/master.wav(完成した映像、グラフィック、-14 LUFSミックス、ただしバーンイン字幕とイントロ/アウトロはなし)をjobs/<slug>/source.mp4に多重化。単語は work/cleancut.words.json から直接取得されるため、Whisperは実行されません(即時、テルグ語/ヒンディー語ではElevenLabsの文字起こしを維持)。編集が確定している必要あり(npm run finalize -- <p>); ピクチャー/マスターがクリーンカットより古い場合は警告。
  • final(--from final): 納品された output/final-16x9.mp4 をWhisperで再文字起こし。字幕がバーンインされているため、Shortに2つの字幕レイヤーが表示されます。クリーンファイルが存在しない場合のみ使用。結合済み長尺動画(../output/<name>-16x9.mp4)も同様: パーツプロジェクトのリストを優先。

言語はプロジェクトのデフォルト(--lang で上書き)。--format 9x16 は9:16編集からクリップ。WhisperはCPUでは低速(smallで動画1時間あたり約20分、mediumで約45分): バックグラウンドで実行。出力: jobs/<slug>/ に source.mp4、transcript.txt(タイムスタンプ付き)、transcript.json(単語タイムスタンプ)、meta.json(どのプロジェクトから来たかを記録)。

2. すべてを読み、クリップを計画(これはClaudeの仕事)

選択する前に、全体の jobs/<slug>/transcript.txt を(長い場合は分割して)読んでください。スクリプト全体(トピック、ストーリー、議論、ジョーク、コールバック)を理解してください。動画を等間隔に分割しないでください。

良いShortとは、自己完結した対話の瞬間です:

  • 文脈ゼロで意味が通じる(「さっき言ったように」や、最初の文で未解決の「彼/それ」がない)。
  • アークがある: 導入/質問 → 緊張 → 決着(回答、オチ、暴露、強い意見、数字/結果)。
  • 強いセリフで始まり、つなぎ言葉(「あのー」「うーん」「じゃあ」「అయితే」「तो」)で始まらない。
  • 決着の直後、完全な文で終わり、考えの途中で終わらない。
  • 自然な長さ、最大70秒。 各クリップはその瞬間が終わるところで切る: 30秒の瞬間は30秒のShort、40秒の瞬間は40秒のShort。大半は30~40秒。70秒は上限です(prepare.pyはそれ以上を拒否)。絶対に、クリップを長くするためだけに他の場所のセリフを引き伸ばしたり、結合したり、継ぎ接ぎしないでください; それはユーザーが2026-10-06に修正した誤りです。あらゆる種類の動画に適用されます。
  • 映像を二度使用しないでください。 いかなるソースの秒も2つのクリップに現れてはならず、どのクリップも同じセリフを2回流してはなりません。すべてのクリップは動画の異なる部分です。他のクリップを再利用する「フルバージョン」クリップは禁止。prepare.pyは重複する計画を拒否します。

フック(2種類、役立つときに両方使用):

  1. テキストフック(hook): 最初の3秒間、画面上に8語以内。好奇心、大胆な主張、または「あなた」の問題。クリップに対して真実である必要があります。強調したい1~2語を *アスタリスク* で囲む(例: 採用担当者は*この*コーディングコンテストに注目👀): 黒フレームでは黄色のハイライトボックスが表示されます。動画の言語と文字で記述(テルグ語→తెలుగు、ヒンディー語→हिन्दी)。ユーザーが英語/テングリッシュ/ヒングリッシュを要求した場合を除く。
  2. コールドオープン(オプション): クリップの最初のセグメントを、そのクリップで最も驚くべき1~3秒のセリフ(決着や衝撃的な発言)にし、次にそのセリフの直前までの導入を再生し、その後そのセリフの後を続けます。これにより、そのセリフは2回流れません。例: `[{

Individual skills in this repo

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

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

End-to-end editor for TALKING-HEAD videos (a person on camera) in this repo. Use when the user hands over a raw video with a speaker and wants a finished edit, or asks to continue/resume/redo any stage of an existing talking-head project — clean cut, motion graphics, b-roll, SFX, music, captions, final render, thumbnail. Delivers YouTube 16:9 and Instagram 9:16. Telugu, Hindi, English and code-mixed speech. For a voiceover with no presenter use edit-video-faceless.

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.

関連スキル