Communitygithub.com

长视频发布

为已完成的视频准备 YouTube 发布包:标题选项、包含章节和致谢的完整描述、标签和话题标签,以及缩略图概念和图像提示。在 `long-video-render` 生成最终视频后使用,或当用户要求提供 YouTube 标题、描述、标签、章节或缩略图时使用。

长视频发布 是什么?

长视频发布是长视频工作流(第 10 阶段)中的最终准备阶段,旨在将所有创意和文本产出转化为可直接用于 YouTube 发布的打包内容。该阶段的核心功能包括生成 10 个不同角度的标题选项(每个不超过 60 字符),设计 3 个缩略图概念并附带详细的图像提示,以及根据视频脚本和最终时间线编写包含章节、链接和致谢的结构化描述。此外,它还自动生成 10-15 个标签,并保存为 `metadata.md`、`metadata.json` 和 `thumbnail-prompts.md` 文件。重要的是,该阶段仅负责准备文本和图像,绝不执行任何上传或发布操作,除非用户明确要求。该技能适用于 Claude Code 等 AI 代理平台,通过读取项目目录中的 `story.md`、`video-script.md` 等文件来获取上下文,并利用 `ffprobe` 获取视频时长。如果连接了 YouTube 研究 MCP 服务器,还可以进行可选的关键词研究。最终输出包括标题、描述、标签、缩略图提示(或生成好的缩略图),并全部保存在 `publish/` 目录中。技能严格遵循一系列规则,例如不夸大效果、不承诺未显示的内容、不伪造数据,并强制检查致谢和元数据。用户需在每一步进行确认,确保所有内容质量达标后,工作流才会标记为“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.

相关技能