youtube-content
它能做什么
这项技能让你的 AI 获取 YouTube 视频的字幕稿,并把它重新整理为有用的文字内容。适合希望以文字形式获取视频要点的人。
适用场景
- ✓你分享一个 YouTube 链接并要求为视频做摘要的时候。
- ✓你想获取 YouTube 视频的字幕稿,用于阅读或引用的时候。
- ✓你想把视频整理为章节、社交媒体帖子串或博客文章的时候。
技能链接
https://github.com/NousResearch/hermes-agent/blob/main/skills/media/youtube-content/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
📦 包含此技能的技能包
可以这样问 AI
“请把这个 YouTube 视频总结为要点,并为每个章节标注时间点。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能使用一个 Python 辅助脚本获取视频字幕稿。然后你的 AI 把文字重新组织为你要求的格式,例如摘要或博客文章。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
YouTube Content Tool
When to use
Use when the user shares a YouTube URL or video link, asks to summarize a video, requests a transcript, or wants to extract and reformat content from any YouTube video. Transforms transcripts into structured content (chapters, summaries, threads, blog posts).
Extract transcripts from YouTube videos and convert them into useful formats.
Setup
Use terminal with the Python from a PM-prepared Hermes source checkout. The
youtube extra declares the helper's dependency; do not install packages into
Hermes with raw pip or project-discovering uv run.
From that checkout, first follow the isolated development-home setup in Package Management, then prepare the extra and reactivate before running the helper:
source ./activate
python -c "import pm; pm.sync_venv(['youtube'], explicit=True)"
source ./activate
python -c "import youtube_transcript_api; print(youtube_transcript_api.__file__)"
On Windows, use . .\activate.ps1 instead of source ./activate. If the terminal
runs on a different host or in a sandbox, use an explicitly isolated helper
environment there, not the agent's production environment. Run every command
below with the interpreter whose import check succeeded.
Helper Script
SKILL_DIR is the directory containing this SKILL.md file. The script accepts any standard YouTube URL format, short links (youtu.be), shorts, embeds, live links, or a raw 11-character video ID.
# JSON output with metadata
python SKILL_DIR/scripts/fetch_transcript.py "https://youtube.com/watch?v=VIDEO_ID"
# Plain text (good for piping into further processing)
python SKILL_DIR/scripts/fetch_transcript.py "URL" --text-only
# With timestamps
python SKILL_DIR/scripts/fetch_transcript.py "URL" --timestamps
# Specific language with fallback chain
python SKILL_DIR/scripts/fetch_transcript.py "URL" --language tr,en
Output Formats
After fetching the transcript, format it based on what the user asks for:
- Chapters: Group by topic shifts, output timestamped chapter list
- Summary: Concise 5-10 sentence overview of the entire video
- Chapter summaries: Chapters with a short paragraph summary for each
- Thread: Twitter/X thread format — numbered posts, each under 280 chars
- Blog post: Full article with title, sections, and key takeaways
- Quotes: Notable quotes with timestamps
Example — Chapters Output
00:00 Introduction — host opens with the problem statement
03:45 Background — prior work and why existing solutions fall short
12:20 Core method — walkthrough of the proposed approach
24:10 Results — benchmark comparisons and key takeaways
31:55 Q&A — audience questions on scalability and next steps
Workflow
- Fetch the transcript using
terminaland the prepared Python with--text-only --timestamps. - Validate: confirm the output is non-empty and in the expected language. If empty, retry without
--languageto get any available transcript. If still empty, tell the user the video likely has transcripts disabled. - Chunk if needed: if the transcript exceeds
50K characters, split into overlapping chunks (40K with 2K overlap) and summarize each chunk before merging. - Transform into the requested output format. If the user did not specify a format, default to a summary.
- Verify: re-read the transformed output to check for coherence, correct timestamps, and completeness before presenting.
Error Handling
- Transcript disabled: tell the user; suggest they check if subtitles are available on the video page.
- Private/unavailable video: relay the error and ask the user to verify the URL.
- No matching language: retry without
--languageto fetch any available transcript, then note the actual language to the user. - Dependency missing: repeat PM preparation and reactivation above, then verify the helper uses that Python. Do not repair the selected generation with pip.
常见问题
需要额外安装吗?
需要。技能需要从 Hermes 源代码检出中安装 youtube 扩展,并在独立的环境中设置。
可以生成哪些格式?
技能提到章节、摘要、帖子串和博客文章。
它会看视频吗?
不会。技能只根据字幕稿文字进行工作。
详情
热度
- GitHub 星标
- 260k
- 排名
- #604
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-merge-conflict-arbiter
260k以中立第三方的身份,解决两个智能体分支之间的 git 合并冲突,为代码仓库生成一个合并结果。
antigravity-cli
260k指导你安装、更新和排查 Antigravity 命令行工具,包括其插件、登录和沙盒。
blackbox
260k让你的智能体把编程任务交给 Blackbox AI 命令行工具,它会运行多个 AI 模型并挑选最佳结果。
dynamic-workflow
260k教你的智能体把大量相似的工作保存为脚本批量运行,使只有经过验证的结果才返回主对话。