Skip to main content
skill CX Codex

youtube-transcript · badlogic — Claude Code skill: what it does, how to install

Fetches timestamped transcripts from YouTube videos for summarization and quick analysis. Useful when extracting key insights directly in your coding assistant.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add badlogic/pi-skills --skill youtube-transcript -a claude-code
Open on GitHub

What youtube-transcript does

This skill retrieves text transcripts from YouTube videos directly into your agent session. It accepts either a video ID like EBw7gsDPAYQ or a direct video address. The output provides timestamped lines in the [0:00] format, ready for parsing or summarization.

Under the hood, it runs the transcript.js script. Initial setup requires navigating into the skill folder and running npm install. The tool relies on Node.js.

The video must have captions available. It works with auto-generated transcripts and manually uploaded captions. If the creator disabled captions entirely, the script fails, making caption availability the first thing to check.

What it helps with

  • fetch timestamped captions from a YouTube video
  • extract video content for summaries without manual watching
  • find exact quotes using video timestamps
  • supply video transcript context directly to the coding agent

Example prompts for the agent

  • Fetch the transcript for video EBw7gsDPAYQ and summarize key points.
  • Run transcript.js on EBw7gsDPAYQ and extract the step-by-step instructions.

How to install youtube-transcript

1Skills CLI (Vercel)

npx skills add badlogic/pi-skills --skill youtube-transcript -a claude-code

2Manually: put the files in place

~/.claude/skills/youtube-transcript/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/youtube-transcript/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about youtube-transcript

How do I install youtube-transcript in Claude Code?

Run npx skills add badlogic/pi-skills --skill youtube-transcript -a claude-code. After that, change to the skill directory and run npm install.

What does youtube-transcript do?

It executes transcript.js against a target YouTube video to pull captions with timestamps. You can then summarize or query that text within your coding agent.

Does youtube-transcript work with auto-generated subtitles?

Yes, it handles both manual captions and YouTube auto-generated transcripts. The script will only fail if captions are completely unavailable for the video.

Source text

SKILL.md · MIT
---
name: youtube-transcript
description: Fetch transcripts from YouTube videos for summarization and analysis.
---

# YouTube Transcript

Fetch transcripts from YouTube videos.

## Setup

```bash
cd {baseDir}
npm install
```

## Usage

```bash
{baseDir}/transcript.js <video-id-or-url>
```

Accepts video ID or full URL:
- `EBw7gsDPAYQ`
- `https://www.youtube.com/watch?v=EBw7gsDPAYQ`
- `https://youtu.be/EBw7gsDPAYQ`

## Output

Timestamped transcript entries:

```
[0:00] All right. So, I got this UniFi Theta
[0:15] I took the camera out, painted it
[1:23] And here's the final result
```

## Notes

- Requires the video to have captions/transcripts available
- Works with auto-generated and manual transcripts

© badlogic · MIT · badlogic/pi-skills

Similar skills

All skills for Agent setup: memory, context, orchestration →

youtube-transcript by other authors comes first.

youtube-transcript intellectronica Extracts transcripts and subtitles from YouTube videos. Useful when you need video text with or without timestamps inside your agent. CX Codex +1 3,400installs youtube-transcript michalparkola Downloads YouTube captions and transcripts from a video URL. Use it when you need a video’s text for reading or analysis. CX Codex +1 861installs baoyu-youtube-transcript JimLiu Pulls YouTube transcripts and cover images from a URL or video ID. Handy when you want the text of a video without copying it by hand. CX Codex +1 21,600installs youtube-downloader daymade Downloads video, audio, and subtitles from YouTube or HLS streams using yt-dlp and ffmpeg. It grabs media files or extracts spoken text without downloading full videos. CX Codex +1 1,500installs youtube-clipper nexu-io Automates YouTube video clipping: pulls source video, extracts highlights, adds captions, and exports the clip. Useful when you need to quickly generate shorts or highlight reels from long-form content. CX Codex +1 2,700installs transcript-intelligence ScrapeCreators Pulls transcripts from TikTok, YouTube, Instagram and other social video, then extracts hooks, quotes and reusable content ideas. CX Codex +1 1,300installs transcript-fixer daymade Corrects ASR/STT errors in transcripts: homophones, garbled terms, wrong names, mixed Chinese and English. Useful for meeting notes, lectures and interviews. CX Codex +1 1,200installs video-transcript-downloader steipete Turns a video into a clean paragraph of text, or downloads the video, audio track or subtitles through yt-dlp. Useful when you would rather skim a talk than watch it. CX Codex +1 1,000installs

From the same set2

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor