Communitygithub.com

長動画クリップ

開始フレームと終了フレーム画像を元に、シーンごとに動画クリップを生成します。AI動画クリップを生成するか、画像のみを使用するかをユーザーに確認し、それに応じて処理を行います。

長動画クリップ とは?

このスキルは、長動画ワークフローのステージ6を担当し、各シーンに対応する動画クリップを生成するか、画像のみを使用するかを決定します。`long-video-keyframes` で生成された開始・終了フレーム画像を入力とし、各シーン(最大10秒のショット)に対して1つのクリップを出力します。ユーザーはAIによる自動生成、手動でのプロンプト作成、または両方を選択できます。AI生成の場合、スキルは利用可能な動画生成ツール(Higgsfield, Runway, Kling, Veo, Luma, Pika, Sora などのMCPサーバー、API、ローカルツール、ブラウザ)を自動検出し、テストを経てクリップを生成します。画像のみの場合は、後続のアセンブリステージでカメラワークを適用するためにその情報を記録します。このスキルは、Claude Code や Cursor などのAIエージェント環境で動作し、プロジェクト設定(アスペクト比、解像度、予算など)を考慮しながら、高品質なプロンプト作成と生成処理を効率的に行います。

対応✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/samanfirouzi/long-video-skill/tree/HEAD/skills/long-video-clips

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

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

ドキュメント

長動画クリップ は何をしますか?

長動画ワークフローのステージ6。出力: 各シーンに対応する動画クリップ、または画像のみを使用するという決定。

シーンとは、スクリプトの1つのクリップ(1ショット、最大10秒)を指し、long-video-keyframes と同様に動画全体を通して番号が付けられます。

開始前の準備

  1. プロジェクトを ~/.long-video/projects/<slug>/ で見つけてください。status: approved の video-script.md と film-style.md が必要です。
  2. frames/ と frame-prompts/index.md を確認してください。開始フレームと終了フレーム画像がクリップの入力です。これらがない場合は、その旨を伝え、long-video-keyframes の実行を提案してください。開始画像なしのテキストのみのクリップも一部のツールで可能ですが、結果の一貫性は低くなります。ユーザーが同意した場合のみその方法を続行してください。
  3. プロジェクト設定(アスペクト比、解像度、クリップ制限、動画プロバイダー、承認レベル、予算)を読み込んでください。
  4. clips/ または clip-prompts/ がすでに存在する場合は、続行するか(何が完了しているかをリスト表示)、再開するかを尋ねてください。

ステップ1: ユーザーの希望を確認する

「AI動画クリップを生成しますか、それとも画像のみを使用しますか?」と尋ねてください。

  • 動画クリップを作成する。 ステップ2に進んでください。
  • 画像のみ。 このステージをスキップします。project.json に "clips_mode": "images-only" と "stage": "clips-skipped" を設定してください。後のアセンブリステージでは、スクリプトに従ってカメラワーク(プッシュイン、パン、パララックス)で画像をアニメーション化することをユーザーに伝えてください。次のステージが存在する場合はそれを提案してください。停止します。
  • 一部のシーンのみ。 どのシーンにクリップが必要か(リスト、範囲、または「アクションシーンのみ」などのルール)を尋ねてください。その他のシーンは画像のみを使用します。リストを project.json に clips_scenes として保存してください。

ステップ2: クリップの作成者を決める

「Claude がクリップを生成しますか、それともご自身で作成されますか?」と尋ねてください。

  • Claude が生成する。 ステップ3に進んでください。
  • 自分で作成する。 ステップ5(ユーザー用のプロンプト)に進んでください。
  • 両方。 すべてのプロンプトを作成し(ステップ5)、同時に Claude でも生成します(ステップ3)。ユーザーはどちらかの結果を好みに応じて使用できます。

ステップ3: 動画生成ツールを探す

references/video-generation.md を読んでください。概要:

  1. 設定に保存されているメソッド(providers.video)があれば、それを使用してください。テストします。
  2. このセッションで接続されている動画生成ツール(MCPサーバーまたはスキル)を探します。Higgsfield、Runway、Kling、Veo、Luma、Pika、Sora などが含まれます。
  3. デバイス上のAPIキー環境変数を確認してください。「設定済み」または「未設定」のみを表示し、値は決して表示しないでください。
  4. ローカルジェネレーターとGPUを確認してください。
  5. 何も見つからない場合は、ユーザーに伝え、APIキー(チャットに貼り付けず、環境変数として)、接続するMCPサーバーまたはスキル、またはブラウザで使用する動画サイト(例: Higgsfield)があるかどうかを尋ねてください。または「自分で作成する」を選択し、ステップ5に進んでください。

選択したツールの機能を記録してください。これがプロンプトの内容を決定します:

  • 開始画像を受け付けるか
  • 終了画像(最初と最後のフレーム制御)を受け付けるか
  • キャラクターの参照画像を受け付けるか
  • クリップの長さと最大値
  • 解像度とアスペクト比
  • 独自のオーディオまたは音声を生成するか
  • プロンプトの長さ制限
  • クリップあたりのコスト

結果を短いリストでユーザーに伝えてください。ツールが終了画像を受け付けない場合は、その旨を伝えてください。その場合、終了フレームのプロンプトは動きの説明のガイドとしてのみ使用されます。

ステップ4: クリップを生成する

references/video-generation.md に従って、順序、チェック、ブラウザルールを守ってください。重要なポイント:

  1. 最初にプロンプトを作成します(ステップ5)。ジェネレーターがプロンプトを必要とするためです。
  2. ユーザーにクリップ数、合計秒数、およびおおよそのコストまたは時間を伝えてください。開始前に確認を取ってください。範囲(例: シーン1から10)から開始することを提案してください。
  3. テストクリップ。 scene-001 のみを生成します。そのフレームを表示します。動き、スタイル、キャラクターが正しいか尋ねてください。先に進む前にプロンプトを修正します。
  4. シーン順に生成します。継続シーンの場合、前のクリップの実際の最終フレームを開始画像として使用します(計画された終了フレームからずれた場合。ffmpegコマンドについてはリファレンスを参照してください)。
  5. 各クリップの後、長さ、解像度、見た目を確認してください。シーンごとに最大2回のリテイク後、needs-manual とマークします。各呼び出しにクレジットがかかる可能性があるため、生成呼び出しを黙って繰り返さないでください。
  6. 各クリップを clips/scene-<番号>_clip.<拡張子> として保存します。リテイクは scene-<番号>_clip_take2.<拡張子> として保存します。ファイルを確認せずに上書きしないでください。
  7. ブラウザ生成: 最初に数、時間、サイト、ダウンロードフォルダの明示的な確認を取ってください。ユーザーがサインインします。パスワードを入力したり、CAPTCHAを解決したりしないでください。
  8. 一括または1つずつ: ユーザーに尋ねてください。1つずつの場合、各クリップのフレームを表示し、承認を待ちます。

生成が失敗した場合、またはユーザーが拒否した場合は、残りのシーンに対してステップ5にフォールバックします。

ステップ5: ユーザー用のプロンプト

  1. プロジェクトフォルダ内に、完成した動画用の clips/ とプロンプト用の clip-prompts/ を作成してください。フルパスを表示します。
  2. references/clip-prompt-templates.md を読んでください。20シーンずつのバッチファイル(scenes-001-020.md)にシーンごとに1つのプロンプトを作成し、さらに clip-prompts/index.md も作成します。
  3. すべてのプロンプトには、情報が失われないよう、次のヘッダーを含めてください:
    • 保存するクリップファイル名: clips/scene-007_clip.mp4
    • 開始画像: frames/scene-007_start.png
    • 終了画像: frames/scene-007_end.png
    • 長さ、アスペクト比、解像度
  4. 一括、または1つずつを尋ねてください。
    • 一括。 フォルダパスと1つのプロンプト例を表示します。ユーザーはバッチファイルを処理します。
    • 1つずつ。 最初のプロンプトを、そのファイル名、開始画像、終了画像とともに表示します。ユーザーがクリップを保存したと言うのを待ちます。ファイルが clips/ に正しい名前で存在することを確認し(ffprobe で長さも確認します)、次のプロンプトを表示します。ユーザーが「停止」と言った場合は、位置を clips/status.md に保存します。
  5. いつでもフォルダをチェックするオプションを提供します。ファイルをインデックスと比較し、不足、誤った名前、または誤った長さのクリップをリストします。

プロンプトの品質

プロンプトはプロフェッショナルで詳細である必要があります。各プロンプトは次の内容をカバーします:

  • カメラ: ショットサイズ、アングル、レンズ、方向、速度、終了点を含む動き
  • アクション: 被写体が行うこと、拍ごとに、クリップの秒数にわたって
  • 照明: タイプ、方向、色、クリップ中の変化
  • スタイル: 固定のアートスタイルブロックとフィルムスタイルライン
  • 変更してはならないもの: キャラクターの外観、設定、パレット
  • ネガティブ用語、長さ、アスペクト比

テンプレートに従ってください。プロンプトを数語に短縮しないでください。

ステップ6: ステータスと完了

  1. clips/status.md を最新の状態に保ってください:
| シーン | ファイル | ステータス | 長さ | 備考 |
|--------|----------|------------|------|------|
| 001 | scene-001_clip.mp4 | done | 6.0 s | |
| 002 | scene-002_clip.mp4 | needs-manual | | 2回ずれた |

ステータス値: pending(保留中)、done(完了)、needs-manual(手動対応必要)、skipped(スキップ)。

  1. project.json を更新します。プロンプト保存後は "stage": "clips-prompts-done"、必要なすべてのクリップが存在し、ユーザーがセットを承認した場合は "stage": "clips-done" にします。
  2. ユーザーに clips/ と clip-prompts/ のパス、および不足しているものを伝えてください。
  3. 設定(providers.video)に使用したジェネレーター、メソッド、名前のみを保存するオプションを提供してください。
  4. long-video-voice(ナレーションとキャラクターボイス)に進むオプションを提供してください。ユーザーが同意した場合のみ開始します。ユーザーが要求し、そのステージが存在しない限り、他の後のステージを開始しないでください。

プロンプト保存前の自己チェック

  • 必要なすべてのシーンに、クリップ名、開始画像、終了画像、長さ、アスペクト比、解像度がヘッダーに含まれたプロンプトがあること。
  • プロンプトの長さがスクリプトと一致し、ツールの許容長さと10秒制限を尊重していること。
  • カメラ、照明、スタイルが film-style.md とスクリプトのショットに一致していること。
  • スタイルブロックとネガティブ用語が正確に含まれていること。
  • スピーキングモードがキャラクターまたは混合の場合、ダイアログ処理がプロンプトに記載されていること(テンプレートを参照)。
  • クリップファイル名がルールに正確に従っていること。

ルール

  • 承認されたスクリプトなしで開始しないでください。
  • ステップ1をスキップしないでください。ユーザーが画像のみを希望する場合は、ステージをスキップしてその旨を伝えてください。
  • ユーザーが数とコストに同意する前に生成しないでください。
  • チャットでAPIキーを要求しないでください。ブラウザでパスワードを入力したり、CAPTCHAを解決したりしないでください。
  • プロンプトが承認された後は、プロンプトファイル名やクリップ名を変更しないでください。
  • チャットメッセージは簡潔に保ってください。完全なプロンプトテキストはファイルに記述し、サンプルまたは現在のプロンプトのみを表示してください。

Individual skills in this repo

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

long-video-assets

Video and animation skill. Build the visual foundation for a long video from an approved story. Extracts the recurring characters, environments and key objects, helps the user choose one art style from suggested options (10 at a time, more on request), then writes image generation prompts for every character (portrait plus character sheet), environment and object, all sharing one locked style. Can also generate the images (installed tool, API, MCP or browser) or hand the user a folder and file names to fill. Use after lon

long-video-director

Turn an approved story into a shot-by-shot video script, acting as the director. Asks whether the video uses a narrator or characters who speak (or both), suggests professional filming choices (camera type, lenses, camera movement, lighting, color, pacing), saves them as a separate film style file, then writes a script that matches the project config. Outputs film-style.md and video-script.md. Use after long-video-story (and long-video-assets) are done, or when the user asks for the video script, shot list, camera style or lighting plan.

long-video-keyframes

Create the start and end frame image for every scene (clip) of the approved video script. Writes one image prompt per frame with a fixed file name that holds the scene number and start or end, makes a folder for the images, and can generate the images with an available image tool, or hand the prompts to the user all at once or one by one. Use after long-video-director, or when the user asks for start frames, end frames, keyframes or scene images.

long-video-niche-discovery

Find a differentiated video niche and a first video topic by applying seven discovery lenses (subject migration, angle inversion, hidden sub-niche, adjacent audience, format transplantation, perspective shift, cross-niche combination) to a niche, channel or video the user already likes. Returns the 10 strongest candidates, then episode topics for the chosen one. Called by long-video-story when the user picks the "niche" story style; also usable on its own.

long-video-publish

Prepare the YouTube packaging for the finished video: title options, a full description with chapters and credits, tags and hashtags, and thumbnail concepts with image prompts (made or handed over like the earlier image stages). Checks the text against YouTube limits and saves everything for the user to paste in. Use after long-video-render has produced the final video, or when the user asks for a YouTube title, description, tags, chapters or thumbnail.

long-video-render

Assemble the finished video and run the review loop. Builds the edit from the clips (or images with camera moves), voice, sound stems and captions, renders a low quality review version with scene numbers and time burned in so a client can review it, collects and applies changes (re-rendering reviews as often as needed), and when the user approves, renders the high quality final video. Uses a video editor with a CLI or MCP (FilmCraft, EffectCraft or another) if one is available and the user wants it, otherwise the bundled ffmpeg renderer. Use after long-video-sound, or when the user asks to render, assemble, export, preview or finalize the video.

long-video-sound

Video and animation skill. Create the sound effects, ambience and background music for the video and place them on the timeline. Plans the sound design from the approved script, sources or makes each sound (Openverse for openly licensed recordings and music, Earshot to make sounds from words and to listen to and judge sounds, Clipwing real-sfx to place real sounds on exact frames), records licences and credits, and mixes separate stems (effects, ambience, music) with the music ducked under speech. Or gives the user a fold

long-video-story

Agree on the story for a long video. The user either supplies a story or asks Claude to write one. When Claude writes, it first asks which story style to use (for example niche discovery, or a provocative-questions narration), runs that style's skill, and revises until the user approves. Use after long-video-setup, or when the user says "story for my video", "give me an idea", or wants to change an unapproved story. Ends only when the user explicitly approves the story.

long-video-voice

Create the spoken audio (narration and character voices) for the approved video script. First decides whether the video needs speech and asks the user to confirm. If yes, builds a voice cast (narrator plus each speaking character), makes a short sample of each voice with an available tool such as an ElevenLabs MCP and asks the user to approve the voices, then generates one audio file per spoken line with a name that holds the scene number and speaker. Or gives the user the lines, file names and folder to record or generate themselves. Use after long-video-clips (or long-video-keyframes), or when the user asks for narration, voiceover, voices or dialogue audio.

関連スキル