/video-recap-skills:video-recapfrom video-recap-skills
Generates a Chinese-narration recap video from an input video end-to-end. Orchestrates understanding, narration writing, cutting, voiceover, and assembly. Use when user asks to add narration, voiceover, dub, or summarize.
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.
A thin orchestrator over five independent, self-contained skills (each in skills/, sharing only
JSON/MP4 artifacts in a work_dir — no shared code):
video-understanding ─▶ (agent writes narration.json per video-script) ─▶ [video-cut] ─▶ video-voiceover ─▶ video-assemble
It is resume-safe: rerun the same command after writing narration.json to continue.
Phase B validates recap_run_manifest.json so an old work_dir from another source video or
different run settings is rejected instead of silently reusing stale narration. Understanding
artifacts are reused only when their provenance matches. For per-stage detail, read each skill's own SKILL.md.
# ffmpeg: brew install ffmpeg | apt install ffmpeg | choco install ffmpeg
export MIMO_API_KEY=*** # ONE key drives ASR + VLM + TTS (all MiMo)
The whole pipeline runs on ffmpeg + a single MiMo key: ASR (mimo-v2.5-asr), VLM (mimo-v2.5),
TTS (mimo-v2.5-tts). tp-* Token Plan keys default to the cn cluster (MIMO_TOKEN_PLAN_CLUSTER).
Optional MiMo scene-chunk video understanding: --mimo-video-overview.
Overridable defaults (zero-config otherwise): see references/config-playbook.md.
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.
If you can identify the source (show, film, topic), research it before analyzing and write
work_dir/background_research.json (see video-understanding/references/research-guide.md).
video-understanding folds it into the VLM context, so scene analysis can name characters and read
scenes with plot knowledge instead of labelling everyone "黑衣男子". Skip it when you can't research.
python3 scripts/recap.py <video> --work-dir <work_dir> --context "背景"
Runs video-understanding (using background_research.json if you wrote it), writes
agent_narration_brief.md, and pauses. Then write work_dir/narration.json following the
video-script skill (read the brief first).
Cut mode (--edit-mode cut --target-duration 10m) also requires clip_plan.json.
Multi-video is cut-only. Use multiple positional videos plus --edit-mode cut; the generated project brief lists stable source_id values, and every clip_plan.json clip must include the chosen source_id:
python3 scripts/recap.py ep1.mp4 ep2.mp4 --edit-mode cut --target-duration 10m --work-dir work_dir_multi_ep
Optional filesystem material library:
python3 scripts/recap.py ep1.mp4 --material-library-dir .video-materials --save-materials
python3 scripts/recap.py ep1.mp4 ep2.mp4 --edit-mode cut --material-library-dir .video-materials --use-materials
Search is plain grep over JSON/MD/JSONL (for example grep -R "keyword" .video-materials). No raw media, DB, embeddings, or semantic search are part of the MVP.
Rerun the same command (narration.json now exists):
python3 scripts/recap.py <video> --work-dir <work_dir> # [--edit-mode cut] [--no-burn-subtitles]
This validates the narration, (cut: builds edited_source.mp4), synthesizes the voiceover, and
assembles recap_<name>.mp4.
--edit-mode dub)Translates an English video into Chinese and replaces the speech with the ORIGINAL
speaker's cloned voice (mimo-v2.5-tts-voiceclone, same MiMo key) — distinct from recap/解说,
which overlays Chinese commentary on ducked audio. Same one-pause shape:
python3 scripts/recap.py <video> --edit-mode dub --work-dir <work_dir> # prepare → pauses
Prepare transcribes the English audio in timed windows and pulls one reference clip, then writes
dub_brief.md + dub_transcript.json. The agent does all the judgment (like recap's narration):
write work_dir/dub_script.json = [{"start": s, "end": s, "zh": "译文"}, …] (ascending by
start) — translate every utterance faithfully on the source timeline and give each its source
[start, end] so the dub tracks the original's rhythm (don't drop a hook, merge, or condense; if
the original repeats, the dub repeats in sync). Keep each line speakable within its span (~5
chars/s). Rerun the same command to render dub_<name>.mp4 — each line is cloned in the original
voice and time-fit to its [start, end] (placed at its start; only sped up if it would overrun the
next line, never globally — so the voice tracks the picture). v1: single speaker, full-track
replace (no background-music separation).
python3 scripts/recap.py --doctor
recap_<video>.mp4 — final video · subtitles.srt / .ass — subtitleswork_dir/ — all intermediate artifacts (the inter-skill contract; see references/data-schema.md)--context, --scene-threshold, --style, --edit-mode {full,cut,dub}, --target-duration,
--skip-asr, --mimo-video-overview, --consolidate, --consolidate-asr, --mimo-tts-voice,
--no-burn-subtitles (burn is on by default), --output-dir, --material-library-dir, --use-materials, --save-materials.
references/config-playbook.md (opens in a new tab)references/data-schema.md (opens in a new tab)references/timeline-and-jianying.md (opens in a new tab)scripts/doctor.py (opens in a new tab)scripts/lib.py (opens in a new tab)scripts/materials.py (opens in a new tab)scripts/recap.py (opens in a new tab)scripts/recap_inspect.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
video-recap, narration, voiceover, chinese-narration, video-processing, ffmpeg
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-scriptWrite a timestamped Chinese narration script (解说词 / 旁白) for an already-analyzed video, then lint/validate it. Use after video-understanding has produced agent_narration_brief.md + vlm_analysis.json, when you need to author the recap narration (style, anti-hallucination, 字数公式, density, hook/throughline). Input: the understanding index in work_dir. Output: narration.json (validated). 触发词: 解说词, 写解说, 视频旁白, narration script, 写稿, 解说文案.
/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