agentleFS
jaansokkjaansokk/cursor_tools/.claude/skills/yt-transcript/SKILL.md

yt-transcript

Skill1 starsChanged 9 months agoMITView on GitHub

Fetch YouTube video transcripts and load them into context for further processing. Use this skill whenever the user shares a YouTube URL or video ID and wants to work with the video's content — summarizing, extracting insights, answering questions about it, translating, or feeding it into another workflow. Also trigger when the user says things like 'watch this', 'what does this video say', 'get the transcript', or pastes any youtube.com or youtu.be link. Supports English and Estonian transcripts.

  • Installs packages

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 3 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check first with pip show youtube-transcript-api to avoid reinstalling.

    line 22
  2. Very specific:

    Ensure youtube-transcript-api is installed

    line 38
  3. Distinctive:

    Run the script, capturing stdout

    line 39
  4. Very specific:

    If the user asks for Estonian or the video is in Estonian, use et

    line 45
  5. Distinctive:

    If the script fails (e.g., no transcript available, video is private, invalid URL), relay the error to the user clearly.

    line 50
  6. Distinctive:

    Don't save transcript files unless the user explicitly asks for it.

    line 59

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

YouTube Transcript Fetcher

Fetches the transcript of a YouTube video and loads the full text into your context so you can work with it immediately.

How it works

There's a Python script bundled with this skill that uses youtube-transcript-api to pull subtitles directly from YouTube — no browser or API key needed. It prints plain text to stdout. You capture that output and you're ready to go.

Prerequisites

The youtube-transcript-api package must be installed:

pip install youtube-transcript-api

Check first with pip show youtube-transcript-api to avoid reinstalling.

Usage

python /path/to/yt-transcript/scripts/yt_transcript.py "<youtube_url_or_video_id>" [lang]
  • First argument: any YouTube URL format (watch, shorts, embed, youtu.be) or a raw 11-character video ID
  • Second argument (optional): language code. Defaults to en. Use et for Estonian.

The script prints the full transcript as plain text to stdout. Capture it and work with it directly — no files are created.

Workflow

  1. User shares a YouTube link (or video ID)
  2. Ensure youtube-transcript-api is installed
  3. Run the script, capturing stdout
  4. The transcript is now in your context — proceed with whatever the user needs (summarize, answer questions, extract key points, feed into another skill, etc.)

Language handling

  • Default: English (en)
  • If the user asks for Estonian or the video is in Estonian, use et
  • The script prefers manual subtitles over auto-generated ones when available

Error handling

If the script fails (e.g., no transcript available, video is private, invalid URL), relay the error to the user clearly. Common issues:

  • "Could not extract a valid YouTube video ID" — the URL format wasn't recognized
  • Transcript not available — the video may not have subtitles, or they may be disabled
  • Network errors — check connectivity

Important notes

  • This skill is designed for Claude Code where the script runs on the user's machine with direct network access. It will not work in sandboxed environments that block youtube.com.
  • The transcript text can be long for lengthy videos. That's fine — just work with it in context.
  • Don't save transcript files unless the user explicitly asks for it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.