/video-recap-skills:video-scriptfrom video-recap-skills
Writes and validates timestamped Chinese narration scripts (解说词/旁白) for already-analyzed videos. Use after video-understanding has produced the brief and VLM analysis.
Ships in video-recap-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Authoring + validation of the narration script. The agent writes work_dir/narration.json
following the rules below; then validate.py lints it against the understanding index, and in
full mode time-aligns it to quiet windows.
Running the scripts below — the
scripts/…paths are relative to this skill's own directory (the folder containing thisSKILL.md). Claude Code runs commands from there, so they work as written. If your harness runs commands from the project root instead (opencode / Codex / OpenClaw commonly do), prefix this skill's absolute directory — e.g.<skill-dir>/scripts/…, using the directory your harness reports when it loads the skill. The scripts self-locate from their own path, so once started by the correct path they resolve their sibling skills and assets regardless of the working directory. Some steps here call the sibling video-recap skill'sscripts/(e.g.recap_inspect.py); resolve those the same way, via that skill's directory.
Read work_dir/agent_narration_brief.md (scenes, durations, quiet windows, char budget) first.
Digest long dialogue via asr_writing_chunks.json; judge "is there speech/a silent slot here?"
via timeline_fusion.json. Check raw vlm_analysis.json / asr_result.json for details.
In full mode, timestamps are original-video time. In orchestrated cut mode, pass 1 only writes clip_plan.json; after edited_source.mp4 exists, pass 2 writes narration.json in output timeline time.
写稿前先跑同捆 video-recap skill 的 scripts/recap_inspect.py(即 recap_inspect.py --work-dir <work_dir> state,用其绝对路径调起,见上方「Running the scripts」说明)看清楚当前模式、缺哪个产物、下一步该写什么。cut pass 2 写解说时用 recap_inspect.py --work-dir <work_dir> clip-map --output-start <s> --output-end <e>(或 --source-start/--source-end)核对输出↔原片时间轴,确认某段成片对应哪段原片、有没有跨剪辑边界或落进被剪掉的区间。
[
{"start": 5.0, "end": 12.0, "narration": "解说文本。", "pause_after_ms": 250, "overlaps_speech": true}
]
| Field | Meaning |
|---|---|
start / end | narration start/end seconds: original-video time in full mode; output timeline time in orchestrated cut pass 2 |
narration | narration text |
pause_after_ms | pause after segment, default 250 (keeps a tight rhythm) |
overlaps_speech | overlaps original dialogue; default true for continuous-bed style, false only in true silence |
Optionally also author original_subtitles.json — [{start,end,text}] (OUTPUT time) — the calibrated
original dialogue burned during the original-audio gaps (ASR errors/names fixed, only what is actually
spoken there). Rendered in 「」 to set it apart from narration. If omitted, assemble falls back to a
conservative auto-ASR mapping. See the brief's 原声留白字幕 section.
字数 / brief 头部 speech budget 估算,太长就拆块,太短就合并成完整想法。--context 或 background_research.json 给出角色名时优先使用。A separate quality pass (LLM-as-judge), distinct from the mechanical lint below. Needs the chat API key (same as VLM).
python3 scripts/review.py --work-dir <work_dir> (auto-detects cut mode and grounds against the OUTPUT timeline when a validated cut is present; pass --timeline source to force source grounding)narration_review.md. For every error finding (ESPECIALLY category=hallucination — a claim
not grounded in the visual/ASR evidence), revise narration.json and re-run review until either:
OK with zero error findings, ORwork_dir/narration_review_override.md naming WHICH finding
(segment + category), WHY it is acceptable, and who signed off. Unaddressed error findings with
no override entry mean the draft is NOT ready.validate.py — the hard gate).GATE rule: review NEVER blocks the tooling (it leans on a flaky chat API and a re-render is cheap).
validate.py is the deterministic hard gate. The override log makes "we saw the finding and chose to
ship it" auditable — review.py / validate.py never read it; it is a record for the human in the loop.
Override block shape — work_dir/narration_review_override.md (append-only):
## Override — <date>
- Finding: segment 4 / category=hallucination
- Reviewer said: "‘他早已知情’无画面/对白依据"
- Decision: KEEP — grounded in the --context synopsis (s2 reveal); reviewer lacked that context.
- Signed: <agent/human>
python3 scripts/validate.py --work-dir <work_dir> --mode full # or --mode cut
Writes narration_lint.json; in full mode rewrites narration.json with quiet-window alignment.
Fix any lint errors and re-run until clean.
The orchestrated video-recap --edit-mode cut flow is cut-first / narrate-second:
work_dir/clip_plan.json only, using original-time source ranges to keep.edited_source.mp4 and rebuilds the brief with kept clips on the output timeline.narration.json directly in output time (0..edited_source.mp4 duration). Validate with --mode cut_output via the orchestrator.The direct video-cut legacy path can still map original-time narration, but the orchestrated recap path does not use that remap.
{"target_duration": "10m", "clips": [{"start": 12.0, "end": 38.0, "reason": "冲突开端"}]}
剪辑模式写作要点(解说要对上剪后的画面,不是原片):
clip_plan.json 使用原片 source timestamps,挑出完整故事弧,不写解说。edited_source.mp4 已存在时,brief 会列出 kept clips 的 OUTPUT ranges;解说 beat 数量按实际剪后时长估算,不按原片时长。narration.json 的 [start,end] 直接落在剪后成片 0..total 时间轴上,不会再做 source→output 映射,也不会静默丢弃。片名/题材明确但缺乏剧情上下文时,先按 背景调研指南 写
background_research.json再写解说——否则解说只能"看图说话"。brief 在 substrate 偏薄时会把密度目标降为上限而非配额:宁可少写、写实,也不要为凑数堆画面描述。
review.py does NOT edit narration.json and does NOT block the pipeline — it is advisory.validate.py does NOT rewrite the meaning of the text — it only checks/aligns timing and quiet windows.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ops120/video-recap-skills-plus --plugin video-recap-skills6 skills in this plugin
/video-assembleAssemble a final recap video: mux narration audio over the source video, duck the original audio under the narration, render subtitles (SRT/ASS, optionally burned in), and loudness- normalize. Use as the last stage of the video-recap bundle. Consumes the source video + tts_meta.json (+ narration placement); produces recap_<name>.mp4 + subtitles.srt/.ass. 触发词: 视频合成, 混音, 字幕, 压字幕, assemble video, mux, ducking, subtitles, 成片.
/video-cutCut a long video down to selected source ranges (montage / clip assembly). Part of the video-recap bundle: in the orchestrated (two-pass) flow, consumes clip_plan.json + the source video, produces edited_source.mp4; the agent then writes narration.json against the output timeline. When invoked standalone WITHOUT --no-narration-map, also remaps an existing narration.json → narration_mapped.json (legacy single-pass path). 触发词: 视频剪辑, 剪辑式解说, video cut, clip plan, 拼剪.
/video-recapGenerate a Chinese-narration recap video from an input video, end to end. Use when the user gives a video file (.mp4 / .mov / .mkv / .webm) and asks to add narration, generate voiceover, dub, summarize, or produce a recap (短剧 / 电视剧 / 电影 / 纪录片 / 科普). Orchestrates the video-* skill bundle: understanding → (agent writes narration) → cut → voiceover → assemble. 触发词: 视频解说, 视频旁白, 生成解说, 视频recap, video recap, voiceover, narration, auto-dub, recap.
/video-understandingAnalyze a video into a structured understanding index: scene detection, ASR transcript, per-scene visual (VLM) analysis, silence windows, a fused timeline, and a narration-writing brief. Use to understand / index / summarize what happens in a video, or as the first stage of the video-recap bundle before writing narration. Input: a video file. Output: scenes.json, asr_result.json, vlm_analysis.json, silence_periods.json, timeline_fusion.json, agent_narration_brief.md. 触发词: 视频理解, 视频分析, 视频索引, video understanding, analyze video, 看懂视频.
/video-voiceoverSynthesize Chinese narration audio (TTS voiceover) from a timestamped narration.json. Use to turn a written narration script into per-segment speech audio, with MiMo TTS (mimo-v2.5-tts), dynamic speed fitting, and loudness handling. Part of the video-recap bundle: consumes narration.json (output-timeline time), produces tts_segments + tts_meta.json. In the legacy direct-cut path, narration_mapped.json may be passed explicitly instead. 触发词: 配音, 语音合成, TTS, 解说配音, voiceover, text to speech, 旁白配音.
Other plugins' skills for the same job