Communitygithub.com

ロングビデオ公開準備

完成した動画のYouTube公開パッケージを準備します:タイトル案、チャプターとクレジットを含む完全な説明文、タグとハッシュタグ、サムネイルコンセプトと画像プロンプトを生成します。テキストをYouTubeの制限に照らしてチェックし、ユーザーが貼り付けられるように保存します。long-video-renderが最終動画を生成した後、またはユーザーがYouTubeのタイトル、説明文、タグ、チャプター、サムネイルを尋ねたときに使用します。

ロングビデオ公開準備 とは?

このスキルは、ロング動画ワークフローの第10ステージであり、YouTubeに公開するための完全なメタデータパッケージを生成します。AIエージェント(Claude Code、Cursorなど)向けに設計されており、タイトル案(10個)、チャプターとクレジットを含む説明文、タグとハッシュタグ、サムネイルコンセプト(画像プロンプト付き)を作成します。story.md、video-script.md、visual-bible.mdなどのプロジェクトファイルを読み込み、ffprobeで動画の長さを取得し、YouTubeの制限(タイトル100文字、タグ500文字など)を自動チェックします。サムネイルは3つのコンセプトを提案し、画像生成ツールが接続されていれば実際の画像も生成可能です。最終的にpublish/metadata.md、publish/metadata.json、publish/thumbnail-prompts.mdとして保存し、project.jsonのステージを更新します。このスキルは実際のアップロードは行わず、ユーザーが明示的に要求した場合のみアップロードツールの使用を提案します。

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

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

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

ドキュメント

ロングビデオ公開準備 は何をしますか?

ロング動画ワークフローのステージ10。出力:YouTube用のタイトル、説明文、タグ、サムネイルプロンプト(または完成サムネイル)を publish/ に保存します。

このステージはテキストと画像を準備します。アップロードや公開は行いません。

開始前の準備

  1. プロジェクトを ~/.long-video/projects/<slug>/ 内で見つけます。最適なタイミングは long-video-render が完了した後(project.json に final_video があるとき)です。承認済みのストーリーとスクリプトのみがある場合でも動作しますが、その場合はチャプターが動画完成までの推定値であることを注記します。
  2. 以下のファイルを読み込みます:story.md、video-script.md、film-style.md、visual-bible.md、存在すれば sound/credits.md、そして設定(言語、視聴者層、トーン、プラットフォーム、画像プロバイダー)。
  3. ffprobe を使用して最終動画の長さを取得します(ファイルが存在する場合)。存在しない場合はスクリプトの合計再生時間を使用します。
  4. publish/ が既に存在する場合は、続行するか、一部をやり直すかを尋ねます。

ステップ1: 設定で分からないことを尋ねる

不足している情報のみを、短いグループとして一度に尋ねます。ユーザーが「任せる」と言った場合はデフォルト値を使用します。

  • チャンネル:名前、ニッチ、通常のタイトルスタイル、既存の署名やコールトゥアクション。設定に channel プロファイルがある場合はそれを表示し、「変更はありますか?」と尋ねます。
  • メタデータの言語:デフォルトは動画の言語。
  • 必ず含めるもの:キーワード、名前、リンク(ウェブサイト、ソーシャル、シリーズプレイリスト)。
  • 避けるもの:避けるべき単語や主張。
  • 目標:より多くの検索、より多くの提案表示、または固定視聴者の獲得。これによりタイトルのスタイルが決まります。

回答を設定内の channel プロファイルとして次回のために保存することを提案します。

ステップ2: リサーチ(任意)

キーワードやタイトルのリサーチツール(例:YouTubeリサーチMCPサーバー)が接続されている場合は、使用を提案します。クレジットが消費される可能性があることをユーザーに伝えます。以下の用途に使用します:キーワードのアイデア、競合タイトルの見え方、タイトルスコア。ツールがない場合は、ストーリーから作業し、検索データは使用しなかったことを伝えます。検索ボリューム、視聴回数、ランキングを捏造してはいけません。

ステップ3: タイトル

references/youtube-metadata.md を読み込みます。

  1. 動画のタイトル案を10個作成します。異なるアングル(好奇心、質問、メリット、数字、対比、ストーリー)をカバーします。各タイトル:
    • 可能な限り60文字以内、最大100文字、
    • メインキーワードを前方に配置、
    • 真実であること:動画はタイトルが約束する内容を提供しなければならない、
    • 言語、トーン、視聴者層に適合していること。
  2. 番号付きで表示し、それぞれにアングルと一行の理由を添えます。上位3つの推奨を示します。
  3. ユーザーに1つ選ぶ、2つを組み合わせる、1つを編集する、またはさらに案を求めるよう尋ねます。さらに案を求められた場合は、まだ表示していない新しいタイトルを10個、異なるアングルで作成します。ユーザーが1つのタイトルに同意するまで繰り返します。
  4. 説明文内の代替案(タイトルテストに有用)のために、次点のタイトルを2つ保持します。

ステップ4: サムネイル

  1. 3つのサムネイルコンセプトを作成します。それぞれ以下を含みます:被写体とポーズ、背景、色、0~4語のオーバーレイテキスト、そしてそれが伝えるアイデア。参考資料の原則(明確な焦点、高いコントラスト、小さなサイズでも読みやすい、タイトルと一致しつつ繰り返さない)に従います。
  2. ユーザーに1つ以上選択するよう尋ねます。3つの異なるコンセプトは、チャンネルがその機能を持っている場合、YouTubeのサムネイルテストに使用できます。
  3. 選択された各コンセプトに対して1つの画像プロンプトを作成します。visual-bible.md の固定アートスタイルブロック、フィルムスタイル行、エンティティ説明をそのまま使用し、添付する参照画像(キャラクター画像とシート)をリストアップします。フォーマットとサイズのルールは参考資料にあります。デフォルトでは画像プロンプトの外にオーバーレイテキストを配置します(画像生成機がテキストを歪めることが多いため)。その旨を伝え、テキスト、フォントの提案、後で追加するための位置を指定します。ユーザーがテキストを画像内に含めたい場合は含めて警告します。
  4. 動画のフレームをベースとして使用できます。ffmpegを使用して最終動画から候補フレームを抽出することを提案します。
  5. ファイル名を publish/thumbnail/thumbnail_<NN>_<label>.png とします。プロンプトのヘッダーは、以前の画像ステージと同様にファイル名を保持します。
  6. プロンプトのみ、画像、または両方(long-video-assets と同様)を尋ねます。
    • プロンプトのみ:publish/thumbnail/ を作成し、フルパスを表示し、その名前で画像をそこに保存するようユーザーに伝えます。
    • 画像または両方:../long-video-assets/references/image-generation.md を読み込み、それに従います(メソッド発見、ブラウザルール、リトライ、ステータス)。16:9で生成し、サイズを確認します:1280x720以上、2MB未満、JPGまたはPNG。必要に応じてffmpegで変換または圧縮します。
  7. 必要に応じてffmpegでオーバーレイテキストを追加することを提案します。

ステップ5: 説明文

以下の構造で説明文を作成します(詳細は参考資料):

  1. 最初の2行:フックとメインキーワード。「もっと見る」の前に表示されます。
  2. 動画の短い要約(2~4文、自然言語)。
  3. チャプター:スクリプトのシーンと最終タイムラインから作成したタイムスタンプ。最初は 0:00。最低3つ、それぞれ最低10秒。明確で短い名前を使用します。
  4. チャンネルプロファイルからのリンクとコールトゥアクション。
  5. ノンフィクション動画の場合のソース:ストーリーの「確認すべき事実」から確認された項目。確認されていないソースはリストアップしてはいけません。
  6. クレジット:sound/credits.md の行をそのままコピー。CC BYなどのライセンスでは必須です。
  7. 最後に最大3つのハッシュタグ。
  8. 動画にリアルなAI生成または改変コンテンツが含まれる場合の開示リマインダー(参考資料を参照)。アップロードフォームで確認するようユーザーに伝えます。

ステップ6: タグ

10~15個のタグを作成します:最初にメインキーワード、次に類似語、トピック語、いくつかの広義の用語。総文字数はカンマを含めて最大500文字。タグはランキングにほとんど影響しないため、詰め込みすぎないようにします。

ステップ7: チェック、レビュー、保存

  1. publish/metadata.json に title、description、tags を書き込みます。以下を実行します:
node <skill folder>/scripts/check-metadata.mjs publish/metadata.json --duration <動画の秒数>

すべてのエラーを修正します。すべての警告を検討します。

  1. タイトル、説明文、タグ、サムネイルコンセプトを1つの短い要約でユーザーに表示します。変更を求めます。変更を適用し、再度チェックを実行し、ユーザーが明示的に承認するまで繰り返します。
  2. 保存します:
    • publish/metadata.md:タイトル、次点タイトル、説明文、タグ、ハッシュタグ、チャプター、サムネイルテキスト。コピー可能な状態。
    • publish/metadata.json:同上、機械可読。
    • publish/thumbnail-prompts.md:サムネイルプロンプトとファイル名。
  3. project.json を更新します:"stage": "publish-ready" とパス。
  4. パスと、最終動画が render/final/ にあることをユーザーに伝えます。ユーザーがアップロードするか、アップロードツールが存在する場合はClaudeに手伝ってもらうよう伝えます。明確な要求なしにアップロードしないでください。要求された場合、送信前にタイトル、プライバシー設定(最初は非公開または限定公開を推奨)、ファイルを確認します。
  5. 設定にチャンネルプロファイルを保存することを提案します。
  6. 停止します。ユーザーが要求し、そのステージが存在する場合を除き、以降のステージを開始しないでください。

ルール

  • タイトルやサムネイルのパフォーマンスを決して主張しないでください。選択肢の根拠を説明します。
  • 動画が実際に表示しない内容を約束するタイトルやサムネイルを作成しないでください。
  • 検証されていないソースをリストアップしないでください。事実、統計、引用を捏造しないでください。
  • ライセンスされた音声のクレジットを省略しないでください。
  • ユーザーの明示的な要求なしに公開またはアップロードしないでください。
  • サムネイルプロンプトに実在の人物の名前や肖像、または商標を使用しないでください。
  • チャットメッセージは短く保ちます。完全なテキストは publish/ に配置します。

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-clips

Turn the start and end frame images into video clips, one per scene. Asks whether the user wants AI video clips or will use only images (then the stage is skipped). If clips are wanted, finds an available video generator (MCP, API, local tool, or browser such as Higgsfield) or asks the user for one, and generates the clips; or hands the user a folder, a detailed professional prompt per scene, the clip file name, and the start and end image names to make the clips themselves. Use after long-video-keyframes, or when the user asks for video clips, image-to-video prompts or animated scenes.

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-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.

関連スキル