agentleFS
45ck45ck/video-evaluator/skills/video-shots/SKILL.md

video-shots

Skill2 starsChanged 7 months agoMITView on GitHub

Extract coarse shot and scene-change segments from a local video, with optional representative frames for each part.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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. Distinctive:

    Use this when an agent needs to split a video into reviewable temporal parts before deeper storyboard or OCR analysis.

    line 8
  2. Very specific:

    Run this before or alongside storyboard-extract when you need a coarse map of the video.

    line 44
  3. Distinctive:

    Do not infer what happened inside a shot from the boundary alone.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Video Shots

Use this when an agent needs to split a video into reviewable temporal parts before deeper storyboard or OCR analysis.

This skill owns:

  • detecting scene-change boundaries with ffmpeg
  • writing video.shots.json
  • optionally extracting one representative frame per shot
  • giving downstream tools a reusable list of video parts

Inputs

Required:

{
  "videoPath": "./output/example-run/output.mp4"
}

Optional fields:

  • outputDir: directory for video.shots.json; defaults next to the video.
  • sceneThreshold: ffmpeg scene-change threshold, default 0.08.
  • minShotDurationSeconds: minimum segment duration, default 0.5.
  • extractRepresentativeFrames: whether to write video-shots/shot-*.jpg, default true.

Outputs

The result contains manifestPath and manifest. The manifest lists each shot with start/end seconds, duration, boundary type, representative timestamp, and representative frame path when frames were extracted.

Sequencing Guidance

Run this before or alongside storyboard-extract when you need a coarse map of the video. Use storyboard-extract for selected visual evidence and video-shots for segment boundaries.

Interpretation Notes

Shot boundaries are heuristic. They are useful for finding parts to inspect, but they do not prove semantic scene changes or user actions. Fast cuts, fades, camera movement, and overlays can affect detection.

Abstention Rules

Do not infer what happened inside a shot from the boundary alone. Inspect the representative frame, storyboard frames, OCR, timeline evidence, or the source video before making content claims.

Failure Modes

The runner requires ffmpeg and ffprobe. Very static videos may produce one long shot. Very noisy videos may produce many short shots, which are merged by minShotDurationSeconds.

Repo-side runner:

node --import tsx scripts/harness/video-shots.ts

Installed-pack runner:

node ./.video-evaluator/agent/run-tool.mjs video-shots

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.