YouTube Summary
Automatically get subtitles from any public YouTube video and generate a clean, structured summary with key points. Saves hours of watching long videos when you just need the main ideas.
Core Capabilities
1. Get full subtitles from any public YouTube video
- - Works with videos that have auto-generated captions
- Supports multiple languages
- Outputs clean formatted text
2. Generate concise summaries
- - Extracts all key points and main arguments
- Adjusts summary length based on your needs (short/medium/detailed)
- Structures output with bullet points for easy reading
3. Export results
- - Save summary as markdown or text file
- Copy-paste ready for note-taking
Quick Start
Given a YouTube URL:
- 1. Extract video ID from the URL
-
https://www.youtube.com/watch?v=dQw4w9WgXcQ → ID:
dQw4w9WgXcQ
-
https://youtu.be/dQw4w9WgXcQ → ID: INLINECODE3
- 2. Fetch subtitles using the Python script:
CODEBLOCK0
- 3. Generate summary with the AI model using the subtitle text
- 4. Format and present the result with:
- Video title and link
- Executive summary (1-paragraph overview)
- Key points (bulleted list)
- Detailed notes (optional)
Usage Examples
Example request: "Summarize this YouTube video: https://www.youtube.com/watch?v=xyz"
Expected output:
CODEBLOCK1
Language Support
- - The script automatically gets the available subtitle tracks
- Default to first available track (usually the video's original language)
- Can specify preferred language (e.g., "summarize in English" or "summarize in Chinese")
Scripts
scripts/youtube_subtitles.py
Python utility to fetch subtitles from YouTube using youtube-transcript-api.
Usage:
CODEBLOCK2
Requirements:
CODEBLOCK3
scripts/summarize.py
Helper script to format subtitles for summarization.
When to use this skill
✅ Use when:
- - You want the main ideas from a long YouTube video without watching
- You need to take notes from a lecture or talk
- You want to share key points from a video with others
- You're doing research and need to process multiple videos quickly
❌ Don't use when:
- - The video is private and has no public captions
- The video has no captions/subtitles at all
- You need a full word-for-word transcription (this skill focuses on summarization)
YouTube 摘要
自动获取任何公开YouTube视频的字幕,并生成清晰、结构化的摘要,包含关键要点。当您只需要了解主要内容时,可节省观看长视频的数小时时间。
核心功能
1. 获取任何公开YouTube视频的完整字幕
- - 支持带有自动生成字幕的视频
- 支持多种语言
- 输出格式清晰的文本
2. 生成简洁摘要
- - 提取所有关键点和主要论点
- 根据您的需求调整摘要长度(简短/中等/详细)
- 使用要点列表结构化输出,便于阅读
3. 导出结果
- - 将摘要保存为Markdown或文本文件
- 可直接复制粘贴用于笔记记录
快速入门
给定一个YouTube链接:
- 1. 从链接中提取视频ID
- https://www.youtube.com/watch?v=dQw4w9WgXcQ → ID: dQw4w9WgXcQ
- https://youtu.be/dQw4w9WgXcQ → ID: dQw4w9WgXcQ
- 2. 使用Python脚本获取字幕:
python
from scripts.youtube
subtitles import getyoutube_subtitles
subtitles = get
youtubesubtitles(video_id)
- 3. 使用AI模型基于字幕文本生成摘要
- 4. 格式化并呈现结果,包含:
- 视频标题和链接
- 执行摘要(一段概述)
- 关键要点(要点列表)
- 详细笔记(可选)
使用示例
示例请求: 总结这个YouTube视频:https://www.youtube.com/watch?v=xyz
预期输出:
视频摘要:[标题]
来源:https://www.youtube.com/watch?v=xyz
执行摘要
整个视频主要信息的一段概述。
关键要点
- - 要点1:主要论点或发现
- 要点2:第二个重要主题
- 要点3:关键收获
- ...
详细笔记(长视频可选)
更详细的分解...
语言支持
- - 脚本自动获取可用的字幕轨道
- 默认使用第一个可用轨道(通常是视频的原始语言)
- 可指定首选语言(例如,用中文总结或用英文总结)
脚本
scripts/youtube_subtitles.py
使用youtube-transcript-api从YouTube获取字幕的Python工具。
使用方法:
bash
python scripts/youtube_subtitles.py <视频ID> [语言代码]
依赖要求:
pip install youtube-transcript-api
scripts/summarize.py
用于格式化字幕以便进行摘要的辅助脚本。
何时使用此技能
✅ 适用场景:
- - 您想了解长YouTube视频的主要内容而不必观看
- 您需要从讲座或演讲中做笔记
- 您想与他人分享视频的关键要点
- 您正在进行研究,需要快速处理多个视频
❌ 不适用场景:
- - 视频为私密状态且没有公开字幕
- 视频完全没有字幕/隐藏式字幕
- 您需要逐字逐句的完整转录(此技能专注于摘要)