youtube-transcribe-skill
Extract subtitles/transcripts from a YouTube video URL and save as a local file.
Skill by billlzzz18
Chalk Labs
Need help deploying youtube-transcribe-skill?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
npx agentmarket install skill/billlzzz18-youtube-transcribe-skill
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/youtube-transcribe-skill
Tools it pre-approves 9
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Read,Write,Glob,Grep,Task,Bash(cat:*),Bash(ls:*),Bash(tree:*),Bash(yt-dlp:*)
What's inside
- Skill name
youtube-transcribe-skill- Description
- Extract subtitles/transcripts from a YouTube video URL and save as a local file. Use when you need to extract subtitles from a YouTube video.
- License
- MIT
- Allowed tools
- Read,, Write,, Glob,, Grep,, Task,, Bash(cat:*),, Bash(ls:*),, Bash(tree:*),, Bash(yt-dlp:*)
- Instructions
- 112 lines in SKILL.md · view on GitHub
Before installing
- Pre-approves some shell commands
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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 and Get Video Information
1. **Verify URL Format**: Confirm the input is a valid YouTube URL (supports `youtube.com/watch?v=` or `youtu.be/` formats).
2. **Get Video Information**: Use WebFetch or firecrawl to fetch the page and extract the video title for subsequent file naming.
## Step 2: CLI Quick Extraction (Priority Attempt)
Use command-line tools to quickly extract subtitles.
1. **Check Tool Availability**:
Execute `which yt-dlp`.
- If `yt-dlp` is **found**, proceed to subtitle download.
- If `yt-dlp` is **NOT found**, skip immediately to **Step 3**.
2. **Execute Subtitle Download** (Only if `yt-dlp` is found):
- **Tip**: Always add `--cookies-from-browser` to avoid sign-in restrictions. Default to `chrome`.
- **Retry Logic**: If `yt-dlp` 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.
```bash
# Get the title first (try chrome first)
yt-dlp --cookies-from-browser=chrome --get-title "[VIDEO_URL]"
# 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]"
```
3. **Verify Results**:
- Check the command exit code.
- **Exit code 0 (Success)**: Subtitles have been saved locally, task complete.
- **Exit code non-0 (Failure)**:
- If error is related to browser/cookies, ask user for correct browser and retry Step 2.
- 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 browser UI automation to extract subtitles.
1. **Check Tool Availability**:
- Check if `chrome-devtools-mcp` tools (specifically `mcp__plugin_claude-code-settings_chrome__new_page`) are available.
- **CRITICAL CHECK**: If `chrome-devtools-mcp` is **NOT** available AND `yt-dlp` was **NOT** found in Step 2:
- **STOP** execution.
- **Notify the User**: "Unable to proceed. Please either install `yt-dlp` (for fast CLI extraction) OR configure `chrome-devtools-mcp` (for browser automation)."
2. **Initialize Browser Session** (If tools are available):
Call `mcp__plugin_claude-code-settings_chrome__new_page` to open the video URL.
### 3.2 Analyze Page State
Call `mcp__plugin_claude-code-settings_chrome__take_snapshot` to read the page accessibility tree.
### 3.3 Expand Video Description
_Reason: The "Show transcript" button is usually hidden within the collapsed description area._
1. Search the snapshot for a button labeled **"...more"**, **"...更多"**, or **"Show more"** (usually located in the description block below the video title).
2. Call `mcp__plugin_claude-code-settings_chrome__click` to click that button.
### 3.4 Open Transcript Panel
1. Call `mcp__plugin_claude-code-settings_chrome__take_snapshot` to get the updated UI snapshot.
2. Search for a button labeled **"Show transcript"**, **"显示转录稿"**, or **"内容转文字"**.
3. Call `mcp__plugin_claude-code-settings_chrome__click` to click that button.
### 3.5 Extract Content via DOM
_Reason: Directly reading the accessibility tree for long lists is slow and consumes many tokens; DOM injection is more efficient._
Call `mcp__plugin_claude-code-settings_chrome__evaluate_script` to execute the following JavaScript:
```javascript
() => {
// Select all transcript segment containers
const segments = document.querySelectorAll("ytd-transcript-segment-renderer");
if (!segments.length) return "BUFFERING"; // Retry if empty
// Iterate and format as "timestamp text"
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.
### 3.6 Save and Cleanup
1. Use the Write tool to save the extracted text as a local file (e.g., `<Video Title>.txt`).
2. Call `mcp__plugin_claude-code-settings_chrome__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, total number of lines.From billlzzz18/bl1nk-skill-platform, MIT.
More from billlzzz18/bl1nk-skill-platform
- 0.409score
nanobanana-skill
billlzzz18
Generate or edit images using Google Gemini API via nanobanana.
SkillDFreshness: DClaude Code - 0.409score
kiro-skill
billlzzz18
Interactive feature development workflow from idea to implementation.
SkillDFreshness: DClaude Code +9 - 0.406score
spec-kit-skill
billlzzz18
GitHub Spec-Kit integration for constitution-based spec-driven development.
SkillDFreshness: DClaude Code +9 - 0.385score
canvas-design
billlzzz18
Create beautiful visual art in .png and .pdf documents using design philosophy.
SkillDFreshness: DClaude Code +9 - 0.385score
algorithmic-art
billlzzz18
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
SkillDFreshness: DClaude Code +9 - 0.385score
brand-guidelines
billlzzz18
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillDFreshness: DClaude Code +9 - 0.214score
autonomous-skill
billlzzz18
No description from the publisher yet.
SkillDFreshness: DClaude Code +9 - 0.211score
Prompt_Engineering_Expert
billlzzz18
No description from the publisher yet.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Dec 14, 2025 (10 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from billlzzz18
- 0.409score
kiro-skill
billlzzz18
Interactive feature development workflow from idea to implementation.
SkillDFreshness: DClaude Code +9 - 0.409score
nanobanana-skill
billlzzz18
Generate or edit images using Google Gemini API via nanobanana.
SkillDFreshness: DClaude Code - 0.406score
spec-kit-skill
billlzzz18
GitHub Spec-Kit integration for constitution-based spec-driven development.
SkillDFreshness: DClaude Code +9 - 0.385score
algorithmic-art
billlzzz18
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
SkillDFreshness: DClaude Code +9 - 0.385score
brand-guidelines
billlzzz18
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillDFreshness: DClaude Code +9 - 0.385score
canvas-design
billlzzz18
Create beautiful visual art in .png and .pdf documents using design philosophy.
SkillDFreshness: DClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get youtube-transcribe-skill running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
youtube-transcribe-skill. Agent Mart. https://agentmart.dev/skills/billlzzz18-youtube-transcribe-skill (last updated 2026-10-24)