Communitygithub.com

akshayDev17/ai-explainer-video

撰寫並驗證一個解說影片的口述旁白。這是「從課程內容製作解說影片」管線的第三階段;可獨立執行以(重)寫影片腳本。

ai-explainer-video 是什麼?

這個 AI 技能是「explainer-video-from-coursework」管線的一部分,專門負責解說影片的腳本創作與驗證。它屬於整個流程的第三階段,也是第一個針對單一影片進行處理的階段。開發者或 AI 代理可以將此技能獨立用於重寫或撰寫影片的旁白腳本,但需要先準備好一個「豐富化計畫」(enriched plan) 作為輸入,該計畫通常來自管線的前置階段。技能的核心工作流程包括:根據豐富化計畫中的影片資訊(如目標分鐘數、來源資料、藝術品素材)來撰寫結構化的 JSON 腳本,每個腳本對應一個視覺節拍,並透過 `key`、`text`、`style`、`visual` 和 `covers` 等欄位精準定義旁白內容與呈現方式。撰寫完成後,技能會使用內建的 `script-check.mjs` 工具進行自動驗證,確保腳本涵蓋計畫中所有指定的章節,且旁白字數與目標時長落在允許範圍內。若驗證通過(返回退出碼 0),即代表腳本合格;否則需根據錯誤訊息修正。此技能支援在終端機中與 `explainer-video-from-coursework` 管線的其他工具搭配使用,適合需要批次或迭代生成多個解說影片腳本的場景。

相容平台~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/ 暫存檔案能與您的筆記放在一起。

前置需求: 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(✓ 腳本有效)。若出現 UNCOVERED source section 錯誤或任何其他錯誤,表示腳本不完整。

腳本合約。

  • 語氣 — 一位冷靜、有條理的教師,透過故事來解釋;每個概念都以具體情境開始,然後逐步拆解。不加戲、不炒作;歡迎使用類比。
  • 粒度 — 每個視覺節拍一個段落。大約 40–80 字;硬上限為 130 字。
  • 每個段落包含 — key(唯一、簡短)、text(逐字念稿;不可包含網址、標記或程式碼)、style(表達方向)、visual(給後續場景階段的提示)、covers(此段落所講述的計畫章節),以及可選的 pad(停頓秒數)。
  • covers — 複製 plan.enriched.json 中的確切章節識別碼("src :: title @L<line>")。每個被指派的章節都必須出現在某個段落的 covers 中。
  • 時長預算 — 目標為 planTargetMinutes;保持在 55%–125% 的範圍內。

videoIndex、title、form、planTargetMinutes、sources、artefacts 皆從豐富化計畫的影片中複製;只有 text、style、visual、covers 是由您創作的。

維護

如果您修改此檔案,或使用者要求更改此階段,請告知使用者必須同步更新主要 explainer-video-from-coursework 技能中的 「Stage 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.

相關技能