Agent skill
youtube-transcript
Install this agent skill to your Project
npx add-skill https://github.com/ozten/skills/tree/main/youtube-transcript
SKILL.md
youtube-transcript
Extract transcripts from YouTube videos. Zero dependencies - just Node.js.
When to Use
- "Get the transcript from this YouTube video"
- "Extract transcript from this video"
- "What does this YouTube video say?"
Usage
# Extract plain text transcript
node get-transcript.js "https://www.youtube.com/watch?v=VIDEO_ID"
# With timestamps
node get-transcript.js "https://youtu.be/VIDEO_ID" --timestamps
# JSON output (includes offset/duration for each segment)
node get-transcript.js "https://youtube.com/watch?v=VIDEO_ID" --json
# Save to file
node get-transcript.js "https://youtu.be/VIDEO_ID" --save transcript.txt
# Specific language
node get-transcript.js "https://youtu.be/VIDEO_ID" --lang es
Supported URL Formats
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://www.youtube.com/watch?v=VIDEO_ID&t=123https://youtube.com/shorts/VIDEO_ID- Just the video ID:
dQw4w9WgXcQ
Requirements
- Node.js 18+
No npm install needed. No dependencies.
How It Works
- Tries YouTube's Innertube API first (Android client - faster)
- Falls back to web page scraping if needed
- Extracts caption track URL from response
- Fetches XML captions
- Parses segments with timestamps
- Returns clean text
API Keys
None required. Uses YouTube's public APIs.
Output Formats
| Flag | Output |
|---|---|
| (default) | Plain text, all segments joined |
--timestamps |
[0:00] First line\n[0:05] Second line... |
--json |
[{text, offset, duration, lang}, ...] |
Limitations
- Only works for videos with captions (manual or auto-generated)
- Private or age-restricted videos will fail
- YouTube may require CAPTCHA if too many requests from same IP
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
five-whys
Root cause analysis technique for self-improvement. Use after any failure, mistake, or suboptimal outcome to find systemic causes and actionable changes. Triggers: analyzing why something went wrong, debugging repeated failures, post-mortem analysis, retrospectives, understanding root causes, reflecting on what could be improved.
nano-banana-image-gen
Generate images using the `imagen` CLI (Gemini and OpenAI models). Use when the user says "nano banana", "generate an image", "create an image", "make me a picture", "image gen", "draw", "illustrate", or wants to create images from text prompts.
webdev-combobox-autocomplete
Foundational patterns for building accessible autocomplete/combobox components with state management, ARIA patterns, keyboard navigation, async suggestions, and framework-agnostic implementation. Use when building autocomplete inputs, command palettes, search inputs, select replacements, or any dropdown with keyboard navigation and suggestions.
ui-design-iteration
Iterates on data-intensive UI designs to improve scannability, hierarchy, accessibility, and systematization. Use when improving an existing UI, reviewing a design for UX issues, or transforming a functional-but-flat interface into a polished product.
tpm-spec-verify
Enrich a Phase Sepc/PRD with Quality Requirements (Q-nnn) and Acceptance Criteria (AC-nnnn). Use when user wants to add QA perspective, define test criteria, identify non-functional requirements, add verification steps, or prepare a Phase PRD for test planning.
find-bugs
Adversarial three-agent bug review pipeline. Runs search → adversary → judge to find high-confidence bugs with reduced false positives. Use: /find-bugs src/
Didn't find tool you were looking for?