Communitygithub.com

akshayDev17/ai-explainer-video

编写并验证一个解说视频的口头旁白。属于 explainer-video-from-coursework 管线的第 3 阶段;可独立运行以(重新)撰写视频脚本。

ai-explainer-video 是什么?

该技能专注于为解说视频生成和验证口述旁白脚本。它是 `explainer-video-from-coursework` 自动化管线(共 8 个阶段)中的第 3 阶段,也是首个按视频分别执行的阶段。技能要求输入一个已丰富的计划文件(`plan.enriched.json`),然后代理会基于此文件编写脚本 JSON 文件,并通过专用的验证工具 `script-check.mjs` 进行校验。脚本需要遵循严格的契约:采用“教师讲解”风格,每段脚本对应一个视觉节拍,字数控制在 40–130 词之间,并准确关联计划中的源章节。验证通过的标准是工具返回退出码 0 并显示“✓ script is valid”,任何错误(如遗漏源章节)都意味着脚本不完整。该技能适用于任何需要为教育或解说类视频创作脚本的场景,尤其适合与同系列的 enrich、scene 等阶段配合使用。

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

在你喜欢的 AI 中提问

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

文档

craft-video-script — 编写旁白

属于 explainer-video-from-coursework 管线 —— 第 8 阶段中的第 3 阶段,也是首个按视频执行的阶段。可独立运行:它只需要一个已丰富的计划文件,无需完整管线运行。

管线的工具和场景宿主位于同级的 explainer-video-from-coursework 技能中:使用 node ../explainer-video-from-coursework/tools/<tool>.mjs 运行(路径相对于此技能文件夹)。请从项目根目录运行,以便 out/ 暂存文件与笔记放在一起。

前置条件: enrich 阶段生成的 out/<name>/plan.enriched.json。

代理编写 out/<name>/scripts/<NN>-<slug>.json,然后进行验证:

node ../explainer-video-from-coursework/tools/script-check.mjs --script out/<name>/scripts/<NN>-*.json \
                            --plan out/<name>/plan.enriched.json

完成条件: 运行退出码为 0(✓ script is valid)。出现 UNCOVERED source section 错误 —— 或任何其他错误 —— 均表示脚本不完整。

脚本契约

  • 角色——一位冷静、有条理的老师,通过故事进行讲解;每个概念都以具体场景开头,然后逐步展开。不偏激、无热点;欢迎使用类比。
  • 粒度——每个视觉节拍对应一个片段。大约 40–80 词;硬上限为 130 词。
  • 每片段包含 —— key(唯一、简短)、text(逐字朗读;不要包含网址、Markdown 或代码)、style(表达方向)、visual(对场景阶段的提示)、covers(此片段所解说的计划章节),以及可选的 pad(静默保持时间,以秒为单位)。
  • covers——从 plan.enriched.json 中复制精确的章节标识("src :: title @L<行号>")。每个已分配的章节必须出现在某个片段的 covers 中。
  • 预算——以 planTargetMinutes 为目标;保持在其 55%–125% 的范围内。

videoIndex、title、form、planTargetMinutes、sources、artefacts 等字段从丰富计划中的视频部分复制而来;只有 text、style、visual、covers 需要自行创作。

维护

如果你修改了此文件,或者用户要求更改此阶段,请告知用户:主技能 explainer-video-from-coursework 中的 “第 3 阶段 — /script” 部分必须同步更新以保持一致,并在回复中注明该部分名称。

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

Generate YouTube chapters and English captions for one finished video. Stage 6 of explainer-video-from-coursework.

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

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.

相关技能