Youtube transcript skill
Fetch YouTube video transcripts (auto-generated or manual subtitles) without API keys, using the open-source youtube-transcript-api Python library, with yt-dlp as a fallback for blocked videos. Use when the user asks for a transcript / captions / subtitles of a YouTube video, or when summarizing / quoting a video.From its SKILL.md
npx -y skills add 0SxD/youtube-transcript-skillAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.1 KB, 498 tokens by cl100k_base, as published. Nobody here has run it
Skill: youtube-transcript
When to invoke
User mentions:
- "get the transcript of this YouTube video"
- "summarize this YouTube link"
- "what does the speaker say at <timestamp>"
- pastes a
youtube.com/watch?v=...oryoutu.be/...URL and asks anything that requires reading what was said
How to invoke
The skill ships a uv venv at .venv/. Run:
cd <plan-root>/skills/youtube-transcript
.venv/Scripts/python.exe fetch_transcript.py VIDEO_ID
Or call from another script:
import sys
sys.path.insert(0, "<plan-root>/skills/youtube-transcript/.venv/Lib/site-packages")
from youtube_transcript_api import YouTubeTranscriptApi
api = YouTubeTranscriptApi()
fetched = api.fetch(video_id, languages=["en"])
for s in fetched:
print(f"[{s.start:.1f}s] {s.text}")
Fallback to yt-dlp
If youtube-transcript-api fails (geofence, rate limit, etc.):
.venv/Scripts/yt-dlp \
--write-auto-subs --skip-download \
--sub-langs en --sub-format vtt \
-o "%(id)s.%(ext)s" \
"https://www.youtube.com/watch?v=VIDEO_ID"
Returns
- youtube-transcript-api: list of
FetchedTranscriptSnippetobjects with.text,.start,.duration - yt-dlp: a
.vttfile in current directory named after the video ID
Constraints
- Some videos disable transcripts entirely; both tools will fail. Tell user.
- Auto-generated transcripts are imperfect; flag as "auto-generated" if
is_generated=Trueon the transcript object. - Region-blocked videos may return 403; route through yt-dlp with
--proxyif needed.
Citations
- youtube-transcript-api: https://github.com/jdepoix/youtube-transcript-api (MIT)
- yt-dlp: https://github.com/yt-dlp/yt-dlp (Unlicense)
Verified
Smoke-tested 2026-04-30 against video ID 0eKVizvYSUQ. Returned 128 segments. Skill works.
What ships with it: 5 files
3.7 KB alongside SKILL.md, 1 of them executable
- fetch_transcript.pyruns1.1 KB
- .gitignore143 B
- LICENSE1.1 KB
- LICENSE-PENDING.md224 B
- README.md1.1 KB