agentleFS
steven-van-opussteven-van-opus/gtavi-opusclip/skills/vodwatch/SKILL.md

vodwatch

Skill2 starsChanged 14 days agoMITView on GitHub

Watch an entire stream VOD (hours long) on the user's machine and find the moments worth clipping. Downloads only the audio, transcribes it with whisper.cpp, scores every 30-second window on loudness spikes, reaction words and speech, checks the top picks on frame sheets, and writes an OpusClip job plan with a credit estimate. Use for "scan this VOD", "find the best moments in this stream", or any VOD longer than an hour.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 are 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.

  • 5

    Very specific

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

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

    Check the whisper model with python3 -I "${CLAUDE_PLUGIN_ROOT}/scripts/doctor.py".

    line 13
  2. Distinctive:

    Only the audio track is downloaded, and it is stored as 32 kbps mono: about 350 MB for a 24-hour stream.

    line 15
  3. Distinctive:

    If the stream is still live, the script stops.

    line 29
  4. Very specific:

    Read gtavi/scans/<slug>/moments.md.

    line 33
  5. Very specific:

    Read every sheets/NN_*.jpg (12 frames across the moment) and apply the pick-moments rubric.

    line 34
  6. Very specific:

    If plan.json has "timeline": {"state": "unchecked"} (or "pending"), its times come from the VOD's 2-second fragments.

    line 48
  7. Very specific:

    Ask before anything is sent, then continue with the opusclip-clip skill.

    line 49

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

vodwatch: the whole VOD, scanned locally

1. Prepare

  • From $ARGUMENTS take the source (VOD URL, YouTube id or local file) and the number of clips (default 8).
  • Choose the folder gtavi/scans/<streamer>-<id>/.
  • Check the whisper model with python3 -I "${CLAUDE_PLUGIN_ROOT}/scripts/doctor.py".
  • Tell the user what to expect:
    • Only the audio track is downloaded, and it is stored as 32 kbps mono: about 350 MB for a 24-hour stream. From a processed YouTube VOD, yt-dlp first fetches format 139 (48 kbps, about 520 MB for 24 h), which is deleted once the 32 kbps track is written.
    • whisper.cpp large-v3-turbo ran at about 29× real time on the Apple Silicon Mac this plugin was built on, so 24 h of audio takes under an hour there. Slower machines can pass --model with a smaller model.

2. Run

python3 -I "${CLAUDE_PLUGIN_ROOT}/scripts/vodwatch.py" run "<source>" --clips <N> \
  --out gtavi/scans/<slug> --credit "<Streamer> (<Platform>)"
  • For a multi-hour VOD, run it in the background. It resumes: finished audio fragments (or yt-dlp's partial download) and finished 20-minute transcript chunks are kept.
  • The steps are resolve → audio → loudness and transcript (scan_vod.py) → ranking (rank_moments.py) → frame sheets (frame_sheet.py) → OpusClip plan (plan_jobs.py) → report.md.
  • Audio: before every download, vodwatch asks yt-dlp how YouTube serves the VOD (yt-dlp --print protocol; nothing is downloaded). Right after a stream it is often http_dash_segments: 2-second fragments that yt-dlp --download-sections can't cut, so ytfrag.py track fetches them. Once YouTube has processed the VOD into whole files (https; the launch-day VODs took about a day), every fragment request would return the whole file, so yt-dlp downloads the audio instead (-f 139/ba/w). Twitch and Kick go through yt-dlp -f ba/w, local files through ffmpeg, and report.md says which way the audio came. Frame sheets and cuts make the same check before every window. A scan of the fragments keeps their timeline, and the processed VOD can play it later (IShowSpeed's launch VOD: 144 s), so before sheets, cuts and the plan, timeline.py measures that shift once (a minute of the processed audio cross-correlated with audio.m4a), keeps it in run.json as timeline_offset and adds it; a weak match stops and asks for a re-scan, and report.md has a - Timeline: line.
  • Faster path: --captions youtube ranks on YouTube's auto-captions when they exist and skips whisper. They have no punctuation, so the ranking is a little weaker.
  • If the stream is still live, the script stops. Scan the VOD once it is finished.

3. Review, don't trust blindly

  1. Read gtavi/scans/<slug>/moments.md. Each candidate has in/out times, a score, the reasons ("volume spike +5.4 dB", reaction words, exclamations) and flags (profanity to bleep, slurs, sexual or drug terms, music).
  2. Read every sheets/NN_*.jpg (12 frames across the moment) and apply the pick-moments rubric. Drop menus, loading screens, AFK stretches, cutscenes, spoilers and anything with a hard flag.
  3. The scan hears; it can't see. A silent visual moment, such as a backflip on facecam, can be missed. If the user or fan comments name a timestamp, sheet it directly: python3 -I "${CLAUDE_PLUGIN_ROOT}/scripts/frame_sheet.py" --source <id> --start h:mm:ss --end h:mm:ss --out gtavi/scans/<slug>/sheets/manual.jpg
  4. Re-plan with only the keepers:

    python3 -I "${CLAUDE_PLUGIN_ROOT}/scripts/plan_jobs.py" gtavi/scans/<slug>/moments.json --ranks 1,3,4,7 \
      --source-duration <seconds> --credit "<Streamer> (<Platform>)" --title-prefix "<Streamer>" \
      --out gtavi/scans/<slug>/plan.json --cut-dir gtavi/cuts

4. Hand off

  • Show the user the picks (time, what happens, flags) and the plan: number of jobs, route (url = OpusClip imports the link with a time range; upload = cut locally and upload, for sources over 10 h or Kick), and estimated credits.
  • If plan.json has "timeline": {"state": "unchecked"} (or "pending"), its times come from the VOD's 2-second fragments. cut_windows.py --plan checks them by itself; for url jobs run python3 -I "${CLAUDE_PLUGIN_ROOT}/scripts/timeline.py" --plan gtavi/scans/<slug>/plan.json once YouTube has processed the VOD, before anything is sent (opusclip_api.py batch holds those jobs back until then).
  • Ask before anything is sent, then continue with the opusclip-clip skill.
  • Log provenance (VOD id, in/out, scan date, credit) in gtavi/provenance.csv.

Numbers for the launch post

report.md lists hours scanned, windows scored, strong moments found, wall time per step and compute cost ($0, all local). Quote them exactly as written there.

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.