youtube-download

youtube-download is a skill for Claude Code from mayank-io/mstack. It costs 57 tokens per session (3,091 once invoked), scanned A, original, MIT.

A tool for retrieving a YouTube video's transcript and details such as its title information, chapters, and speakers. It can also use the video's audio to create a transcript when other sources are unavailable.

In plain words
What is it for?
It is for extracting transcripts and metadata from YouTube links, including chapter and speaker information.
Why use it?
It avoids having to watch a whole video or manually copy its spoken content and metadata.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: positional $N argument; built for gstack.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the fetch plugin — 10 skills shipped together

Good fit It is for extracting transcripts and metadata from YouTube links, including chapter and speaker information.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add mayank-io/mstack
Claude Code
/plugin install fetch

Made for: Claude Code.

Or install fetch, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for youtube-download

README.md
[![agentmods](https://agentmods.dev/badge/skills/mayank-io/mstack/youtube-download/github.svg)](https://agentmods.dev/skills/mayank-io/mstack/youtube-download)
Your own site
<a href="https://agentmods.dev/skills/mayank-io/mstack/youtube-download"><img src="https://agentmods.dev/badge/skills/mayank-io/mstack/youtube-download/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for youtube-download

Your own site · 80×15
<a href="https://agentmods.dev/skills/mayank-io/mstack/youtube-download"><img src="https://agentmods.dev/badge/skills/mayank-io/mstack/youtube-download.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,091 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00057 $0.03091
Opus 5.5 $0.00023 $0.01236
Sonnet 5.5 $0.00011 $0.00618
Haiku 4.5 $0.00006 $0.00309

Measured 22d ago against content hash 4c5cecd1e819, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

youtube-download scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/fetch/skills/youtube-download/SKILL.md · 278 lines

How it starts

The opening of the file, as written. The whole thing — 278 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Download YouTube

Extract the transcript and metadata from a YouTube video. The script tries three tiers in order: youtube_transcript_api (no browser), the gstack browser's transcript panel, then Whisper over the audio.

Browser — always gstack, never headless

Browser work goes through the gstack browser, which holds the user's logged-in sessions. A fresh Playwright instance is logged out: it silently returns login walls or truncated content that looks like a successful capture.

B="$HOME/.claude/skills/gstack/browse/dist/browse"
"$B" connect        # run from the target directory — another cwd spawns a second
                    # daemon and kills the headed session
"$B" goto "<url>"
"$B" js '<expression>'

Do NOT disconnect when done. browse disconnect tears down the daemon and the logged-in sessions with it. Leave it running — the daemon is a shared user resource, connect is safe to call again, and only whoever started it should close it.

Never launch a headless browser. Not headless=True, not --headless, not a fresh chromium.launch(). If gstack is unavailable, stop and say so rather than falling back — a logged-out capture is worse than no capture, because it looks fine.

Configuration

There is nothing to configure. The browser tier drives the gstack daemon, which supplies the session; the script does not launch a browser or manage a profile of its own.

--profile and --headless are still accepted so older call sites keep working, but both are ignored and the script says so on stderr. There is no longer a chrome_profile_path or headless setting to read.

YouTube sign-in

The transcript comes out of whatever session the headed daemon holds — the user's own Chrome. If that session is not signed in to YouTube, the script prints a warning and continues: public videos are unaffected, but a members-only or age-gated one renders a watch page with no "Show transcript" button, which looks exactly like a video that has no captions. When you see that warning and the extraction comes back empty, the fix is to sign in to YouTube in Chrome — not to conclude the video has no transcript.

Read the full file on GitHub · 278 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago Changed · +48 lines · +13 tokens per session 4c5cecd1e819
  2. 1mo ago First seen · 230 lines · 44 tokens per session scan A a684b1629efd

Subscribe to this mod's changes

youtube-download is a skill published in the GitHub repository mayank-io/mstack (6 stars, last pushed 3d ago), licensed MIT. It adds 57 tokens to every session and 3,091 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-13.

Related

Other skills, from other repositories

interactive-login

Log a CLI in with a browser/device-code flow (aws sso, gh, glab, gcloud, …) and save the result to the keychain so later commands can request it through execute.credentials.

yc-software/qm · 46 tokens

pinchtab-mcp

Use this skill when a task requires browser automation through PinchTab's MCP server connected to a remote browser instance. Covers navigation, element interaction, data extraction, form filling, multi-step flows, and session management via MCP tools.

pinchtab/pinchtab · 52 tokens

azure-messaging-webpubsub-java

Build real-time web applications with Azure Web PubSub SDK for Java. Use when implementing WebSocket-based messaging, live updates, chat applications, or server-to-client push notifications.

microsoft/skills · 43 tokens

cua-driver

Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.

davidondrej/skills · 68 tokens

open-design-browser

Inspect and exercise local HTML design artifacts and library prototype previews with the existing agent-browser CLI, including screenshots, interaction checks, and rendered DOM snapshots. Use when rendered evidence helps author or review a design; excludes browser installation, remote services, and unrelated browser…

compozy/compozy · 56 tokens

browser_cdp

A health check for Python code that produces a score, letter grade, and measures of issues such as complexity, duplication, dead code, dependencies, and architecture.

mateaix/mateclaw · 44 tokens