watch
它能做什么
这项技能让 AI 观看网页链接或本地文件中的视频,并回答相关问题。适合希望在不看完整段视频的情况下了解其内容的人。
适用场景
- ✓你想在不观看视频的情况下了解视频中说了什么或展示了什么的时候。
- ✓你有一个视频链接,想要其中的摘要或具体细节的时候。
- ✓你想针对本地视频文件提出问题并获得回答的时候。
技能链接
https://github.com/bradautomates/claude-video/blob/main/skills/watch/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请观看这个视频链接,并告诉我讲者在哪里谈到了定价。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会下载视频,在有用的时间点截取画面,并提取字幕或文字稿。如果设置了 Gemini 密钥,Google 的视频模型可以改为观看完整视频。然后 AI 根据这些证据作答。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
/watch
Run the bundled Python script. With the gemini engine (a GEMINI_API_KEY is configured) Google's video model watches the video and the report carries its timestamped answer for you to relay. With the local engine the script produces timestamped frames and a transcript; view the frames and answer from that evidence. Native captions come first; the chosen local or cloud backend is only a fallback. Transcript-only evidence cannot establish visual facts.
Resolve the skill and interpreter
SKILL_DIR is the absolute directory containing this SKILL.md; scripts/ sits beside it.
Commands below use python3 for macOS/Linux. On Windows, verify a working Python 3.10+ with python --version or py -3 --version and use that interpreter. python3 is not always a Store alias; inspect the actual result. In PowerShell use $SKILL_DIR rather than Bash variable syntax, for example:
python "$SKILL_DIR/scripts/setup.py" --json
Use the host's available shell, image viewer, and question tool. AskUserQuestion and Bash are examples, not requirements for every host.
First run and setup
On the first invocation in a session:
python3 "${SKILL_DIR}/scripts/setup.py" --json
can_proceeddepends on base binaries for the local engine, not optional credentials. If it is false, runsetup.pyand confirm the binaries become available. macOS uses Homebrew; other systems get package commands. Do not use sudo automatically. With the Gemini engine (engineisgemini,binaries_requiredfalse), missingffmpeg/yt-dlpdo not block YouTube URLs but are still needed for other URLs and for--engine local; mentionmissing_binariesonly when that matters.- If
first_runis false, proceed without announcing successful setup or asking preferences again. Existing installations without a backend setting retainauto(Groq key first, then OpenAI). - If
first_runis true, ask the engine question first, then (local engine only) the two choices below it. The wizard does not inspect RAM, disk, CPU, browser sessions, or other machine state; the user decides from the stated requirements.
Question 1 — "How should watch view videos?"
gemini(recommended) — Google's Gemini model watches the whole video, including audio, and answers directly. Needs a free key from https://aistudio.google.com/apikey. YouTube URLs are sent to Google; local or downloaded videos are uploaded to Google, then deleted after the answer.local— frames + transcript extracted on this machine and read by you. No key needed.
If gemini, run:
python3 "${SKILL_DIR}/scripts/setup.py" --engine gemini
Exit 3 means the key is missing; the command has created ~/.config/watch/.env for it. Point the user to https://aistudio.google.com/apikey for a free key and let them choose how to add it:
- Paste it in chat. Write it on the
GEMINI_API_KEY=line of the config file (add the line if it is missing) with a file-editing tool, preserving the other lines. - Add it themselves. Offer to open the config file in their text editor (
open -ton macOS,notepadon Windows,xdg-openon Linux) so they can paste the key afterGEMINI_API_KEY=and save. This only works when you run on the user's own computer; otherwise give them the file path.
Never print the key or put it in a shell command. Once it is saved, rerun setup.py --engine gemini. On exit 0 setup is complete — skip the detail and transcription questions; they only apply to the local engine. If local: run setup.py --engine local (this also installs missing base binaries and scaffolds the private config) and continue with the two questions below. An existing explicit WATCH_ENGINE is not asked again.
Ask for the default detail, lightest to heaviest:
transcript: no frames; skip media download when captions are available.efficient: fast keyframe selection, cap 50.balanced(recommended): scene-aware frames, cap 100.token-burner: scene-aware, uncapped; high image cost.
If the detail question is skipped, retain balanced.
Then ask: For videos without captions, how should watch transcribe? Present:
whisperx(recommended): local transcription, no API key; audio stays on the machine. One-time download of about 1.5 GB. Requires 3 GB free disk, 8 GB RAM, and a compatible 64-bit CPU. Apple Silicon macOS is verified; Linux/Windows recipes and Intel macOS are untested.groq: fast cloud transcr
常见问题
它需要特殊账户吗?
基本的本地设置不需要。Gemini API 密钥是可选的,设置后可以让 Google 的视频模型观看完整视频。
如果视频有字幕怎么办?
会优先使用视频自带的字幕,转录服务只作为备用。
仅凭文字稿能判断画面细节吗?
不能。技能说明,仅凭文字稿无法确定视觉事实,因此 AI 也会查看画面。
详情
作者的原始描述
Watch a video (URL or local path). Downloads with yt-dlp, extracts auto-scaled frames with ffmpeg, pulls the transcript from captions (or local WhisperX / cloud Whisper fallback), and hands the result to the agent so it can answer questions about what's in the video. With a Gemini API key, Google's agentic video model watches the full video instead.
热度
- GitHub 星标
- 20k
- 排名
- #10396
- 许可证
- MIT
- 更新时间
- 2026/9/24
评论
- …