youtube-transcript · intellectronica — Claude Code skill: what it does, how to install
Extracts transcripts and subtitles from YouTube videos. Useful when you need video text with or without timestamps inside your agent.
npx skills add intellectronica/agent-skills --skill youtube-transcript -a claude-codeWhat youtube-transcript does
The skill executes scripts/get_transcript.py using uv and pulls captions via youtube-transcript-api. It accepts standard links like https://www.youtube.com/watch?v=VIDEO_ID, short URLs such as https://youtu.be/VIDEO_ID, embed links, or raw 11-character video IDs.
By default, output arrives as plain text split by speech segments. Supplying --timestamps prepends [MM:SS] or [HH:MM:SS] to each segment. Results write to a specified path or fall back to {video_id}-transcript.txt. The script fails if the video has captions disabled, though it safely falls back to auto-generated subtitles when manual captions are missing.
What it helps with
- pull captions from a YouTube video into a local text file
- generate timestamped transcripts for video outlines
- read auto-generated subtitles without manual copy-pasting
Example prompts for the agent
- Get transcript from
https://www.youtube.com/watch?v=VIDEO_ID - Download subtitles with timestamps from
https://youtu.be/VIDEO_IDintosummary.txt - Extract clean text from YouTube video
VIDEO_ID
How to install youtube-transcript
1Skills CLI (Vercel)
npx skills add intellectronica/agent-skills --skill youtube-transcript -a claude-code2Manually: put the files in place
~/.claude/skills/youtube-transcript/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/youtube-transcript/
1Skills CLI (Vercel)
npx skills add intellectronica/agent-skills --skill youtube-transcript -a codex2Manually: put the files in place
.agents/skills/youtube-transcript/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add intellectronica/agent-skills --skill youtube-transcript -a cursor2Manually: put the files in place
.cursor/skills/youtube-transcript/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install intellectronica/agent-skills youtube-transcript2Manually: put the files in place
.github/skills/youtube-transcript/SKILL.md1Skills CLI (Vercel)
npx skills add intellectronica/agent-skills --skill youtube-transcript -a gemini-cli2Platform CLI
gemini skills install https://github.com/intellectronica/agent-skills --path skills/youtube-transcriptManually: put the files in place
.devin/skills/youtube-transcript/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add intellectronica/agent-skills --skill youtube-transcript -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about youtube-transcript
How to install youtube-transcript in Claude Code?
Run npx skills add intellectronica/agent-skills --skill youtube-transcript -a claude-code. The skill file is placed in ~/.claude/skills/youtube-transcript/SKILL.md.
What does youtube-transcript do?
It runs a Python script via uv to extract video captions. The result can include timestamp markers or plain paragraph text.
What are the requirements for extracting captions?
You need uv installed, and the video must have captions enabled. It retrieves manual captions first and falls back to auto-generated ones.
Source text
SKILL.md · CC0-1.0
--- name: youtube-transcript description: Extract transcripts from YouTube videos. Use when the user asks for a transcript, subtitles, or captions of a YouTube video and provides a YouTube URL (youtube.com/watch?v=, youtu.be/, or similar). Supports output with or without timestamps. --- # YouTube Transcript Extract transcripts from YouTube videos using the youtube-transcript-api. ## Usage Run the script with a YouTube URL or video ID: ```bash uv run scripts/get_transcript.py "VIDEO_URL_OR_ID" ``` With timestamps: ```bash uv run scripts/get_transcript.py "VIDEO_URL_OR_ID" --timestamps ``` ## Defaults - **Without timestamps** (default): Plain text, one line per caption segment - **With timestamps**: `[MM:SS] text` format (or `[HH:MM:SS]` for longer videos) ## Supported URL Formats - `https://www.youtube.com/watch?v=VIDEO_ID` - `https://youtu.be/VIDEO_ID` - `https://youtube.com/embed/VIDEO_ID` - Raw video ID (11 characters) ## Output - CRITICAL: YOU MUST NEVER MODIFY THE RETURNED TRANSCRIPT - If the transcript is without timestamps, you SHOULD clean it up so that it is arranged by complete paragraphs and the lines don't cut in the middle of sentences. - If you were asked to save the transcript to a specific file, save it to the requested file. - If no output file was specified, use the YouTube video ID with a `-transcript.txt` suffix. ## Notes - Fetches auto-generated or manually added captions (whichever is available) - Requires the video to have captions enabled - Falls back to auto-generated captions if manual ones aren't available
© intellectronica · CC0-1.0 · intellectronica/agent-skills
Similar skills
All skills for Agent setup: memory, context, orchestration →youtube-transcript by other authors comes first.