agentleFS
ops120ops120/video-recap-skills-plus/skills/video-understanding/SKILL.md

video-understanding

Skill41 starsChanged 5 months agoMITView on GitHub

Analyze 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, 看懂视频.

  • Reads credentials
  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. zenstory-ai/video-recap-skills★ 549same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository5 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If work_dir/background_research.json exists (story research the agent did first, see references/research-guide.md), its synopsis and named …

    line 36
  2. Distinctive:

    Does NOT write narration / 解说词 or score it — that is video-script.

    line 69
  3. Distinctive:

    Does NOT cut, edit, voice, or render video.

    line 70
  4. Distinctive:

    Does NOT invent plot the signal doesn't support — it emits a substrate warning when ASR/VLM are thin, rather than fabricating.

    line 71
  5. Distinctive:

    Does NOT publish or schedule anything.

    line 72

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

What this does

Turns a source video into an understanding index an agent (or a downstream stage) can read:

  1. Scene detection — scenes.json (cut points, durations) + junk-scene filtering.
  2. Frame extraction — sampled frames for the visual analysis.
  3. ASR — asr_result.json (timestamped dialogue) via MiMo mimo-v2.5-asr.
  4. Silence detection — silence_periods.json (quiet windows, has_speech flag).
  5. VLM analysis — vlm_analysis.json (per-scene description, depth analysis, frame_facts).
  6. Timeline fusion + brief — timeline_fusion.json, asr_writing_chunks.json, agent_narration_brief.md.

Stateless: reusable stages are skipped only when their output and provenance sidecar match the current source video plus output-affecting settings. --force recomputes.

Requirements

# ffmpeg: brew install ffmpeg | apt install ffmpeg | choco install ffmpeg
export MIMO_API_KEY=***          # one key drives ASR (mimo-v2.5-asr) + VLM (mimo-v2.5)

ASR uses MiMo mimo-v2.5-asr; pass --skip-asr to skip dialogue transcription. The full understanding run still requires MIMO_API_KEY for VLM scene analysis. Optional MiMo scene-chunk video understanding: --mimo-video-overview.

If work_dir/background_research.json exists (story research the agent did first, see references/research-guide.md), its synopsis and named characters are folded into the VLM context, so scene descriptions can name people and read scenes with plot knowledge. Combine with --context for a quick inline hint.

Running the scripts below — the scripts/… paths are relative to this skill's own directory (the folder containing this SKILL.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.

Run

python3 scripts/understand.py <video> --work-dir <work_dir> \
  [--context "节目名/角色名"] [--scene-threshold 0.1] [--skip-asr] [--mimo-video-overview] [--force]

Output contract

FileContent
scenes.jsonscene cut list (start/end/duration)
asr_result.json[{start, end, text}] timestamped transcript
vlm_analysis.jsonper-scene description / depth / frame_facts
silence_periods.json[{start, end, duration, has_speech}] quiet windows
timeline_fusion.jsonVLM + ASR + silence overlap, unified timeline
asr_writing_chunks.jsonASR split at sentence boundaries, scene-aligned
agent_narration_brief.mdthe human/agent-facing writing brief (read this first)

Downstream, video-script reads the brief + index to write narration.json.

References

  • Background research before writing: references/research-guide.md (writes background_research.json).
  • Output JSON shapes: references/data-schema.md.

What this skill does NOT do

  • Does NOT write narration / 解说词 or score it — that is video-script.
  • Does NOT cut, edit, voice, or render video.
  • Does NOT invent plot the signal doesn't support — it emits a substrate warning when ASR/VLM are thin, rather than fabricating.
  • Does NOT publish or schedule anything; it writes artifacts to work_dir and stops.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.