Tooluck logoTooluck
SKILL.md

baoyu-youtube-transcript

Agent skill fromJimLiu/baoyu-skills

Downloads YouTube video transcripts/subtitles and cover images by URL or video ID. Supports multiple languages, translation, chapters, and speaker identification. Caches raw data for fast re-formatting. Use when user asks to "get YouTube transcript", "download subtitles", "get captions", "YouTube字幕", "YouTube封面", "视频封面", "video thumbnail", "video cover image", or provides a YouTube URL and wants the transcript/subtitle text or cover image extracted.

How to install baoyu-youtube-transcript

install baoyu-youtube-transcript
# install the baoyu-skills pack with the skills CLI
npx skills add JimLiu/baoyu-skills

# or add only this skill to Claude Code: copy the folder

skills/baoyu-youtube-transcript/

# into

~/.claude/skills/baoyu-youtube-transcript/ (all projects)

.claude/skills/baoyu-youtube-transcript/ (one project)

skills/baoyu-youtube-transcript/SKILL.md

MITFull file
1# YouTube Transcript
2
3Works with manual and auto-generated transcripts. No API key or browser: uses YouTube's InnerTube API, falling back to `yt-dlp` when YouTube blocks the direct path. First run also fetches metadata and cover image and caches raw data for fast re-formatting.
4
5## Script Directory
6
7`{baseDir}` = this SKILL.md's directory. `${BUN_X}` = `bun` if installed; else `npx -y bun` if `npx` available; else suggest installing bun. Replace `{baseDir}` and `${BUN_X}` with actual values.
8
9| Script | Purpose |
10|--------|---------|
11| `scripts/main.ts` | Transcript download CLI |
12
13## Usage
14
15```bash
16${BUN_X} {baseDir}/scripts/main.ts <youtube-url-or-id> # markdown with timestamps (English)
17${BUN_X} {baseDir}/scripts/main.ts <url> --languages zh,en,ja # language priority
18${BUN_X} {baseDir}/scripts/main.ts <url> --chapters --speakers
19${BUN_X} {baseDir}/scripts/main.ts <url> --format srt
20${BUN_X} {baseDir}/scripts/main.ts <url> --translate zh-Hans
21${BUN_X} {baseDir}/scripts/main.ts <url> --list
22```
23
24| Option | Description | Default |
25|--------|-------------|---------|
26| `<url-or-id>` | YouTube URL or video ID (multiple allowed) | Required |
27| `--languages <codes>` | Language codes, comma-separated, in priority order | `en` |
28| `--format <fmt>` | `text` (`.md`: frontmatter incl. `description`, title, summary, optional TOC/cover/timestamps/chapters/speakers) or `srt` | `text` |
29| `--translate <code>` | Translate to language code | |
30…

Excerpt shown under the repository's MIT license.

More skills in baoyu-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Leonxlnx /

taste-skill
113k

Agent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages

CCCXCU1 skill

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates