Skip to content
Back to skills

Watch Video

ASecurity

Gets the transcript of a video, and optionally its key visual moments, from YouTube, Loom, Vimeo, Riverside, Zoom recordings, X, Instagram, TikTok, or a video file on your computer. Use when you want the words, a summary, or the key moments of a video, at the depth you pick: transcript (default, free), visual (adds frames), or multimodal (sends the video to Google Gemini). Use when you say \"watch this video\", \"transcribe this video\", \"get the transcript of this\", \"transcribe this Loom\...

  • 3 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentspythongoshellapibackend

Works with

  • claude code
  • claude desktop
  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned November 15, 2026

npx -y skills add donnfelker/builder-skills --skill watch-video --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Watch Video?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Watch Video
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/donnfelker-watch-video/badge)](https://www.skillsdirectory.com/skills/donnfelker-watch-video)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: watch-video
description: "Gets the transcript of a video, and optionally its key visual moments, from YouTube, Loom, Vimeo, Riverside, Zoom recordings, X, Instagram, TikTok, or a video file on your computer. Use when you want the words, a summary, or the key moments of a video, at the depth you pick: transcript (default, free), visual (adds frames), or multimodal (sends the video to Google Gemini). Use when you say \"watch this video\", \"transcribe this video\", \"get the transcript of this\", \"transcribe this Loom\", \"summarize this recording\", \"key moments from this video\", or \"what happens in this video\"."
---

# Watch video

Get a video's transcript, and on request its key visual moments, into a folder of plain files.

The commands live in tested scripts in `scripts/`. Your job is to run them in order, read their JSON output, and route on it.

## Where it runs

Video links (YouTube and most other video sites) work in Claude desktop (Cowork on your computer) and Claude Code. Cloud sessions are often blocked: they run on Anthropic's servers, and video sites block requests from data centers to stop bots. Attached video files work everywhere. When the person gives a link in a cloud session, try it, and if the site blocks it, explain this and suggest Claude desktop or Claude Code.

Every script prints one JSON object. `"status": "ok"` means continue. `"status": "error"` carries `error`, and often `fix` and `kind`. Run scripts with `python3 <this skill's folder>/scripts/<name>.py`.

## Step 1: Check the environment

Run `scripts/preflight.py`. It reports the OS, tools, Whisper backend, network reach, API keys, and output folder, plus `can` and `cannot` lists in plain words.

- **No shell at all** (you cannot run commands here): say that this skill needs a place that can run scripts, such as Claude Code or Cowork. Ask for a transcript file instead, and stop.
- **Something missing, in a Claude sandbox** (`claude_sandbox` is true, as in Cowork): run `preflight.py --install` without asking. It only installs into a private folder in a temporary virtual machine, and nothing on the person's computer changes. Say in one line what you installed. Cloud sessions start empty, so this happens in each new one.
- **Something missing, on the person's own computer**: on macOS, preflight names a `brew` or `uv` command. On Linux, `--install` puts yt-dlp, ffmpeg, and faster-whisper into a private folder (`~/.cache/watch-video/venv`). Ask before installing, then run it.
- **Network blocked** (a `cannot` entry says the network blocks video sites or the Whisper model): pass the message on, including its risk warning. It names the Claude setting to change. Let the person decide; do not urge them to open network access. Offer the route that needs no change first: attach the video file, with a transcript file if they have one. Do not run `--install` for this; installing does not get past a blocked network.
- **Where to save.** If your environment tells you where to put files for the person (an outputs folder, a connected folder), set `WATCH_VIDEO_DIR` to a `videos` folder inside it on every script call, for example `WATCH_VIDEO_DIR=<outputs>/videos python3 scripts/fetch.py ...`. If you do not know, leave it unset; the scripts pick a folder the person can see. Never ask the person where to save.
- **Attached files.** Use the path you were given for an attached file. Do not ask the person for it.
- Run preflight once per session, not once per video. In cloud sessions the install does not carry over, so a new session may need `--install` again.

## Step 2: Read the request

Input: a URL, an 11-character YouTube ID, or a path to a video or audio file. A playlist is refused with its video count. Ask for one video.

| The person says | Mode |
|---|---|
| Nothing about depth, or "transcript" | `transcript` |
| "visual", "key moments", "what's on screen", "screenshots" | `visual` |
| "multimodal", "use Gemini", "analyze the delivery" | `multimodal` |

Options to pass along when the person asks: `--from 10:00 --to 20:00` (only that section), `--lang es`, `--cookies-from-browser chrome` (private videos, own computer only), `--force` (redo finished steps).

## Step 3: Get metadata

Run `scripts/fetch.py meta <input> [--from ..] [--to ..] [--cookies-from-browser ..]`. It creates the workdir and prints its path. A second run on the same video returns the cached workdir with no download.

If `is_social` is true (X, Instagram, TikTok) and the `read-social` skill is installed, run it on the same URL for the author, post text, and engagement. Save its JSON as `post.json` in the workdir. If `read-social` is not installed, skip this. yt-dlp still gets the video.

## Step 4: Get the transcript

Run `scripts/transcribe.py <workdir>` with any `--lang`. It tries, in order: a transcript file you already have (pass `--transcript FILE`, or a `.vtt`/`.srt`/`.json`/`.txt` beside a local video), platform captions, local Whisper, and hosted transcription (only with `--allow-upload`).

- **`"status": "partial"`** (exit code 3): long videos transcribe in 10-minute chunks. Run the same command again, without `--force`, until the status is `ok`. Tell the person how far along it is.
- **`warning` is set**: no backend passed the coverage and words-per-minute check. Keep the transcript and pass the warning on.
- **`kind: no_whisper` or `model_download`**: if `OPENAI_API_KEY` or `GROQ_API_KEY` is set, offer hosted transcription and follow the privacy gate below. Otherwise ask for a transcript file.
- **`kind: bot_check`**: the video site blocked the request. Do not retry or look for workarounds. Pass on the `fix` text: it tells the person to run this in Claude desktop or Claude Code and explains why in plain words. Also offer to work from an attached video file.
- **`kind: network` or `geo`**: do not retry. Pass on the `fix` text, including its risk warning for network access, and offer to work from an attached video file.
- Long CPU-only run: when preflight shows no GPU and no Apple Silicon and the video runs over 30 minutes, say it may run slower than the video plays, and offer hosted transcription if a key is set.

**Transcript mode stops here.** Go to Step 7.

## Step 5: Visual mode

1. Run `scripts/estimate.py <workdir> --mode visual [--style ..] [--contact-sheets]`. Style: `screen` for demos and Loom, `slides` for talks with slides, `talking` for podcasts and talking heads, `auto` when unsure. Use `--contact-sheets` for slow-changing video: it tiles 9 frames per image.
2. If `needs_confirm` is true, show the frame count and estimated tokens and ask before going on. Never show a price.
3. Run `scripts/frames.py <workdir>` with the same style and sheet options. It downloads the video at up to 720p if needed, drops near-identical frames, and deletes the downloaded video afterwards. Pass `--keep` to keep it.
4. Read each image listed in `read`. Use `frames.json` to pair each frame with its timestamp and the words spoken around it.
5. Write `moments.md`, then `summary.md`, using the templates in `references/templates.md`.

## Step 6: Multimodal mode

1. No `GEMINI_API_KEY`: say so and offer visual mode. Do not fall back to dense frame reading.
2. Run `scripts/estimate.py <workdir> --mode multimodal` and follow the privacy gate.
3. Run `scripts/fetch.py media <workdir> --video`.
4. Write `gemini-prompt.md` in the workdir from the multimodal prompt in `references/templates.md`, adjusted to what the person asked for.
5. Run `scripts/gemini.py <workdir> --prompt-file <workdir>/gemini-prompt.md`. It deletes the uploaded copy from Google when done.
6. Write `summary.md` from `gemini.md` and the transcript, with the extra multimodal section from the template.

## Privacy gate

Before any upload to Gemini or a hosted transcription service, say what will be sent and where ("the 42-minute audio track, to OpenAI"), and ask. For anything that looks like a private call (Zoom, Riverside, a local file), suggest "no" as the default and offer the local route.

## Step 7: Report

In chat:

1. One line: `<source> · <title> · <duration> · <mode> · <word count> words`.
2. The workdir path.
3. Visual or multimodal: the top 3 moments with timestamps, plus any action items or decisions from `summary.md`.
4. Any warning from the scripts, in plain words.
5. Transcript mode only: one closing line offering to pull out the key ideas with `distill-video`, if it is installed. Skip this line when `distill-video` called this skill.

## Files in the workdir

| File | What it holds |
|---|---|
| `metadata.json` | Title, uploader, duration, chapters, caption tracks, file paths |
| `transcript.json` | The canonical transcript: segments with start, end, text, and speaker when known |
| `transcript.md` | Readable paragraphs, each starting with its timestamp |
| `transcript.txt` | Plain text, no timestamps |
| `frames/`, `frames.json`, `sheets/` | Visual mode frames and their manifest |
| `moments.md`, `summary.md` | Visual and multimodal write-ups |
| `post.json` | Social post data from `read-social`, when used |

The workdir lives in `WATCH_VIDEO_DIR` if set, else `output_dir` in the config file (`~/.config/watch-video/config.json`; see `config.example.json`), else Claude's sandbox outputs folder (`/mnt/user-data/outputs/videos/`) when it exists, as in Cowork, else `~/Documents/videos/` (or `~/videos/` with no Documents folder). Every video gets its own workdir there, so all videos stay together and a second run from any folder reuses the saved work.

## More detail

- `references/sources.md`: what each site supports and its quirks.
- `references/troubleshooting.md`: errors and what to tell the person.
- `references/templates.md`: `moments.md`, `summary.md`, and the Gemini prompt.
- Tests: `python3 -m unittest discover -s tests` from this skill's folder.

Files in this skill

  • SKILL.md9.6 KB
  • config.example.json338 B
  • references/sources.md2 KB
  • references/templates.md2.4 KB
  • references/troubleshooting.md2.6 KB
  • scripts/common.py9.1 KB
  • scripts/estimate.py3.4 KB
  • scripts/fetch.py19 KB
  • scripts/frames.py9.5 KB
  • scripts/gemini.py6.8 KB
  • scripts/preflight.py9.1 KB
  • scripts/transcribe.py27.9 KB
  • tests/test_scripts.py11.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.