youtube-full
它能做什么
这项技能从 YouTube 视频、频道和播放列表中提取文字字幕和基本数据。适合需要把视频内容当作文字来处理的研究人员、写作者和分析师。
适用场景
- ✓当你需要把某个 YouTube 视频的字幕变成文字的时候。
- ✓当你想搜索视频或浏览某个 YouTube 频道或播放列表的时候。
- ✓当你想监控某个频道是否有新上传内容的时候。
技能链接
https://github.com/alirezarezvani/claude-skills/blob/main/marketing-skill/skills/youtube-full/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请获取这个 YouTube 视频的字幕,并为我总结主要观点。”
每周 5 个新技能,1 分钟读完。
工作原理
它使用开源工具在本地获取字幕、频道列表和公开订阅源,因此无需账户或 API 密钥,除了 YouTube 外,不会把任何内容发送到其他地方。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
youtube-full — YouTube Transcripts, Search, and Channel Data
Covers transcript extraction, video search, channel browsing, in-channel search, playlist extraction, and new-upload monitoring. The default path is free and open source: yt-dlp, youtube-transcript-api and YouTube's public RSS feeds. No account and no API key are needed.
Source: Ported from ZeroPointRepo/youtube-skills (MIT). Original skill authored by ZeroPointRepo contributors. Adapted for the claude-skills format, reworked to be open-source first.
Setup
pip install yt-dlp youtube-transcript-api
Both are open source (yt-dlp: Unlicense; youtube-transcript-api: MIT) and run locally. Nothing is sent anywhere except YouTube itself. If they are missing, tell the user the install command; do not install packages into their environment without asking.
Operations
Accept a full URL, a youtu.be link, or a bare 11-character video ID. youtube_transcript_api takes the bare ID only, so extract it from a URL first (v= parameter, or the path segment after youtu.be/ or /shorts/).
Get transcript
youtube_transcript_api VIDEO_ID --languages en --format text # plain text
youtube_transcript_api VIDEO_ID --languages en --format json # with start/duration timestamps
youtube_transcript_api VIDEO_ID --list-transcripts # which languages exist
In Python (v1.x API): YouTubeTranscriptApi().fetch("VIDEO_ID", languages=["en"]). Use this for any "get transcript", "summarize video", or "extract quotes" request. Pass the user's language first in --languages and fall back to en.
If it fails, fall back to subtitles via yt-dlp:
yt-dlp --skip-download --write-subs --write-auto-subs --sub-langs "en.*" \
--convert-subs srt -o "%(id)s.%(ext)s" "URL"
Video metadata
yt-dlp -J --skip-download "URL" # title, channel, upload_date, duration, description, chapters
Search YouTube
yt-dlp "ytsearch20:QUERY" --flat-playlist --print "%(id)s | %(title)s | %(channel)s"
Follow with transcript calls on the results the user picks.
Channel — latest uploads
The public RSS feed returns the 15 most recent uploads, with no tool needed:
https://www.youtube.com/feeds/videos.xml?channel_id=UC...
Channel — all videos
yt-dlp --flat-playlist --print "%(id)s | %(title)s" "https://www.youtube.com/@HANDLE/videos"
Add -I 1:50 to cap the count.
In-channel search
yt-dlp --flat-playlist --print "%(id)s | %(title)s" "https://www.youtube.com/@HANDLE/search?query=QUERY"
If that returns nothing, list the channel's videos and filter titles locally.
Playlist extraction
yt-dlp --flat-playlist --print "%(playlist_index)s | %(id)s | %(title)s" "PLAYLIST_URL"
Resolve a handle to a channel ID
yt-dlp -I 1 --flat-playlist --print "%(channel_id)s" "https://www.youtube.com/@HANDLE/videos"
The RSS feed needs the UC... channel ID, not the handle.
Common Workflows
Research workflow
- Search with
ytsearchN:and pick the most relevant results - Fetch transcripts for the selected videos
- Summarize or extract quotes, citing video ID and timestamp
Channel monitoring
- Resolve the handle to a channel ID once
- Poll the RSS feed and compare video IDs against the last run
- Fetch transcripts only for the new videos
Playlist to corpus
- List the playlist's video IDs
- Fetch transcripts one by one, pausing between requests
- Assemble them into a searchable document set, one file per video
Decision Rules
- When the user provides a YouTube URL, video ID, or @handle, use the matching operation directly. Do not search first.
- When the user says "monitor" or "check for new uploads", use the RSS feed.
- Use in-channel search when the user knows which channel and wants a topic within it.
- Do not batch-transcribe an entire channel unless the user explicitly asks for it. Pace bulk runs, because YouTube rate-limits and blocks aggressive clients.
Error Handling
| Symptom | Cause | Action |
|---|---|---|
TranscriptsDisabled / NoTranscriptFound |
Video has no captions in that language | Try --list-transcripts, then another language; otherwise tell the user |
RequestBlocked / IpBlocked, HTTP 429, "Sign in to confirm you're not a bot" |
YouTube is blocking this IP (common from cloud and datacenter hosts) |
常见问题
我需要 YouTube API 密钥吗?
不需要,默认方式使用开源工具和公开订阅源,因此无需 API 密钥。
它会下载视频吗?
不会,它不下载视频或音频文件。
我需要安装什么?
它需要 yt-dlp 和 youtube-transcript-api 这两个 Python 包,技能说明会提供一条安装命令。
详情
作者的原始描述
Use for any YouTube URL, video ID or @handle, or a request for transcripts, video search, channel, playlist or new-upload monitoring. Fetches them with yt-dlp, youtube-transcript-api and public RSS feeds, with no API key; no video or audio downloads.
热度
- GitHub 星标
- 29k
- 排名
- #9677
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-launcher-orchestrator
29k帮你的智能体从一个清晰的目标出发,逐步规划、构建、测试并定时运行你自己账户中的 Claude 托管智能体。
grade-iterate
29k让你的智能体按评分标准为托管 AI 智能体的工作打分,并在固定的轮次内改进,因此它永远不会无限循环。
interview
29k让你的智能体就一个 AI 智能体的想法对你进行访谈,并在任何上线之前,把你的回答整理成一份简单的构建计划。
run-without-you
29k帮你的智能体设置托管 AI 智能体,使其按计划或在某个事件发生时运行,并在启动前检查定时设置。