youtube-summary
Summarize any YouTube video by dropping the link in chat. Supports custom prompts — paste the URL followed by your instructions (e.g. 'focus on the technical details'). Triggers on YouTube URLs.
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- youtube-summary
- tags
- [ "youtube", "video", "summary", "transcript" ]
- author
- giskard
- license
- MIT
- version
- 1.3.2
- homepage
- https://github.com/chapati23
- metadata
- { "openclaw": { "emoji": "📺", "requires": { "env": [ "TRANSCRIPT_API_KEY" ], "bins": [ "python3" ] }, "primaryEnv": "TRANSCRIPT_API_KEY" } }
- description
- Summarize any YouTube video by dropping the link in chat. Supports custom prompts — paste the URL followed by your instructions (e.g. 'focus on the technical details'). Triggers on YouTube URLs.
03 SKILL.md 正文
YouTube Summary Skill
Summarize YouTube videos by extracting transcripts via TranscriptAPI.com and generating structured summaries.
Setup
Prerequisites
- Python 3.10+
- A TranscriptAPI.com account ($5/mo for 1,000 transcripts)
- Optional:
pass(Unix password manager) for secure key storage
Installation
- Sign up at transcriptapi.com and get your API key
- Provide the API key via one of these methods:
- Environment variable (simplest):
export TRANSCRIPT_API_KEY="your-key-here" passpassword store (most secure):pass insert transcriptapi/api-key
- Environment variable (simplest):
- Install Python dependencies:
pip install -r skills/youtube-summary/requirements.txt
Detection
Trigger on messages containing YouTube URLs matching any of:
youtube.com/watch?v=IDyoutu.be/IDyoutube.com/shorts/IDm.youtube.com/watch?v=IDyoutube.com/live/ID
⚠️ Critical Rules
- NEVER use web_search as a fallback. If transcript extraction fails, report the error and stop.
- NEVER fabricate transcript content. Only summarize what the extraction script returns.
- Always run the extraction script. Do not skip it, even for well-known videos.
Workflow
Step 1: Extract transcript
If using pass:
_yt_key_file=$(mktemp) && pass transcriptapi/api-key > "$_yt_key_file" && python3 skills/youtube-summary/scripts/extract.py "YOUTUBE_URL_OR_ID" --api-key-file "$_yt_key_file"; rm -f "$_yt_key_file"
If using env var:
python3 skills/youtube-summary/scripts/extract.py "YOUTUBE_URL_OR_ID"
(Reads TRANSCRIPT_API_KEY from the environment automatically.)
Security note: The pass + temp file approach avoids exposing the key in ps output or shell history. The env var approach is simpler but the key is visible in the process environment.
Parse stdout:
PROGRESS:lines → relay to user as status updates (optional)ERROR:lines → relay error to user, stopRESULT:line → parse the JSON afterRESULT:— contains:header,transcript,language,tokens,title,channel,duration_str
Step 2: Summarize the transcript
Use the extracted transcript to generate a summary. The summary language must match the transcript language (from the language field).
If tokens < 50000 — single-pass: summarize the full transcript in one request.
If tokens ≥ 50000 — tell the user it's a long video and summarize the first ~40K tokens with a note that it was truncated.
Default summary format (use when no custom prompt given):
{header}
**TL;DR:** 2-3 sentence summary.
**Key Points:**
• Point one
• Point two
• (3-7 total)
**Notable Quotes:** (only if genuinely quotable lines exist)
> "Quote here"
Custom prompt — if the user included text alongside the URL, append it as additional instructions for the summary.
Step 3: Reply
- Keep output under 4000 characters for Telegram
- If the summary would exceed 4000 chars, send the TL;DR first, then the rest as a follow-up
- Always include the header line from the extraction result
Error Handling
ERROR: API_ERROR: Invalid API key→ "TranscriptAPI key is invalid. Checkpass transcriptapi/api-key."ERROR: No transcript available→ "This video doesn't have captions available."ERROR: Video not found→ "Couldn't find that video — double-check the URL."- Any other
ERROR:→ relay the message as-is. Do NOT fall back to web_search.
Why TranscriptAPI?
YouTube aggressively blocks datacenter/IPv6 ranges from accessing transcripts. Most cloud VPS (Hetzner, DigitalOcean, AWS, etc.) are blocked — direct transcript fetching fails for most videos when running from a server.
TranscriptAPI.com proxies requests through residential IPs, bypassing these blocks reliably. The $5/mo plan covers 1,000 transcript fetches.
💡 Tip: Add instructions after the URL to customize the summary (e.g. "focus on the technical details").
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.