跳到正文
Skillpedia
调研260k · #604

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/NousResearch/hermes-agent/blob/main/skills/media/youtube-content/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

📦 包含此技能的技能包

可以这样问 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

  1. Fetch the transcript using terminal and the prepared Python with --text-only --timestamps.
  2. Validate: confirm the output is non-empty and in the expected language. If empty, retry without --language to get any available transcript. If still empty, tell the user the video likely has transcripts disabled.
  3. Chunk if needed: if the transcript exceeds 50K characters, split into overlapping chunks (40K with 2K overlap) and summarize each chunk before merging.
  4. Transform into the requested output format. If the user did not specify a format, default to a summary.
  5. 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 --language to 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 扩展,并在独立的环境中设置。

可以生成哪些格式?

技能提到章节、摘要、帖子串和博客文章。

它会看视频吗?

不会。技能只根据字幕稿文字进行工作。

详情

作者的原始描述

YouTube transcripts to summaries, threads, blogs.

repo: NousResearch/hermes-agent

热度

GitHub 星标
260k
排名
#604
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能