This pulls YouTube transcripts as timestamped text, which is exactly what you need when you want Claude to summarize a video or answer questions about its content without watching the whole thing. Takes a video ID or URL, spits out timestamped entries like "[0:00] All right. So, I got this UniFi Theta". The obvious use case is feeding long videos into Claude for analysis, but it's also handy for quick reference or building your own search layer over video content. Only works if the video has captions available, either manual or auto-generated, so you're out of luck with videos that have disabled transcripts.
npx -y skills add badlogic/pi-skills --skill youtube-transcript --agent claude-codeInstalls into .claude/skills of the current project.
Fetch transcripts from YouTube videos.
cd {baseDir}
npm install
{baseDir}/transcript.js <video-id-or-url>
Accepts video ID or full URL:
EBw7gsDPAYQhttps://www.youtube.com/watch?v=EBw7gsDPAYQhttps://youtu.be/EBw7gsDPAYQTimestamped 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
juliusbrussee/caveman
mattpocock/skills
shadcn/improve
obra/superpowers
forrestchang/andrej-karpathy-skills
vercel-labs/skills