Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
feiskyer avatar

Youtube Transcribe Skill

  • 284 installs
  • 1.6k repo stars
  • Updated July 27, 2026
  • feiskyer/claude-code-settings

youtube-transcribe-skill is a Claude Code skill that extracts YouTube subtitles and transcripts to local text files for developers who need searchable video content for research, RAG, or content repurposing.

About

youtube-transcribe-skill from feiskyer/claude-code-settings extracts subtitles and transcripts from YouTube video URLs and saves them as local text files. The skill validates youtube.com/watch, youtu.be, and youtube.com/shorts URL formats, then prioritizes CLI-based quick extraction before fallback methods when captions are available. Triggers include youtube transcript, extract subtitles, video captions, and multilingual phrases for subtitle extraction. Developers reach for youtube-transcribe-skill when they need searchable text from conference talks, tutorials, or interviews to build research summaries, meeting notes, or RAG document corpora without manual copy-paste from the YouTube UI. Input arrives via skill arguments or conversation context when a YouTube link is already shared.

  • Pulls speech text from YouTube URLs automatically
  • Enables summarization and quote extraction workflows
  • Feeds transcripts into search and RAG systems
  • Supports content repurposing and research agents
  • Automates manual note-taking from video sources

Youtube Transcribe Skill by the numbers

  • 284 all-time installs (skills.sh)
  • Ranked #499 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/feiskyer/claude-code-settings --skill youtube-transcribe-skill

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs284
repo stars1.6k
Last updatedJuly 27, 2026
Repositoryfeiskyer/claude-code-settings

How do you extract YouTube video transcripts to text?

Transcribe YouTube videos into searchable text for research summaries, content repurposing, meeting notes, or feeding transcripts into RAG and agent pipelines.

Who is it for?

Developers building research summaries, RAG corpora, or content repurposing pipelines from YouTube tutorial and conference videos.

Skip if: Offline audio transcription of local MP3 files or platforms other than YouTube where no caption track exists.

When should I use this skill?

A developer shares a YouTube URL and asks for transcript, subtitles, captions, or video-to-text extraction.

What you get

Local transcript text file with captions extracted from the submitted YouTube video URL.

  • Local transcript text file

By the numbers

  • Supports 3 YouTube URL formats: watch, youtu.be, and Shorts

Files

SKILL.mdMarkdownGitHub ↗

YouTube Transcript Extraction

Extract subtitles/transcripts from a YouTube video URL and save them as a local file.

Input YouTube URL: $ARGUMENTS

Step 1: Verify URL

Confirm the input is a valid YouTube URL (supports youtube.com/watch?v=, youtu.be/, and youtube.com/shorts/ formats). If no URL is provided via arguments, check the conversation context for a YouTube link.

Step 2: CLI Quick Extraction (Priority Attempt)

Use command-line tools to quickly extract subtitles.

2.1 Check Tool Availability

Execute which yt-dlp.

  • If yt-dlp is found, proceed to 2.2.
  • If yt-dlp is not found, skip to Step 3.

2.2 Get Video Title

yt-dlp --cookies-from-browser=chrome --get-title "[VIDEO_URL]"
  • Tip: Always add --cookies-from-browser to avoid sign-in restrictions. Default to chrome.
  • If it fails with a browser error (e.g., "Could not open Chrome"), ask the user to specify their available browser (e.g., firefox, safari, edge) and retry.

2.3 Download Subtitles

yt-dlp --cookies-from-browser=chrome --write-auto-sub --write-sub --sub-lang zh-Hans,zh-Hant,en --skip-download --output "<Video Title>.%(ext)s" "[VIDEO_URL]"

2.4 Convert to Plain Text

yt-dlp saves subtitles as .vtt or .srt files. Convert the downloaded file to plain Timestamp Text format:

1. Read the downloaded subtitle file (.vtt or .srt). 2. Strip VTT/SRT headers, styling tags, and duplicate lines. 3. Save as <Video Title>.txt with one Timestamp Text entry per line.

2.5 Verify Results

  • Exit code 0: Convert and save the subtitle file, then report completion.
  • Exit code non-0:
  • If error is related to browser/cookies, ask user for correct browser and retry.
  • If other errors (e.g., video unavailable), proceed to Step 3.

Step 3: Browser Automation (Fallback)

When the CLI method fails or yt-dlp is missing, use Chrome DevTools MCP to extract subtitles via browser UI automation.

3.1 Check Tool Availability

Check if Chrome DevTools MCP tools are available (look for tools matching chrome__new_page or similar).

If Chrome DevTools MCP is not available and yt-dlp was not found in Step 2, stop and notify the user: "Unable to proceed. Please either install yt-dlp (for fast CLI extraction) or configure Chrome DevTools MCP (for browser automation)."

3.2 Open Video Page

Use Chrome DevTools MCP new_page to open the video URL.

3.3 Analyze Page State

Use Chrome DevTools MCP take_snapshot to read the page accessibility tree.

3.4 Expand Video Description

The "Show transcript" button is usually hidden within the collapsed description area.

1. Search the snapshot for a button labeled "...more", "...更多", or "Show more" (in the description block below the video title). 2. Use Chrome DevTools MCP click to click that button.

3.5 Open Transcript Panel

1. Use Chrome DevTools MCP take_snapshot to get the updated UI. 2. Search for a button labeled "Show transcript", "显示转录稿", or "内容转文字". 3. Use Chrome DevTools MCP click to click that button. 4. If the button is not found, the video may not have a transcript available — notify the user and stop.

3.6 Extract Content via DOM

Directly reading the accessibility tree for long transcript lists is slow and token-heavy. Use Chrome DevTools MCP evaluate_script to run this JavaScript instead:

() => {
  const segments = document.querySelectorAll("ytd-transcript-segment-renderer");
  if (!segments.length) return "BUFFERING";
  return Array.from(segments)
    .map((seg) => {
      const time = seg.querySelector(".segment-timestamp")?.innerText.trim();
      const text = seg.querySelector(".segment-text")?.innerText.trim();
      return `${time} ${text}`;
    })
    .join("\n");
};

If it returns "BUFFERING", wait a few seconds and retry (up to 3 attempts).

3.7 Save and Cleanup

1. Save the extracted text as <Video Title>.txt. 2. Use Chrome DevTools MCP close_page to release resources.

Output Requirements

  • Save the subtitle file to the current working directory.
  • Filename format: <Video Title>.txt
  • File content format: Each line should be Timestamp Subtitle Text.
  • Report upon completion: file path, subtitle language, and total number of lines.

Related skills

How it compares

Pick youtube-transcribe-skill over general speech-to-text skills when the source is a public YouTube URL with available caption tracks.

FAQ

Which YouTube URL formats does youtube-transcribe-skill accept?

youtube-transcribe-skill validates youtube.com/watch?v= links, youtu.be short URLs, and youtube.com/shorts paths. If no URL is passed as an argument, the skill checks conversation context for an embedded YouTube link before extraction.

What does youtube-transcribe-skill output after extraction?

youtube-transcribe-skill saves extracted subtitles or auto-generated captions as a local text file suitable for search, summarization, or ingestion into RAG and agent pipelines. CLI extraction is attempted first for speed when captions are available.

Automation & Workflowsautomationresearchllm

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.