agentleFS
agentik-osagentik-os/claude-code-skills/watch/SKILL.md

watch

Skill1 starsChanged 55 days agoMITView on GitHub

Watch and analyze any video like a marketer with eyes. Give it a URL (YouTube, TikTok, Instagram, Loom, X, anything yt-dlp supports) or a local file: it downloads, extracts scene-change frames, runs a 0-10s hook microscope (dense 2fps frames plus word-level opening transcript), builds a captions-first transcript (Whisper fallback via GROQ_API_KEY or OPENAI_API_KEY, optional), and writes a structured report.md with pacing, hook words, key moments, and quotables. The canonical video-analysis primitive of the marketing machine: competitor hook analysis feeding ads-hooks, ads-video, ad-creative, scriptwriter, social-content, YoutubeContent, art-director-content-engine. Use when the user says '/watch', '/omg-watch', 'watch this video', 'analyze this video', 'analyze this ad', 'hook analysis', 'what does this competitor video do', 'transcribe this video', or in French 'regarde cette vidéo', 'analyse cette vidéo', 'analyse le hook', 'décortique cette pub', 'transcris cette vidéo'. NOT for generating videos (that is higgsfield-generate or the hyperframes suite) and NOT for scripted browser E2E (that is Playwright per R-BROWSER): /watch analyzes existing footage.

  • Reads credentials
  • Deletes or force-pushes
  • Installs packages

48 other projects use a version of this, 14 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use decision-map, map and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Mathews-TomSkill

    decision-map

    Use when mapping unresolved architecture, policy, or scope decisions before planning, or working one decision ticket, including a prototype ticket whose throwaway evidence the prototype package builds. Also applies to "map the decisions", "decision map", and "wayfinder". Not for implementation slices of a known feature, milestone plans, general UI generation, standalone prototypes outside a decision map (use prototype), or adopting experimental code into production.

    Also in 3 projects that use this

  • AWSSkill

    map

    Map verified service capabilities against customer-provided control framework and threat model. Produces mapping-results.json, controls-catalog.md, and framework-mapping.md. Supports pluggable frameworks: CCMv4, NIST 800-53, CIS Benchmarks, ISO 27001, etc. Split into 4 focused sub-skills for better accuracy; this skill orchestrates them.

    Also in 3 projects that use this

  • dubwoahSkill

    ask

    Answer questions about the codebase without generating or modifying any code. Use when the user wants to understand how something works, find where something is defined, or explore the project structure. Invoked with /ask.

    Also in 3 projects that use this

  • javatarzSkill

    wiki

    Access and manage the local GitHub Wiki clone. Use this skill when you need to read wiki content (architecture, design docs, guides), update wiki documentation, check wiki status, or push wiki changes. The wiki contains high-level system design and architectural documentation.

    Also in 3 projects that use this

  • renatorozasSkill

    grill

    Adversarial code review. Don't let me ship until the changes pass your scrutiny.

    Also in 3 projects that use this

  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 7 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. 0 are common, 6 are distinctive, and 13 are very specific to this project.

  • 0

    Common

    Most of the 44 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 13

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Python interpreter: every python3 ... command in this skill is for macOS/Linux.

    line 47
  2. Very specific:

    Before every /watch run, verify that dependencies and an API key are in place:

    line 49
  3. Distinctive:

    If the user hands you a long video, consider asking whether they want a specific section before burning tokens on a sparse scan.

    line 94
  4. Very specific:

    When working inside a project checkout, pass --out-dir agentic/reports/watch/<slug>/ (OmegaOS convention for visible agent outputs).

    line 119
  5. Very specific:

    When the user asks about a specific moment — "what happens at the 2 minute mark?", "zoom into 0:45 to 1:00", "the first 10 seconds" — pass …

    line 123
  6. Very specific:

    OPTIONAL - Obsidian users only: Run Steps 4.4 and 4.5 ONLY when the user explicitly asks for Obsidian ingestion or an Obsidian vault is …

    line 170
  7. Very specific:

    Cleanup implication for Step 4.5: if the user picks "No, drop it" at 4.5 AND a vault was staged at 4.4, ALSO rm -rf …

    line 189
  8. Very specific:

    If $VAULT_DIR/CLAUDE.md exists: Read it to refresh the Ingest op definition — that file is authoritative.

    line 206
  9. Very specific:

    If no $VAULT_DIR/CLAUDE.md exists: Run a generic ingest — read the report, identify entities + concepts, append a one-line entry to …

    line 207
  10. Very specific:

    Do NOT touch the wiki. Do NOT append to log.md.

    line 212
  11. Very specific:

    Whisper API fallback: If no captions came back (or the source is a local file), the script extracts audio (ffmpeg -vn -ac 1 -ar 16000 -b:a …

    line 226
  12. Distinctive:

    If you already watched a video this session and the user asks a follow-up, do not re-run the script — you already have the frames and …

    line 249
  13. Very specific:

    When ingest is consented to: reads and writes pages under $VAULT_DIR/wiki/ (entities, concepts, sources, index.md) and appends to …

    line 262
  14. Distinctive:

    Does not access any platform account (no login, no session cookies, no posting)

    line 266
  15. Very specific:

    Does not share API keys between providers (Groq key only goes to api.groq.com, OpenAI key only goes to api.openai.com)

    line 267
  16. Distinctive:

    Does not log, cache, or write API keys to stdout, stderr, or output files

    line 268
  17. Very specific:

    Does not persist anything outside the working directory and ~/.config/watch/.env (and the vault when ingest is consented to) — clean up the …

    line 269
  18. Distinctive:

    Does not write to the vault without explicit user consent at the Step 4.5 prompt

    line 270
  19. Distinctive:

    Does not silently overwrite wiki claims — contradictions surface as WARN flags per the Ingest op contract

    line 271

“Common” is measured: kept by at least 6 in 10 of the 44 edited versions of this file we could read. “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

/watch — Claude watches a video

OmegaOS skill - vendored from taoufik123-collab/claude-watch @ 7871c7e (MIT; builds on bradautomates/claude-video by Bradley Bonanno, see AUTHORS.md). Triggers /watch and /omg-watch. The canonical video-analysis primitive of the marketing machine (R-MARKETING): competitor hook analysis feeding ads-hooks, ads-video, ad-creative, scriptwriter, social-content, YoutubeContent, art-director-content-engine. Runtime deps: ffmpeg + yt-dlp on PATH - documented below, NEVER auto-installed by install.sh. Optional Whisper fallback needs GROQ_API_KEY or OPENAI_API_KEY.

You don't have a video input; this skill gives you one. A Python script downloads the video, extracts frames as JPEGs (one per detected shot via scene-change), gets a timestamped transcript (native captions first, then Whisper API as fallback), runs editorial pacing metrics, and microscopes the first 10 seconds at higher density. You then Read each frame path to see the images, combine them with the transcript to answer the user, fill the structured report.md, and (only when the user opted in, see Steps 4.4-4.5) ingest the analysis into their Obsidian vault.

What v2 does differently

  • Scene-change frame sampling — one frame per detected shot instead of uniform ticks. Cuts the frame budget on long videos while capturing every transition.
  • Editorial pacing metrics — cuts/min, mean shot length, motion (when available). Lets you reason about pacing the way an editor does.
  • Hook microscope — first 10s auto-runs at 2 fps + word-level Whisper. The single most leveraged 10 seconds of any video deserves dense treatment.
  • Structured report.md — every watch emits an ingest-shaped report at <workdir>/report.md with TL;DR, key moments, hook breakdown, editorial profile, quotable moments, entities, concepts, and transcript. Narrative sections are emitted as <!-- pending Claude fill: ... --> markers — you fill them in before offering ingest.
  • Step 4.5 — Ingest gate — after answering the user, you ask once: "Want to ingest this into your Obsidian vault?" If yes, and a vault is detected, you read $VAULT_DIR/CLAUDE.md (if it exists) and run that vault's Ingest op against the report.

None of the above add new dependencies — pure ffmpeg + stdlib + the existing Whisper backend.

Configuration — finding the user's Obsidian vault (optional)

Steps 4.4 and 4.5 stage the report inside an Obsidian vault so the user can read it where they read everything else. Resolve the vault directory in this order — first hit wins, and the result is what $VAULT_DIR refers to everywhere below:

  1. $WATCH_VAULT_DIR env var — if set and the path exists, use it. This is the user-controlled override.
  2. ~/Second brain/ — if it exists as a directory.
  3. ~/Documents/Obsidian/ — if it exists as a directory.
  4. ~/Obsidian/ — if it exists as a directory.
  5. None found — skip Steps 4.4 and 4.5 entirely. Print one line in chat so the user knows what happened: 📄 Report (no vault detected): <workdir>/report.md. Suggest they set WATCH_VAULT_DIR if they want auto-ingest.

A quick way to resolve it in bash inside the skill:

VAULT_DIR="${WATCH_VAULT_DIR:-}"
if [ -z "$VAULT_DIR" ] || [ ! -d "$VAULT_DIR" ]; then
  for candidate in "$HOME/Second brain" "$HOME/Documents/Obsidian" "$HOME/Obsidian"; do
    if [ -d "$candidate" ]; then VAULT_DIR="$candidate"; break; fi
  done
fi

The vault's URL-name (for the obsidian:// URL scheme in Step 4.4) is the final path component — e.g. $HOME/Second brain → Second brain. URL-encode spaces as %20.

Step 0 — Setup preflight (runs every /watch invocation, silent on success)

Python interpreter: every python3 ... command in this skill is for macOS/Linux. On Windows, substitute python — the python3 command on Windows is the Microsoft Store stub and will not run the script.

Before every /watch run, verify that dependencies and an API key are in place:

python3 ~/.omega/skills/watch/scripts/setup.py --check

This is a <100ms lookup. On exit 0, the script emits nothing — proceed to Step 1 without comment. Do NOT announce "setup is complete" to the user — they don't need a status message on every turn. The only acceptable user-visible output from Step 0 is when remediation is required.

On non-zero exit, follow the table:

ExitMeaningAction
2Missing binaries (ffmpeg / ffprobe / yt-dlp)Run installer
3No Whisper API keyRun installer to scaffold .env, then ask user for a key
4Both missingRun installer, then ask for a key

The installer is idempotent — safe to re-run:

python3 ~/.omega/skills/watch/scripts/setup.py

On macOS with Homebrew, it auto-installs ffmpeg and yt-dlp. On Linux/Windows, it prints the exact install commands for the user to run. It scaffolds ~/.config/watch/.env with commented placeholders at 0600 perms, and writes SETUP_COMPLETE=true once deps + a key are in place so the next session knows this user has already been through the wizard.

If an API key is still missing after install: the key lookup chain is environment variable first, then ~/.config/watch/.env, then ~/.omega/secrets/integrations.env (OmegaOS standard, gitignored); on an OmegaOS box the key is often already in integrations.env and the check passes without any writing. Otherwise use AskUserQuestion to ask the user whether they have a Groq API key (preferred — cheaper, faster) or an OpenAI key. Then write it into ~/.config/watch/.env — set the matching GROQ_API_KEY=... or OPENAI_API_KEY=... line. If they don't want to set up Whisper, proceed with --no-whisper and tell them videos without native captions will come back frames-only.

Structured mode (optional): python3 ~/.omega/skills/watch/scripts/setup.py --json emits {status, first_run, missing_binaries, whisper_backend, has_api_key, config_file, platform} where status is one of ready | needs_install | needs_key | needs_install_and_key. Use this when you need to branch on specifics (e.g. "is this the user's very first run?" → first_run: true).

Within a single session, you can skip Step 0 on follow-up /watch calls — once --check returned 0, nothing about the environment changes between turns.

When to use

  • User pastes a video URL (YouTube, Vimeo, X, TikTok, Twitch clip, most yt-dlp-supported sites) and asks about it.
  • User points at a local video file (.mp4, .mov, .mkv, .webm, etc.) and asks about it.
  • User types /watch <url-or-path> [question].

Recommended limits

  • Best accuracy: videos under 10 minutes. Frame coverage scales inversely with duration.
  • Hard caps: 100 frames total and 2 fps. Token cost grows with frame count, so the script targets a frame budget by duration (and never exceeds 2 fps even when the budget would imply more):
    • ≤30s → ~1-2 fps (up to 30 frames)
    • 30s-1min → ~40 frames
    • 1-3min → ~60 frames
    • 3-10min → ~80 frames
    • >10min → 100 frames, sparsely spaced (warning printed)
  • If the user hands you a long video, consider asking whether they want a specific section before burning tokens on a sparse scan.

How to invoke

Step 1 — parse the user input. Separate the video source from any question the user asked. The question (or the user's prior stated interest) IS the intent — pass it to the script via --intent. Example: /watch https://youtu.be/abc what's the hook pattern? → source = https://youtu.be/abc, intent = what's the hook pattern?. If no question is given, use a brief inferred intent ("general summary") so the report's TL;DR has a lens. The intent shapes how the report's TL;DR and entity/concept sections get filled at Step 4 — same video with intent "pricing tactics" vs "editing style" produces different reports.

Step 2 — run the watch script. Pass the source verbatim. Do not shell-escape it yourself beyond normal quoting:

python3 ~/.omega/skills/watch/scripts/watch.py "<source>" --intent "<intent string>"

Pass --intent whenever you have any signal from the user about why they want this video — the question they asked, a stated goal, or a brief inferred summary. Empty --intent works but produces less-targeted report sections.

Optional flags:

  • --start T / --end T — focus on a section. Accepts SS, MM:SS, or HH:MM:SS. When either is set, fps auto-scales denser (see "Focusing on a section" below).
  • --max-frames N — lower the cap for tighter token budget (e.g. --max-frames 40)
  • --resolution W — change frame width in px (default 512; bump to 1024 only if the user needs to read on-screen text)
  • --fps F — override auto-fps (clamped to 2 fps max). Setting --fps disables scene-change sampling.
  • --out-dir DIR — keep working files somewhere specific (default: an auto-generated tmp dir)
  • --whisper groq|openai — force a specific Whisper backend (default: prefer Groq if both keys exist)
  • --no-whisper — disable the Whisper fallback entirely (frames-only if no captions)
  • --no-scene-change — force uniform frame sampling (debug only; usually leave on)
  • --no-hook-microscope — skip the 0-10s dense pass (saves ~1 Whisper call)

When working inside a project checkout, pass --out-dir agentic/reports/watch/<slug>/ (OmegaOS convention for visible agent outputs); the default is the system temp dir.

Focusing on a section (higher frame rate)

When the user asks about a specific moment — "what happens at the 2 minute mark?", "zoom into 0:45 to 1:00", "the first 10 seconds" — pass --start and/or --end. The script switches to focused-mode budgets, which are denser than full-video budgets (still capped at 2 fps):

  • ≤5s → 2 fps (up to 10 frames)
  • 5-15s → 2 fps (up to 30 frames)
  • 15-30s → ~2 fps (up to 60 frames)
  • 30-60s → ~1.3 fps (up to 80 frames)
  • 60-180s → ~0.6 fps (100 frames, capped)

Focused mode is the right call for:

  • Any moment/range the user names explicitly ("around 2:30", "the intro", "the last 30 seconds").
  • Any video longer than ~10 minutes where the user's question is about a specific part — running focused on the relevant section is far more useful than a sparse scan of the whole thing.
  • Re-runs after a full scan didn't have enough detail in some region.

Transcript is auto-filtered to the same range. Frame timestamps are absolute (real video timeline, not offset-from-start).

Examples:

# Last 10 seconds of a 1 minute video
python3 ~/.omega/skills/watch/scripts/watch.py video.mp4 --start 50 --end 60

# Zoom into 2:15 → 2:45 at 3 fps (90 frames)
python3 ~/.omega/skills/watch/scripts/watch.py "$URL" --start 2:15 --end 2:45 --fps 3

# From 1h12m to the end of the video
python3 ~/.omega/skills/watch/scripts/watch.py "$URL" --start 1:12:00

Step 3 — Read every frame path the script lists. The Read tool renders JPEGs directly as images for you. Read all frames in a single message (parallel tool calls) so you see them together. The frames are in chronological order with a t=MM:SS timestamp so you can align them to the transcript.

Step 4 — answer the user, then fill the report. You now have three streams of evidence:

  • Frames — what's on screen at each timestamp
  • Transcript — what's said at each timestamp
  • report.md — structured artifact at <workdir>/report.md with <!-- pending Claude fill: ... --> markers

First, answer the user's question in chat citing timestamps.

Then, fill in the pending markers in report.md using the Edit tool. Walk every <!-- pending Claude fill: ... --> in order:

  • TL;DR — 3-5 bullets through the lens of the user's intent (read from the frontmatter)
  • Key moments — 5-10 timestamped bullets
  • Hook microscope interpretation — frame-by-frame: visual change × what's said; identify the hook pattern (question, contrarian claim, in-medias-res, demo-first, etc.)
  • Editorial profile fingerprint — one-line style summary inferred from pacing numbers + hero frames
  • Quotable moments — top 3-5 punchy, standalone lines from the transcript
  • Entities mentioned — people, companies, tools, places — formatted to match wiki/entities/ slugs (kebab-case, lowercase). Use [[wikilink]] style.
  • Concepts surfaced — frameworks, mental models, named patterns — short gist each

The fully-filled report.md is what gets ingested at Step 4.5. Do not skip the fill — empty markers won't ingest cleanly.

OPTIONAL - Obsidian users only. Run Steps 4.4 and 4.5 ONLY when the user explicitly asks for Obsidian ingestion or an Obsidian vault is configured; otherwise skip straight to Step 5 (cleanup). The default deliverable of /watch is the filled report.md; Obsidian is opt-in.

Step 4.4 — Stage to the Obsidian vault and open in Obsidian (when a vault is detected). After filling every marker, resolve $VAULT_DIR per the Configuration section. If no vault is detected, skip this step and emit 📄 Report (no vault detected): <workdir>/report.md in chat instead.

When $VAULT_DIR resolves:

  1. Derive the slug now (do not wait for Step 4.5). Take the video title from report.md frontmatter, slugify (lowercase, ASCII-only, hyphens, max 60 chars), append -YYYY-MM-DD. Example: karpathy-claude-md-43k-installs-2026-05-24.
  2. Create the staging dir: mkdir -p "$VAULT_DIR/raw/watched/<slug>".
  3. Copy report.md + every hero frame (filenames in the report frontmatter under hero_frames:) into that dir. The report MUST live inside the vault for Obsidian to open it.
  4. Open in Obsidian via URL scheme (macOS). The vault URL-name is the final component of $VAULT_DIR with spaces URL-encoded as %20:
    VAULT_NAME=$(basename "$VAULT_DIR" | sed 's/ /%20/g')
    open "obsidian://open?vault=${VAULT_NAME}&file=raw/watched/<slug>/report.md"
    The file= value is the path relative to the vault root, no leading slash. Don't ask permission — the user has already opted in by running /watch.
  5. Echo the vault-relative path in chat on its own line: 📄 Report (open in Obsidian): raw/watched/<slug>/report.md. So if Obsidian was closed / the URL handler missed, the user can still navigate to it manually inside the vault.

Rationale: the report is the leverage point of /watch. If the user reads everything in Obsidian, opening in Preview or VS Code defeats the purpose. Staging at 4.4 also means Step 4.5's "Yes / Stage" branches are no-ops on the copy step (the file is already in the vault); they only differ in whether the Ingest op runs.

Cleanup implication for Step 4.5: if the user picks "No, drop it" at 4.5 AND a vault was staged at 4.4, ALSO rm -rf "$VAULT_DIR/raw/watched/<slug>" since we pre-staged. Do NOT drop the vault copy if they picked Yes or Stage.

Step 4.5 — Offer ingest into the Obsidian vault. Skip this step entirely if no vault was detected at Step 4.4. Otherwise use AskUserQuestion once, with these options (do NOT skip if a vault was found unless the user explicitly said "don't ingest" before /watch ran):

Question: "Want to ingest this into your Obsidian vault?"

  • Yes — same angle ("<intent>")
  • Yes — different angle (user specifies in the notes field)
  • Stage to raw/watched/ for later
  • No, drop it

Routing based on response:

A. Yes (same or different angle):

  1. Derive the slug: take the video title from report.md frontmatter, slugify (lowercase, ASCII-only, hyphens, max 60 chars), append -YYYY-MM-DD. Example: me-at-the-zoo-2026-05-24.
  2. Confirm the staging dir exists at $VAULT_DIR/raw/watched/<slug>/ (Step 4.4 already created it).
  3. The report + hero frames are already copied there from Step 4.4.
  4. If "different angle": Re-edit the TL;DR + Entities + Concepts sections of the copied report to reflect the new angle the user specified, before running ingest.
  5. If $VAULT_DIR/CLAUDE.md exists: Read it to refresh the Ingest op definition — that file is authoritative; this skill must not duplicate its steps. Execute the Ingest op against raw/watched/<slug>/report.md exactly as $VAULT_DIR/CLAUDE.md defines it.
  6. If no $VAULT_DIR/CLAUDE.md exists: Run a generic ingest — read the report, identify entities + concepts, append a one-line entry to $VAULT_DIR/log.md (create if missing), and tell the user the report is staged at raw/watched/<slug>/report.md and they can wire up an Ingest op of their own.
  7. Report back to the user in chat: which entity pages were touched (if any), the path to the staged report, and the log.md entry written.

B. Stage to raw/watched/ for later:

  1. The staging from Step 4.4 already did the file copy.
  2. Do NOT touch the wiki. Do NOT append to log.md.
  3. Tell the user in chat: "Staged at $(basename $VAULT_DIR)/raw/watched/<slug>/. Run an Ingest op against it when you're ready."

C. No, drop it: proceed to Step 5 (cleanup) — and per the cleanup-implication note in Step 4.4, rm -rf "$VAULT_DIR/raw/watched/<slug>" to undo the pre-staging.

The "different angle" path is what makes /watch truly plug-and-play — the user can watch a video for one reason, then on the way out decide it's actually more useful for a different concept, and the resulting wiki entry reframes accordingly.

Step 5 — clean up. The script prints a working directory at the end. If you ingested (Step 4.5 path A), the hero frames + report.md are already copied to the vault — you can rm -rf the original workdir. If you staged (path B), same — the workdir copy is no longer needed. If the user picked "no, drop it" (path C) and isn't going to ask follow-ups, delete with rm -rf <dir>. If they might ask follow-ups, leave it in place.

Transcription

The script gets a timestamped transcript in one of two ways:

  1. Native captions (free, preferred). yt-dlp pulls manual or auto-generated subtitles from the source platform if available.
  2. Whisper API fallback. If no captions came back (or the source is a local file), the script extracts audio (ffmpeg -vn -ac 1 -ar 16000 -b:a 64k, ~0.5 MB/min) and uploads it to whichever Whisper API has a key configured:
    • Groq — whisper-large-v3. Preferred default: cheaper, faster. Get a key at console.groq.com/keys.
    • OpenAI — whisper-1. Fallback. Get a key at platform.openai.com/api-keys.

Key lookup chain, per backend: environment variable first, then ~/.config/watch/.env, then ~/.omega/secrets/integrations.env (OmegaOS standard, gitignored). The script prefers Groq when both are set; override with --whisper openai to force OpenAI. Use --no-whisper to skip the fallback entirely.

Failure modes and handling

  • Setup preflight failed → run python3 ~/.omega/skills/watch/scripts/setup.py (auto-installs ffmpeg/yt-dlp via brew on macOS, scaffolds the .env). For API key, ask the user via AskUserQuestion and write it to ~/.config/watch/.env.
  • No transcript available → captions missing AND (no Whisper key OR Whisper API failed). Script prints a hint pointing to setup. Proceed frames-only and tell the user.
  • Long video warning printed → acknowledge it in your answer. Offer to re-run focused on a specific section via --start/--end rather than a sparse full-video scan.
  • Download fails → yt-dlp's error goes to stderr. If it's a login-required or region-locked video, tell the user plainly; do not keep retrying. On a server/datacenter IP, a "Sign in to confirm you're not a bot" error means the YouTube PoT stack is missing: see "YouTube on servers and datacenter IPs" below.
  • Whisper request fails → the error is printed to stderr (likely: invalid key, rate limit, or 25 MB upload limit on a very long video). The report will say "none available" for transcript. You can retry with --whisper openai if Groq failed (or vice versa).
  • Report has unfilled <!-- pending Claude fill: ... --> markers → you skipped Step 4. Go back, read the report, fill every marker via Edit, then offer ingest. Never ingest a half-filled report — the vault Ingest op will produce sparse/wrong entity pages.
  • Ingest fails partway → do not roll back. The vault Ingest op is idempotent on re-run (it updates existing pages rather than duplicating). Tell the user what failed, leave the staged artifact in raw/watched/<slug>/, and they can re-run by saying "ingest the staged report at <slug>".

Token efficiency

This skill burns tokens primarily on frames. Order of magnitude:

  • 80 frames at 512px wide is roughly 50-80k image tokens depending on aspect ratio.
  • The transcript is cheap (a few thousand tokens at most for a 10-minute video).
  • Bumping --resolution to 1024 roughly quadruples the image tokens per frame. Only do it when necessary.

If you already watched a video this session and the user asks a follow-up, do not re-run the script — you already have the frames and transcript in context. Just answer from what you have.

Security & Permissions

What this skill does:

  • Runs yt-dlp locally to download the video and pull native captions when the source supports them (public data; the request goes directly to whatever host the URL points at)
  • Runs ffmpeg / ffprobe locally to extract frames as JPEGs and, when Whisper is needed, a mono 16 kHz audio clip
  • Sends the extracted audio clip to Groq's Whisper API (api.groq.com/openai/v1/audio/transcriptions) when GROQ_API_KEY is set (preferred — cheaper, faster)
  • Sends the extracted audio clip to OpenAI's audio transcription API (api.openai.com/v1/audio/transcriptions) when OPENAI_API_KEY is set and Groq is not, or when --whisper openai is forced
  • Writes the downloaded video, frames, audio, and an intermediate transcript to a working directory under the system temp dir (or --out-dir if specified) so Claude can Read them
  • Reads / creates ~/.config/watch/.env (mode 0600) to store the Whisper API key(s) and a SETUP_COMPLETE marker. As a fallback, also reads ~/.omega/secrets/integrations.env (read-only, never written by this skill)
  • Reads $VAULT_DIR/CLAUDE.md at orchestration time (only when ingest is requested and the file exists) to follow that vault's Ingest operation definition
  • Writes a structured report.md plus copies of hero frames into $VAULT_DIR/raw/watched/<slug>/ when a vault is detected at Step 4.4
  • When ingest is consented to: reads and writes pages under $VAULT_DIR/wiki/ (entities, concepts, sources, index.md) and appends to $VAULT_DIR/log.md — following the actions defined by the vault's Ingest op (or a generic fallback if no CLAUDE.md is present)

What this skill does NOT do:

  • Does not upload the video itself to any API. The hook microscope uploads the first 10 seconds of audio whenever an API key is available and transcription is enabled (any video 30 seconds or longer); the full video's audio is uploaded only when native captions are missing and Whisper is not disabled. --no-whisper guarantees zero audio egress. --whisper <backend> restricts all egress to that backend only
  • Does not access any platform account (no login, no session cookies, no posting)
  • Does not share API keys between providers (Groq key only goes to api.groq.com, OpenAI key only goes to api.openai.com)
  • Does not log, cache, or write API keys to stdout, stderr, or output files
  • Does not persist anything outside the working directory and ~/.config/watch/.env (and the vault when ingest is consented to) — clean up the working directory when you're done (Step 5)
  • Does not write to the vault without explicit user consent at the Step 4.5 prompt
  • Does not silently overwrite wiki claims — contradictions surface as WARN flags per the Ingest op contract

Bundled scripts: scripts/watch.py (entry point), scripts/download.py (yt-dlp wrapper), scripts/frames.py (ffmpeg uniform + scene-change extraction + hero selection), scripts/pacing.py (editorial metrics), scripts/hook.py (0-10s microscope), scripts/report.py (structured report emitter), scripts/transcribe.py (caption selection + Whisper orchestration), scripts/whisper.py (Groq / OpenAI clients, supports word-level timestamps), scripts/setup.py (preflight + installer). OmegaOS also ships scripts/harvest-youtube-cookies.ts (anonymous YouTube cookie harvester for servers, see below).

Review scripts before first use to verify behavior.

Security & boundary

Runtime opt-in, same shape as the browser-use / higgsfield dependencies (R-VISUAL-ID / R-BROWSER precedents):

  • install.sh ships only this markdown + the python scripts + the cookie helper. It never apt-installs ffmpeg/yt-dlp, never injects yt-dlp plugins, never provisions a key. Install the runtime deps once per box: sudo apt-get install -y ffmpeg pipx && pipx install yt-dlp (Linux; macOS uses brew via scripts/setup.py).
  • Keys come only from the environment or key files - lookup order: env var, then ~/.config/watch/.env, then ~/.omega/secrets/integrations.env (gitignored, outside the repo). Never the repo, never a log line.
  • Data egress: the hook microscope uploads the first 10s of audio to api.groq.com or api.openai.com whenever an API key is available and transcription is enabled, on any video 30s+, regardless of whether captions exist. The full video's audio goes to the same APIs only when native captions are missing and Whisper is not disabled. Pass --no-whisper for zero egress. Pass --whisper groq or --whisper openai to restrict all egress to that backend only.
  • The shipped verifiable contract is: this SKILL.md + scripts present, /watch and /omg-watch resolving, python3 scripts/watch.py --help exiting 0. A live transcription is NOT runtime-verifiable without the operator's key; never claim one as verified absent a key.

YouTube on servers and datacenter IPs

YouTube bot-checks datacenter IPs ("Sign in to confirm you're not a bot"). Verified working stack on the OmegaOS VPS (2026-07), in order:

  1. deno on PATH (JS runtime for signature solving): curl -fsSL https://deno.land/install.sh | DENO_INSTALL=~/.local sh
  2. yt-dlp-ejs (bundled challenge-solver scripts): pipx inject yt-dlp yt-dlp-ejs
  3. bgutil PoT provider (script mode, no daemon): git clone https://github.com/Brainicism/bgutil-ytdlp-pot-provider ~/.omega/tools/bgutil-pot && cd ~/.omega/tools/bgutil-pot/server && npm install && npx tsc && ln -sfn ~/.omega/tools/bgutil-pot ~/bgutil-ytdlp-pot-provider && pipx inject yt-dlp bgutil-ytdlp-pot-provider
  4. IPv4 + anonymous visitor cookies in ~/.config/yt-dlp/config:
    -4
    --cookies /home/vibe/.config/yt-dlp/youtube-cookies.txt
    Harvest the jar (no login, anonymous visitor cookies) with scripts/harvest-youtube-cookies.ts (header comment documents usage; needs a Playwright Chromium).

A few heavily-scraped videos stay walled regardless (e.g. jNQXAC9IVRw); pick another source video rather than fighting them.

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.