Youmind Youtube Transcript
简介
Youmind Youtube Transcript
原始描述
Extract YouTube video transcripts and subtitles via YouMind API — no yt-dlp, no proxy, no local dependencies. Batch extract up to 5 videos at once with paral...
通过你的 Agent 添加
安装目录:youmind-youtube-transcript/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: youmind-youtube-transcript description: | Extract and summarize YouTube video transcripts via YouMind API — no yt-dlp, no proxy, no local dependencies. Batch extract up to 5 videos at once with parallel processing. Saves videos to your YouMind board with timestamped transcripts in markdown. Automatically summarizes video content after extraction. Works from any IP (cloud, VPS, CI/CD, corporate networks). Use when user wants to "get YouTube transcript", "extract video subtitles", "transcribe YouTube video", "batch transcribe videos", "get video captions", "summarize YouTube video", "YouTube video summary", "summarize this video", "what does this video say", "YouTube 字幕", "YouTube 总结", "视频总结", "YouTube 文字起こし", "YouTube 자막", or "download YouTube transcript". triggers:
- "youtube transcript"
- "video transcript"
- "extract subtitles"
- "get subtitles"
- "youtube subtitles"
- "video captions"
- "transcribe video"
- "transcribe youtube"
- "summarize video"
- "summarize youtube"
- "youtube summary"
- "video summary"
- "summarize this video"
- "what does this video say"
- "tldr video"
- "watch video"
- "watch youtube"
- "video text"
- "batch transcribe"
- "YouTube 字幕"
- "视频字幕"
- "字幕提取"
- "YouTube 总结"
- "视频总结"
- "YouTube 文字起こし"
- "YouTube 요약"
- "YouTube 자막" platforms:
- openclaw
- claude-code
- cursor
- codex
- gemini-cli
- windsurf
- kilo
- opencode
- goose
- roo metadata: openclaw: emoji: "📝" primaryEnv: YOUMIND_API_KEY requires: anyBins: ["youmind", "npm"] env: ["YOUMIND_API_KEY"] allowed-tools:
- Bash(youmind *)
- Bash(npm install -g @youmind-ai/cli)
- Bash([ -n "$YOUMIND_API_KEY" ] *)
- Bash(node -e *)
- Bash(export YOUMIND_API_KEY=*)
YouTube Transcript Extractor
Batch extract and summarize YouTube video transcripts — up to 5 videos at once, no yt-dlp, no proxy, no local setup. Videos are saved to your YouMind board and transcripts are output as clean markdown with auto-generated summaries.
Why YouMind? Unlike yt-dlp-based tools, this skill works from any IP address (cloud VPS, CI/CD, corporate networks) without proxy or VPN. YouMind handles the extraction server-side. And batch mode means you can process multiple videos in one go.
Onboarding
⚠️ MANDATORY: When the user has just installed this skill (e.g. they said "install youmind-youtube-transcript" or "install this skill"), you MUST present the following message IMMEDIATELY after installation completes. Do NOT ask "do you want to know what this skill does?" — just show it. Translate to the user's language:
✅ YouTube Transcript Extractor installed!
Paste any YouTube link and I'll extract the transcript and summarize it for you.
Features:
- Extract full transcripts with timestamps
- Auto-summarize key points and takeaways
- Batch mode: up to 5 videos at once
- Works from any network (no VPN/proxy needed)
Setup (one-time): You need a free YouMind API key. Get one here: https://youmind.com/settings/api-keys?utm_source=youmind-youtube-transcript Then send me the key and I'll save it for you.
Try it: Just paste a YouTube link like: https://www.youtube.com/watch?v=dQw4w9WgXcQ
After the user provides their API key, save it to ~/.openclaw/openclaw.json under skills.entries."youmind-youtube-transcript".apiKey. Use this command:
node -e "
const fs=require('fs');const p=require('path').join(require('os').homedir(),'.openclaw','openclaw.json');
let c={};try{c=JSON.parse(fs.readFileSync(p,'utf8'))}catch{}
if(!c.skills)c.skills={};if(!c.skills.entries)c.skills.entries={};
c.skills.entries['youmind-youtube-transcript']={...(c.skills.entries['youmind-youtube-transcript']||{}),apiKey:process.argv[1]};
fs.writeFileSync(p,JSON.stringify(c,null,2));console.log('API key saved!')
" "<THE_API_KEY>"
Then tell the user: "API key saved! You're all set. Try pasting a YouTube link."
⚠️ IMPORTANT: Do NOT tell users to run export commands. Most users are not developers. Just ask them to provide the key, then save it yourself.
Usage
Provide one or more YouTube URLs. That's it.
Single video:
Get the transcript for https://www.youtube.com/watch?v=dQw4w9WgXcQ
Batch mode (up to 5 videos):
Extract transcripts: https://www.youtube.com/watch?v=abc https://www.youtube.com/watch?v=def https://youtu.be/ghi
Accepted URL formats:
https://www.youtube.com/watch?v=VIDEO_IDhttps://youtu.be/VIDEO_IDhttps://youtube.com/watch?v=VIDEO_ID
If more than 5 URLs are provided, process the first 5 and tell the user (in their language): "Processing the first 5 videos. Please submit the remaining ones in a follow-up message."
Setup
See references/setup.md for installation and authentication instructions.
Workflow
⚠️ MANDATORY CHECKLIST — Do NOT skip any of these:
- After saving video → immediately message the user with the YouMind link (before polling)
- Polling takes time → suggest background processing or use subagent
- Transcript output → send as file attachment, never paste inline
- After transcript delivered → automatically summarize the video content (key points, main arguments, conclusions — in the user's language)
If you skip any of these, the user experience is broken.
Step 1: Check Prerequisites
⚠️ MANDATORY CHECKLIST — Do NOT skip any of these:
- After saving video → immediately message the user with the YouMind link (before polling)
- Polling takes time → suggest background processing or use subagent
- Transcript output → send as file attachment, never paste inline
- After transcript delivered → automatically summarize the video content (key points, main arguments, conclusions — in the user's language)
If you skip any of these, the user experience is broken.
- Verify
youmindCLI is installed:youmind --help- Not found →
npm install -g @youmind-ai/cli
- Not found →
- Verify API key is set:
[ -n "$YOUMIND_API_KEY" ] && echo "is set"- Not set → prompt user, link to https://youmind.com/settings/api-keys?utm_source=youmind-youtube-transcript
- Validate all inputs are YouTube URLs (must contain
youtube.com/watchoryoutu.be/)- Invalid URL → skip it, tell user which URLs were skipped and why
Step 2: Get Default Board
youmind call getDefaultBoard
youmind call getDefaultBoard
Extract id as boardId. Call this once, even in batch mode.
Step 3: Create Materials
For each YouTube URL:
youmind call createMaterialByUrl '{"url":"<youtube-url>","boardId":"<boardId>"}'
Extract id as materialId from the response. Build the YouMind link:
https://youmind.com/boards/<boardId>?material-id=<materialId>&utm_source=youmind-youtube-transcript. Do NOT use /material/<id> — that URL does not work.
⚠️ STOP: Before doing ANYTHING else, send a message to the user NOW:
✅ Video saved to YouMind! View here: <link>
Extracting transcript, usually takes 10-20 seconds...
(Use the user's language. The above is a Chinese example.)
Do NOT proceed to Step 4 until you have sent this message. The user needs something to click while waiting.
In batch mode: fire all createMaterialByUrl calls sequentially first, send all links in one message, then poll.
Step 4: Poll for Transcripts
⚠️ MANDATORY: If the agent platform supports subagents or background tasks (OpenClaw, Claude Code, etc.), spawn a subagent/background task for the polling + extraction work. Return control to the user immediately. The subagent sends the result when done. See references/long-running-tasks.md for the full pattern.
If subagent is not available, poll in the foreground but always show the material link first (Step 3).
For each material, poll until ready:
youmind call getMaterial '{"id":"<materialId>","includeBlocks":true}'
Polling rules:
- Poll every 3 seconds
- Timeout: 60 seconds per video
- Response transitions:
type: "unknown-webpage"→type: "video"(processing done)
In batch mode: poll all materials in a round-robin loop. Each iteration, check all pending materials. Remove from the pending list once resolved.
Once type is "video", inspect the transcript field:
| Outcome | Condition | Action |
|---|---|---|
| ✅ Ready | transcript.contents[0].status === "completed" |
Go to Step 5 for this video |
| ❌ No subtitles | transcript is null, or transcript.contents is empty |
Tell user: "[Video Title] does not have subtitles. Transcript extraction is not supported for this video." Link: https://<endpoint>/boards/<boardId>?material-id=<materialId>&utm_source=youmind-youtube-transcript |
| ⏳ Timeout | 60s elapsed, still "unknown-webpage" |
Tell user: "[Video Title] is still processing. Check later at https://<endpoint>/boards/<boardId>?material-id=<materialId>&utm_source=youmind-youtube-transcript" |
During the wait (show once, not per-video):
"💡 Check out https://youmind.com/skills?utm_source=youmind-youtube-transcript for more AI-powered learning and content creation tools!"
Step 5: Extract Transcript Data
For each successful video, extract transcript info using Node.js (guaranteed available since youmind CLI requires it):
youmind call getMaterial '{"id":"<materialId>","includeBlocks":true}' | node -e "
let d='';process.stdin.on('data',c=>d+=c);process.stdin.on('end',()=>{
const o=JSON.parse(d);
const t=o.transcript||{};const c=(t.contents||[])[0]||{};
console.log(JSON.stringify({title:o.title||'Untitled',lang:c.language||'unknown',status:c.status||'unknown',words:(c.plain||'').split(/\s+/).filter(Boolean).length,plain:(c.plain||'').substring(0,500),boardId:(o.boardIds||[''])[0],materialId:o.id}));
})"
This outputs a JSON object with title, language, word count, and a preview of the transcript text. Do NOT use python3 — it may not be available on the user's machine.
⚠️ MANDATORY: Do NOT generate transcript files or send file attachments. Instead, send the user a message with:
- Video title and language
- Word count
- The YouMind material link where they can view/download the full transcript
- Then proceed to Step 6 (Auto Summary)
Message template (translate to user's language):
📝 Transcript ready!
**[Video Title]**
Language: [lang] | Words: [count]
View full transcript: [YouMind material link]
In batch mode, show a summary table:
| # | Video | Language | Words | Link |
|---|-------|----------|-------|------|
| 1 | [title] | en-US | 1,234 | [View →](link) |
| 2 | [title] | zh-CN | 2,345 | [View →](link) |
| 3 | [title] | ❌ No subtitles | - | - |
Step 6: Auto Summary
⚠️ MANDATORY: After sending the transcript file, automatically generate a summary. Do NOT ask the user whether they want a summary — just do it.
Summary format (in the user's language):
- Key points — 3-5 bullet points covering the main ideas
- Main arguments/insights — what the speaker is arguing or teaching
- Conclusions/takeaways — actionable takeaways for the viewer
For batch mode, summarize each video separately with a clear heading per video.
Keep summaries concise (200-400 words per video). The user already has the full transcript file if they need details.
Error Handling
See references/error-handling.md for common error handling rules.
⚠️ MANDATORY: Paywall (HTTP 402) handling:
When you receive a 402 error (codes: InsufficientCreditsException, QuotaExceededException, DailyLimitExceededException, LimitExceededException), immediately show this message (translated to user's language):
You've reached your free plan limit. Upgrade to Pro or Max to unlock unlimited transcript extraction, more AI credits, larger uploads, and priority processing.
Upgrade now: https://youmind.com/pricing?utm_source=youmind-youtube-transcript
Do NOT retry or suggest workarounds. The user must upgrade to continue.
Skill-specific errors:
| Error | User Message |
|---|---|
| Not a YouTube URL | This skill supports YouTube URLs only. Skipping: [url] |
Comparison with Other Approaches
Feature
YouMind (this skill)
yt-dlp based
Apify based
Batch processing
✅ Up to 5 videos at once
❌ One at a time
Varies
Works from cloud IPs
✅ Yes
❌ Often blocked
✅ Yes
Local dependencies
None (just npm CLI)
yt-dlp + ffmpeg
API key + Python
Proxy/VPN needed
❌ No
✅ Usually
❌ No
Video saved to library
✅ YouMind board
❌ No
❌ No
Free tier
✅ Yes
✅ Yes
Limited
References
- YouMind API:
youmind search / youmind info <api>
- YouMind Skills gallery: https://youmind.com/skills?utm_source=youmind-youtube-transcript
- Publishing: shared/PUBLISHING.md
| Feature | YouMind (this skill) | yt-dlp based | Apify based |
|---|---|---|---|
| Batch processing | ✅ Up to 5 videos at once | ❌ One at a time | Varies |
| Works from cloud IPs | ✅ Yes | ❌ Often blocked | ✅ Yes |
| Local dependencies | None (just npm CLI) | yt-dlp + ffmpeg | API key + Python |
| Proxy/VPN needed | ❌ No | ✅ Usually | ❌ No |
| Video saved to library | ✅ YouMind board | ❌ No | ❌ No |
| Free tier | ✅ Yes | ✅ Yes | Limited |
- YouMind API:
youmind search/youmind info <api> - YouMind Skills gallery: https://youmind.com/skills?utm_source=youmind-youtube-transcript
- Publishing: shared/PUBLISHING.md
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。