YouTube Transcript extracts text transcripts from YouTube videos using the youtube-transcript-api library, serving users who need written versions of video content. It accepts YouTube URLs or video IDs and returns transcripts with optional timestamps, supporting multiple URL formats and automatically falling back to auto-generated captions when manual ones aren't available. The skill solves the problem of accessing video content in text form for accessibility, searchability, and reference purposes.

skills.sh installs
3.4K
GitHub stars
301
last updated
Aug 21, 2026

Install

$ npx -y skills add intellectronica/agent-skills --skill youtube-transcript --agent claude-code

Installs into .claude/skills of the current project.

Files

YouTube Transcript

Extract transcripts from YouTube videos using the youtube-transcript-api.

Usage

Run the script with a YouTube URL or video ID:

uv run scripts/get_transcript.py "VIDEO_URL_OR_ID"

With timestamps:

uv run scripts/get_transcript.py "VIDEO_URL_OR_ID" --timestamps

Defaults

  • Without timestamps (default): Plain text, one line per caption segment
  • With timestamps: [MM:SS] text format (or [HH:MM:SS] for longer videos)

Supported URL Formats

  • https://www.youtube.com/watch?v=VIDEO_ID
  • https://youtu.be/VIDEO_ID
  • https://youtube.com/embed/VIDEO_ID
  • Raw video ID (11 characters)

Output

  • CRITICAL: YOU MUST NEVER MODIFY THE RETURNED TRANSCRIPT
  • If the transcript is without timestamps, you SHOULD clean it up so that it is arranged by complete paragraphs and the lines don't cut in the middle of sentences.
  • If you were asked to save the transcript to a specific file, save it to the requested file.
  • If no output file was specified, use the YouTube video ID with a -transcript.txt suffix.

Notes

Sponsors

Details

Repository
github.com/intellectronica/agent-skills
Category
AI & Agent Building

More from intellectronica/agent-skills

All 22
1dicklesworthstone avatarcassdicklesworthstone/coding_agent_session_searchCoding Agent Session Search - unified CLI/TUI to index and search local coding agent history from Claude Code, Codex, Gemini, Cursor, Aider, ChatGPT, Pi-Agent, 3.4Kskills.sh installs
2hashicorp avatarazure-verified-moduleshashicorp/agent-skillsAzure Verified Modules (AVM) requirements and best practices for developing certified Azure Terraform modules. Use when creating or reviewing Azure modules that3.4Kskills.sh installs
3jgraph avatardrawiojgraph/drawio-mcpdrawio3.4Kskills.sh installs
4apify avatarapify-market-researchapify/agent-skillsAnalyze market conditions, geographic opportunities, pricing, consumer behavior, and product validation across Google Maps, Facebook, Instagram, Booking.com, an3.4Kskills.sh installs
5hashicorp avatarprovider-test-patternshashicorp/agent-skillsTerraform provider acceptance test patterns using terraform-plugin-testing with the Plugin Framework. Covers test structure, TestCase/TestStep fields, ConfigSta3.4Kskills.sh installs
6openai avatarwinui-appopenai/skillsBootstrap, develop, and design modern WinUI 3 desktop applications with C# and the Windows App SDK using official Microsoft guidance, WinUI Gallery patterns, Wi3.4Kskills.sh installs