Communitygithub.com

長影片發佈

為完成的影片準備 YouTube 包裝內容:標題選項、包含章節與致謝的完整說明、標籤與主題標籤,以及縮圖概念與圖片提示。

長影片發佈 是什麼?

「長影片發佈」是長影片工作流程中的第 10 個階段,專為已完成的影片(例如由 `long-video-render` 產生)建立完整的 YouTube 發佈套件。它不會實際上傳或發佈任何內容,而是產生所有所需的文字與圖片素材,並將其組織在專案的 `publish/` 目錄下。此技能的主要功能包括:生成最多 10 個符合最佳實踐的標題選項、撰寫包含鉤子、章節時間戳、連結和致謝的結構化說明、建立最多 15 個標籤、設計多個帶有具體提示的縮圖概念,並在過程中檢查是否符合 YouTube 的字數限制。此技能支援多種 AI 代理平台,如 Claude Code、Coder 和 Codex,並且設計為在 `long-video-render` 完成後或使用者直接要求 YouTube 相關素材時使用。它整合了 `ffprobe` 和 `ffmpeg` 等外部工具來取得影片長度或提取影格,也支援 MCP 伺服器來進行選擇性的關鍵字研究,但會明確避免虛構不存在的搜尋數據。最終輸出包括 `metadata.md`、`metadata.json` 和 `thumbnail-prompts.md`,並更新 `project.json` 以標記階段為「publish-ready」。

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

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

長影片發佈 是做什麼的?

長影片工作流程的第 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. 請使用者選擇一個、合併兩個、編輯一個,或要求更多。如果要求更多,撰寫 10 個之前未顯示過的新標題,使用不同的角度。重複此步驟直到使用者同意一個標題。
  4. 保留 2 個備選標題,用於說明中的替代選擇(對標題測試有用)。

步驟 4:縮圖

  1. 撰寫 3 個縮圖概念。每個概念包含:主體與姿勢、背景、顏色、0 到 4 個疊加文字,以及它傳達的理念。遵循參考文件中的原則(一個清晰的焦點、高對比、在小尺寸下可讀、與標題相符但不重複)。
  2. 請使用者選擇一個或多個。三個不同的概念可用於 YouTube 上的縮圖測試(如果頻道有該功能)。
  3. 為每個選定的概念撰寫一個圖片提示。逐字使用來自 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 或更大,小於 2 MB,JPG 或 PNG 格式。必要時使用 ffmpeg 進行轉換或壓縮。
  7. 提議根據要求使用 ffmpeg 添加疊加文字。

步驟 5:說明

使用以下結構撰寫說明(詳細內容在參考文件中):

  1. 前兩行:鉤子與主要關鍵字。它們會在「顯示更多」之前顯示。
  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 <video seconds>

修正所有錯誤。考慮所有警告。

  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.

相關技能