Communitygithub.com

akshayDev17/ai-explainer-video

为已完成视频生成YouTube章节和英文字幕。这是explainer-video-from-coursework流水线的第6阶段。

ai-explainer-video 是什么?

该技能是explainer-video-from-coursework流水线的第6阶段(共8阶段),专注于为已完成的视频生成YouTube章节和英文字幕。它读取项目中的timeline.json和narration文件,生成包含章节列表和简介的publish.json,并通过工具输出description.md(可直接粘贴的纯文本章节块)和captions.srt(SRT格式字幕)。章节标题基于旁白文本生成,字幕直接取自原始的narration文本以确保与音频一致。该技能包含严格的硬检查:首个时间码必须为0:00、至少3个章节、每个章节时长≥10秒、时间码升序、所有片段键可解析、标题≤40字符且无重复/近似重复、字幕时间码升序且不重叠。需要注意的是,章节功能依赖于YouTube频道的资格,未获得高级功能资格的频道将不会显示章节,但时间戳仍可作为跳转链接使用。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/akshayDev17/ai-explainer-video/tree/HEAD/skills/craft-video-publish

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

craft-video-publish — 章节和字幕

属于 explainer-video-from-coursework 流水线的一部分 — 第6阶段(共8阶段)。

流水线的工具和场景主机位于同级 explainer-video-from-coursework 技能中:以 node ../explainer-video-from-coursework/tools/<tool>.mjs 运行,相对于此技能文件夹解析。从项目根目录运行,因此 out/ 工作区将与你的笔记位于同一目录。

前置条件: out/<name>/<NN>/timeline.json 和 narration/<key>.src — 两者在场景阶段退出后即为最终版本。

智能体写入 out/<name>/<NN>/publish.json — 包含章节列表(segments 键 + title)和一段简介。工具会解析时间码、验证,并向 --dest 输出两个文件:description.md(简介、章节块、可直接粘贴的纯文本)和 captions.srt。

  • 章节 — M:SS Title,仅开始时间,默认每片段一个;分组是同一列表中的两个键,章节时间是第一个片段的窗口起始时间。标题根据旁白编写 — 绝不使用场景 stageNames(全大写、缺失、近似重复对)。
  • 字幕 — 每片段一个提示,文本来自 narration/<key>.src(构建WAV时使用的确切文本 — 音频是真相,而非 script.json)。
  • 硬检查 — 首个时间码 0:00 · 至少3个章节 · 每个≥10秒 · 时间码升序 · 每个片段键可解析 · 标题≤40字符,无重复/近似重复 · 提示升序且不重叠。

章节需要频道资质。 章节是YouTube的高级功能:未获得高级功能资格的频道将不显示任何章节,无论列表多么有效 — 其时间戳仍可作为跳转至章节的链接使用,但分段的进度条和Google关键时刻不会出现。description.md 中的任何内容都不会影响这一点,因此缺失章节不是格式错误:0:00(一位数字)、时间码后的 -、块上方的简介和2:39的运行时均已在符合条件的频道上实时验证,上述硬检查已反映YouTube的规则。

完成条件: publish 退出码为0,且两个文件与MP4位于同一目录。

维护

如果你修改此文件,或用户要求更改此阶段,请告知用户主 explainer-video-from-coursework 技能中的 “阶段 6 — /publish” 部分必须进行相应调整,并在回复中指明该部分。

Individual skills in this repo

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

akshayDev17/ai-explainer-video

Assemble one video from its segments — render each window silent, concatenate, mux the narration once, and verify. Stage 8 of explainer-video-from-coursework.

akshayDev17/ai-explainer-video

Synthesize narration and build the measured timeline for one video. Stage 4 of explainer-video-from-coursework — the one-shot TTS primitive.

akshayDev17/ai-explainer-video

Retitle and curate the videos in an explainer-video plan — write enrichment.json and merge it. Stage 2 of explainer-video-from-coursework; run it alone to retitle an existing plan.

akshayDev17/ai-explainer-video

Decompose a coursework notes directory into an explainer-video plan and prove no content-bearing section is dropped. Stage 1 of explainer-video-from-coursework; run it alone to (re)plan a directory.

akshayDev17/ai-explainer-video

Render one scene config over one time window to an MP4 (or a handful of QA stills). Stage 7 of explainer-video-from-coursework — the render primitive.

akshayDev17/ai-explainer-video

Author and iterate the animated visuals for one video's segments. Stage 5 of explainer-video-from-coursework; it re-invokes the audio stage when a beat needs a hold.

akshayDev17/ai-explainer-video

Write and validate the spoken narration for one explainer-video. Stage 3 of explainer-video-from-coursework; run it alone to (re)write a video's script.

akshayDev17/ai-explainer-video

Plan an explainer-video series from a directory of coursework notes — decompose into videos (proving nothing is dropped), retitle and curate, write the narration, synthesize the audio, author the visuals, then render and assemble the finished cut. Use when the user wants to turn structured coursework notes into explainer videos.

相关技能