Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

baoyu-youtube-transcript

Skill by JimLiu

Downloads YouTube transcripts, subtitles and cover images from a video URL or ID. Useful for users who want caption text or thumbnails without an API key.

  • Score 92
  • 28k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install baoyu-youtube-transcript

Built from the published package, never by AI.

git clone --depth 1 https://github.com/JimLiu/baoyu-skills /tmp/baoyu-skills && mkdir -p ~/.claude/skills && cp -r /tmp/baoyu-skills/skills/baoyu-youtube-transcript ~/.claude/skills/baoyu-youtube-transcript

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install baoyu-youtube-transcript in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Baoyu-youtube-transcript is an agent skill that downloads transcripts and subtitles for YouTube videos, plus the video cover image. It accepts a YouTube URL or bare video ID and supports multiple languages, translation, chapter segmentation and speaker identification. Output can be markdown with timestamps or SRT.

It needs no API key or browser. It uses YouTube's InnerTube API and falls back to yt-dlp when YouTube blocks the direct path. The script writes meta.json, raw and sentence JSON, transcript.md and cover.jpg into a per-video folder. Raw data is cached so later re-formatting is fast. It suits users who want caption text, subtitle files or cover images from YouTube videos.

Written from the project's SKILL.md and checked against it.

What it can do

  • Transcript downloadFetches manual or auto-generated transcripts by YouTube URL or video ID.
  • Language priorityThe --languages option takes comma-separated codes in priority order, such as zh,en,ja.
  • TranslationThe --translate option translates the transcript to a given language code.
  • ChaptersThe --chapters option segments the transcript using chapter timestamps from the video description.
  • Speaker identificationThe --speakers option saves a raw transcript with metadata for speaker labelling.
  • SRT outputThe --format srt option writes subtitles in SRT format.
  • Cover imageSaves the video thumbnail as imgs/cover.jpg.
  • Transcript listingThe --list option shows available transcripts without writing a file.
  • CachingRepeat runs use the cache. The --refresh option forces a new fetch.

What you need

  • bun or npx
  • yt-dlp for the fallback path when YouTube blocks direct requests

Try asking

  • Get the YouTube transcript for this URL in Chinese and English
  • Download the subtitles for this YouTube video as SRT
  • Save the cover image for this YouTube video

Good to know

  • Videos that are deleted, private or region-locked are unavailable.
  • Age-restricted videos fail because login is required.
  • Too many requests can get the IP blocked, so retry later.
  • Fallback to yt-dlp needs that tool to be available.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/baoyu-youtube-transcript/SKILL.md, skills/baoyu-youtube-transcript/scripts/main.test.ts, skills/baoyu-youtube-transcript/scripts/main.ts, skills/baoyu-youtube-transcript/scripts/shared.ts, skills/baoyu-youtube-transcript/scripts/storage.ts, skills/baoyu-youtube-transcript/scripts/transcript.ts, skills/baoyu-youtube-transcript/scripts/types.ts, skills/baoyu-youtube-transcript/scripts/youtube.ts. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB
  • prompts/speaker-transcript.md5 KB
  • scripts/main.test.ts8 KB
  • scripts/main.ts8 KB
  • scripts/shared.ts3 KB
Show all 9 files
  • scripts/storage.ts2 KB
  • scripts/transcript.ts14 KB
  • scripts/types.ts2 KB
  • scripts/youtube.ts22 KB

Alternatives to baoyu-youtube-transcript

All alternatives →

Compare with intelligence-vocabulary, media-use or media_library

baoyu-youtube-transcript: common questions

Does this need a YouTube API key?

No. The skill uses YouTube's InnerTube API and needs no API key or browser. It falls back to yt-dlp only when YouTube blocks the direct path.

What happens if a video has no transcript in my language?

Run the script with --list to see the available transcripts. A 'No transcript found' error means the requested language is not available.

Can it label who is speaking?

With --speakers, the script saves a raw transcript and metadata. A sub-agent then uses a speaker prompt to add speaker labels and chapters.

How do I install baoyu-youtube-transcript?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is baoyu-youtube-transcript free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is baoyu-youtube-transcript safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to baoyu-youtube-transcript?

Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.

baoyu-youtube-transcript Install

Add to stack

Loading.