openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > YouTube Summarizer

Automatically fetch YouTube video transcripts, generate structured summaries, and send full transcripts to messaging platforms. Detects YouTube URLs and provides metadata, key insights, and downloadable transcripts.

通信与消息

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.0

统计:⭐ 3 · 5.9k · 51 current installs · 60 all-time installs

3

安装量(当前) 60

🛡 VirusTotal :可疑 · OpenClaw :可疑

Package:abe238/youtube-summarizer

安全扫描(ClawHub)

  • VirusTotal :可疑
  • OpenClaw :可疑

OpenClaw 评估

The skill's stated purpose (fetching/transcribing YouTube and summarizing) is plausible, but the runtime instructions rely on cloning and running an external MCP YouTube transcript server, hard-coded root paths, and an undocumented messaging CLI — these gaps and the explicit technique to 'bypass cloud IP blocks' make the package inconsistent and worth caution.

目的

The skill's name/description match the instructions: it fetches transcripts, summarizes, saves transcripts, and can send files to messaging platforms. However it requires an external MCP server and heavily assumes a Clawdbot environment (message CLI) and specific filesystem layout (/root/clawd). Those assumptions are not declared as required binaries/config and are disproportionate compared to a simple summarizer.

说明范围

SKILL.md instructs the agent to git-clone/build a third-party repo, run Node code to fetch transcripts, write files under /root/clawd/transcripts and /tmp, and invoke a 'message' CLI to send files. It also suggests the MCP server uses Android client emulation to bypass YouTube cloud IP blocking — an operational behavior that bypasses platform protections and could have policy/legal implications. The instructions permit automatic installation i…

安装机制

There is no formal install spec for the skill itself; SKILL.md includes commands to git clone https://github.com/kimtaeyoon83/mcp-server-youtube-transcript.git and run npm install/npm run build. Cloning and executing an unvetted third-party repository is a moderate-to-high risk operation (even though the source is a GitHub repo). The skill will execute JavaScript from that repo (node -e import './dist/youtube-fetcher.js'), which runs arbitrary…

证书

The skill declares no required env vars or binaries, but in practice it depends on Node.js, Clawdbot's 'message' CLI, and write access to /root/clawd and /root/clawd/transcripts. It also assumes the presence/permission to create directories under /root and to run git/npm. CHAT_ID/Telegram credentials are referenced but not declared; the skill fails to document required messaging credentials or tools, which is an incoherence and increases risk.

持久

always:false and autonomous invocation is allowed (default). The skill writes persistent transcript files under /root/clawd/transcripts and may install/maintain the MCP server under /root/clawd — persistent filesystem changes are expected for this functionality, but the hard-coded root paths and implied ability to install software are noteworthy and should be constrained or sandboxed.

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「YouTube Summarizer」。简介:Automatically fetch YouTube video transcripts, generate structured summaries, a…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/abe238/youtube-summarizer/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: youtube-summarizer
description: Automatically fetch YouTube video transcripts, generate structured summaries, and send full transcripts to messaging platforms. Detects YouTube URLs and provides metadata, key insights, and downloadable transcripts.
version: 1.0.0
author: abe238
tags: [youtube, transcription, summarization, video, telegram]
---

# YouTube Summarizer Skill

Automatically fetch transcripts from YouTube videos, generate structured summaries, and deliver full transcripts to messaging platforms.

## When to Use

Activate this skill when:
- User shares a YouTube URL (youtube.com/watch, youtu.be, youtube.com/shorts)
- User asks to summarize or transcribe a YouTube video
- User requests information about a YouTube video's content

## Dependencies

**Required:** MCP YouTube Transcript server must be installed at:
`/root/clawd/mcp-server-youtube-transcript`

If not present, install it:
```bash
cd /root/clawd
git clone https://github.com/kimtaeyoon83/mcp-server-youtube-transcript.git
cd mcp-server-youtube-transcript
npm install && npm run build
```

## Workflow

### 1. Detect YouTube URL
Extract video ID from these patterns:
- `https://www.youtube.com/watch?v=VIDEO_ID`
- `https://youtu.be/VIDEO_ID`
- `https://www.youtube.com/shorts/VIDEO_ID`
- Direct video ID: `VIDEO_ID` (11 characters)

### 2. Fetch Transcript
Run this command to get the transcript:
```bash
cd /root/clawd/mcp-server-youtube-transcript && node --input-type=module -e "
import { getSubtitles } from './dist/youtube-fetcher.js';
const result = await getSubtitles({ videoID: 'VIDEO_ID', lang: 'en' });
console.log(JSON.stringify(result, null, 2));
" > /tmp/yt-transcript.json
```

Replace `VIDEO_ID` with the extracted ID. Read the output from `/tmp/yt-transcript.json`.

### 3. Process the Data

Parse the JSON to extract:
- `result.metadata.title` - Video title
- `result.metadata.author` - Channel name
- `result.metadata.viewCount` - Formatted view count
- `result.metadata.publishDate` - Publication date
- `result.actualLang` - Language used
- `result.lines` - Array of transcript segments

Full text: `result.lines.map(l => l.text).join(' ')`

### 4. Generate Summary

Create a structured summary using this template:

```markdown
📹 **Video:** [title]
👤 **Channel:** [author] | 👁️ **Views:** [views] | 📅 **Published:** [date]

**🎯 Main Thesis:**
[1-2 sentence core argument/message]

**💡 Key Insights:**
- [insight 1]
- [insight 2]
- [insight 3]
- [insight 4]
- [insight 5]

**📝 Notable Points:**
- [additional point 1]
- [additional point 2]

**🔑 Takeaway:**
[Practical application or conclusion]
```

Aim for:
- Main thesis: 1-2 sentences maximum
- Key insights: 3-5 bullets, each 1-2 sentences
- Notable points: 2-4 supporting details
- Takeaway: Actionable conclusion

### 5. Save Full Transcript

Save the complete transcript to a timestamped file:
```
/root/clawd/transcripts/YYYY-MM-DD_VIDEO_ID.txt
```

Include in the file:
- Video metadata header
- Full transcript text
- URL reference

### 6. Platform-Specific Delivery

**If channel is Telegram:**
```bash
message --action send --channel telegram --target CHAT_ID 
  --filePath /root/clawd/transcripts/YYYY-MM-DD_VIDEO_ID.txt 
  --caption "📄 YouTube Transcript: [title]"
```

**If channel is other/webchat:**
Just reply with the summary (no file attachment).

### 7. Reply with Summary

Send the structured summary as your response to the user.

## Error Handling

**If transcript fetch fails:**
- Check if video has captions enabled
- Try with `lang: 'en'` fallback if requested language unavailable
- Inform user that transcript is not available and suggest alternatives:
  - Manual YouTube transcript feature
  - Video may not have captions
  - Try a different video

**If MCP server not installed:**
- Provide installation instructions
- Offer to install it automatically if in appropriate context

**If video ID extraction fails:**
- Ask user to provide the full YouTube URL or video ID

## Examples

See `examples/` directory for sample outputs.

## Quality Guidelines

- **Be concise:** Summary should be scannable in 30 seconds
- **Be accurate:** Don't add information not in the transcript
- **Be structured:** Use consistent formatting for easy reading
- **Be contextual:** Adjust detail level based on video length
  - Short videos (<5 min): Brief summary
  - Long videos (>30 min): More detailed breakdown

## Notes

- MCP server uses Android client emulation to bypass YouTube's cloud IP blocking
- Works reliably from VPS/cloud environments where yt-dlp often fails
- Supports multiple languages with automatic fallback to English
- Transcript quality depends on YouTube's auto-generated captions or manual captions