youtube-transcript

intellectronica/agent-skills · updated Apr 8, 2026

$npx skills add https://github.com/intellectronica/agent-skills --skill youtube-transcript
0 commentsdiscussion
summary

Extract transcripts from YouTube videos with optional timestamps.

  • Accepts multiple URL formats (youtube.com/watch?v=, youtu.be/, embed links, or raw video IDs) and outputs plain text or timestamped format
  • Fetches auto-generated or manually added captions, whichever is available; requires captions to be enabled on the video
  • Outputs to a file named VIDEO_ID-transcript.txt by default, or to a user-specified file path
  • When timestamps are omitted, reorganizes caption segments into comp
skill.md

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

  • Fetches auto-generated or manually added captions (whichever is available)
  • Requires the video to have captions enabled
  • Falls back to auto-generated captions if manual ones aren't available

Discussion

Product Hunt–style comments (not star reviews)
  • No comments yet — start the thread.
general reviews

Ratings

4.745 reviews
  • Meera Abebe· Dec 16, 2024

    youtube-transcript fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.

  • William Ndlovu· Dec 16, 2024

    Registry listing for youtube-transcript matched our evaluation — installs cleanly and behaves as described in the markdown.

  • Shikha Mishra· Dec 12, 2024

    youtube-transcript is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Diya Sethi· Dec 12, 2024

    We added youtube-transcript from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.

  • Arya Choi· Nov 7, 2024

    I recommend youtube-transcript for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.

  • Charlotte Perez· Nov 7, 2024

    youtube-transcript reduced setup friction for our internal harness; good balance of opinion and flexibility.

  • Yash Thakker· Nov 3, 2024

    Useful defaults in youtube-transcript — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.

  • Arya Perez· Oct 26, 2024

    Solid pick for teams standardizing on skills: youtube-transcript is focused, and the summary matches what you get after install.

  • Alexander Ramirez· Oct 26, 2024

    youtube-transcript is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.

  • Dhruvi Jain· Oct 22, 2024

    Registry listing for youtube-transcript matched our evaluation — installs cleanly and behaves as described in the markdown.

showing 1-10 of 45

1 / 5