summarize-youtube-video
Skill1 starsChanged 3 months agoMITView on GitHub
Fetches a YouTube transcript with the youtube-transcript CLI and summarizes the video. Use when the user asks to summarize a YouTube video, wants recap/takeaways/notes/quotes from a youtube.com or youtu.be URL, asks whether a video mentioned something, or names this skill.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- brpaz/agent-skillstheir own version, first seen May 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- brpaz/agent-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 6 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Prefer the installed command.
- Very specific: line 28
If youtube-transcript is missing, install it or run from the repo root:
- Distinctive: line 34
If the command exits non-zero (no captions, private/unavailable, bad URL), report the error and stop.
- Distinctive: line 46
Check size without loading the file:
- Distinctive: line 59
Default shape, unless the user asked for something else:
- Distinctive: line 70
If the user asked a specific question about the video, answer that instead of the default shape.
- Distinctive: line 71
Keep it shorter than the transcript.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Summarize a YouTube video
Fetch the transcript first. Do not summarize from memory or training data.
Dependencies
- This repo's CLI on PATH. Install a binary from GitHub Releases, or
go install github.com/hasangenc0/youtube-transcript/cmd/youtube-transcript@latest, orgo run ./cmd/youtube-transcriptfrom the repo root (Go 1.22+) - Network access to YouTube
- The video already has captions (manual or auto-generated)
No API key.
Fetch the transcript
Extract the YouTube URL or 11-character video ID from the user message.
Prefer the installed command. Captions print to stdout:
youtube-transcript "URL"If youtube-transcript is missing, install it or run from the repo root:
go run ./cmd/youtube-transcript "URL"If the command exits non-zero (no captions, private/unavailable, bad URL), report the error and stop. Do not invent a summary.
Pass --lang only when the user asks for a language.
Long videos
Do not keep a long transcript in context. If the user called it a lecture, podcast, stream, or long talk, or if the last caption timestamp is 15:00 or later, or there are more than about 400 lines, write a file under /tmp instead of using stdout:
youtube-transcript "URL" -o /tmp/VIDEO_ID.txtCheck size without loading the file:
wc -l /tmp/VIDEO_ID.txt
tail -n 1 /tmp/VIDEO_ID.txtThen summarize in about 10-minute windows. Read only that slice of /tmp/VIDEO_ID.txt each time (timestamp range, not the whole file). Write a short note per window, then write the final answer from those notes. Do not invent material that is not in a window.
A short video (last timestamp before 15:00, under about 400 lines) can stay on stdout.
Write the summary
Default shape, unless the user asked for something else:
Summary. 2 to 4 sentences on the video's topic and argument.
Key points. Bullets. Include a transcript timestamp when it marks a distinct claim ([MM:SS] or [HH:MM:SS]).
Takeaways. What the speaker wants the viewer to do or believe.
Rules:
- Stay faithful to the transcript. Do not add facts, quotes, or numbers that are not in it.
- If the user asked a specific question about the video, answer that instead of the default shape.
- Keep it shorter than the transcript. A 25-minute video is a few tight sections, not a line-by-line recap.
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
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.

