youtube-video-context
Use this skill whenever the user gives a YouTube URL and asks to summarize, digest, analyze, extract transcript/context, decide whether a video is worth watching, or understand what a video is about. Prefer the summarize CLI for YouTube/video context instead of web search. Use Codex as the default summarize backend when possible, and use the local Whisper large-v3 model for transcription fallback. Do not use this for ordinary web pages; use the installed web-access tools for webpage research.
- License 许可
- MIT
- 最近更新
- 2026-08-24
- Stars
- ★ 17
- Forks
- 1
01 前言 Front Matter
- name
- youtube-video-context
- description
- Use this skill whenever the user gives a YouTube URL and asks to summarize, digest, analyze, extract transcript/context, decide whether a video is worth watching, or understand what a video is about. Prefer the summarize CLI for YouTube/video context instead of web search. Use Codex as the default summarize backend when possible, and use the local Whisper large-v3 model for transcription fallback. Do not use this for ordinary web pages; use the installed web-access tools for webpage research.
- compatibility
- Requires the summarize CLI. Best local fallback requires yt-dlp, ffmpeg, tesseract, whisper-cpp, and SUMMARIZE_WHISPER_CPP_MODEL_PATH pointing to ggml-large-v3.bin.
03 SKILL.md 正文
YouTube Video Context
Use this skill to turn YouTube videos into grounded, LLM-readable context. The preferred tool is the summarize CLI because it uses a transcript-first YouTube pipeline and can fall back to local audio transcription when captions are missing.
The user prefers this workflow for YouTube videos, but prefers the installed web-access tools for ordinary webpages.
Default assumptions
- Use
summarize, not browser automation or generic web search, for YouTube video understanding. - Prefer the user's Codex subscription as the model backend:
--cli codex
- Use the local Whisper large-v3 model for transcription fallback when needed:
SUMMARIZE_WHISPER_CPP_MODEL_PATH="$HOME/.local/share/whisper.cpp/models/ggml-large-v3.bin"
- If that environment variable is already set in the shell, do not repeat it unless needed for a one-off command.
- Do not use the browser extension or daemon flow. The user only wants the CLI workflow.
How summarize handles YouTube
summarize is transcript-first:
- Parse the YouTube URL.
- Try YouTube transcript/caption sources first.
- If captions exist, clean timed transcript segments and summarize them.
- If captions are unavailable and fallback is needed, use
yt-dlpto get audio,ffmpegto prepare it, andwhisper.cppwith localggml-large-v3.binto transcribe. - Send the extracted transcript/context to the selected LLM backend.
This means normal captioned videos usually do not require local Whisper. Whisper is the fallback for videos with missing or unusable captions, or when --youtube yt-dlp forces transcription.
Common workflows
Quick summary
For a normal YouTube summary request:
summarize "$URL" --youtube auto --cli codex --length medium --plain
Return the resulting summary, and mention whether the run used captions or appeared to require transcription if the output makes that clear.
Grounding check or transcript extraction
When the user asks to inspect the source, verify grounding, extract the transcript, or diagnose summary quality:
summarize "$URL" --youtube auto --extract --timestamps
If the transcript is long, do not paste all of it. Summarize what was extracted and include representative timestamped excerpts.
For agent contexts where command output may be large, process or capture the output with context-aware tooling and return only the useful summary.
Slide-heavy technical videos
For lectures, conference talks, demos, tutorials, or videos where visuals likely matter:
summarize "$URL" --youtube auto --cli codex --slides --slides-ocr --length long --plain
Use this when the user mentions slides, a lecture, a talk, a demo, charts, screen sharing, UI walkthroughs, or technical diagrams.
Force local transcription path
If the user wants to test local Whisper fallback or captions are bad/unavailable:
SUMMARIZE_WHISPER_CPP_MODEL_PATH="$HOME/.local/share/whisper.cpp/models/ggml-large-v3.bin" \
summarize "$URL" --youtube yt-dlp --cli codex --length medium --plain
This is slower than transcript-first mode because it downloads/extracts audio and transcribes locally.
Mode selection
Use these --youtube modes intentionally:
auto: default. Try YouTube transcript paths first, then fallbacks.web: only use YouTube web transcript/caption sources. Use this when the user wants no media download/transcription.no-auto: skip auto-generated captions and prefer creator/manual captions. Use when caption quality matters and auto captions may be misleading.yt-dlp: force audio download and transcription.apify: use Apify only, if configured.
Output style
For user-facing answers:
- State whether the command succeeded.
- Give a concise summary first.
- Include key takeaways or timeline if useful.
- Include timestamped evidence when the user asks for grounding or when claims are specific.
- Mention limitations clearly, such as missing captions, auto-generated transcript quality, or failed transcription fallback.
Avoid dumping huge transcripts into chat unless the user explicitly asks for the full transcript.
Troubleshooting
If summarize does not find the local Whisper model, ensure this exists:
ls -lh "$HOME/.local/share/whisper.cpp/models/ggml-large-v3.bin"
Then run with the env var inline:
SUMMARIZE_WHISPER_CPP_MODEL_PATH="$HOME/.local/share/whisper.cpp/models/ggml-large-v3.bin" summarize "$URL" --youtube yt-dlp --cli codex
If yt-dlp gets a YouTube 403, the project docs suggest passing browser cookies through yt-dlp, for example by setting SUMMARIZE_YT_DLP_COOKIES_FROM_BROWSER=chrome or a profile-specific value. Only do this after explaining the privacy tradeoff to the user, because it grants the tool access to browser-authenticated YouTube state.
If Codex is unavailable or unauthenticated, ask before falling back to Claude or another paid backend unless the user has already allowed fallback.
04 同仓库更多 Skills
1password-developer
Work with 1Password developer features including SSH key management, the SSH agent, 1Password Environments for secrets injection, and the op CLI. Use this skill whenever the user mentions 1Password, op CLI, 1Password SSH agent, 1Password Environments, secret references, op run, op inject, or wants to manage SSH keys through 1Password, secure .env files with 1Password, or inject secrets at runtime. Also trigger when the user wants to stop storing plaintext secrets on disk or asks about securing developer credentials.
plan-reviewer
Use when creating, refining, or reviewing implementation plans, migration plans, refactoring proposals, feature plans, implementation trackers, or committable phase plans; especially when turning a rough plan into executable phases or checking whether a plan is concrete, testable, safe, dependency-aware, and suitable for parallel work.
brainstorm
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when user wants to stress-test a plan, get grilled on their design, or mentions "brainstorm".
thermos
Launch both thermo-nuclear review subagents in parallel. Use for thermos, double thermo review, or combined bug/security and code-quality branch audits.
thermo-nuclear-review
Comprehensive security and correctness audit of a branch's changes. Use for thermo nuclear, thermonuclear, or deep review requests, or branch/PR diff audits focused on bugs, breaking changes, security issues, devex regressions, and feature-gate leaks.
thermo-nuclear-code-quality-review
Run an extremely strict maintainability review for abstraction quality, giant files, and spaghetti-condition growth. Use for a thermo-nuclear code quality review, thermonuclear review, deep code quality audit, or especially harsh maintainability review.