| name | youtube-analysis |
| description | Analyze YouTube video transcripts to extract summaries, key takeaways, and insights. Use when the user mentions YouTube, video transcript, video analysis, provides a YouTube URL, or wants to analyze a .txt file containing a video transcript. |
YouTube Video Transcript Analysis
Analyze YouTube video transcripts to generate structured reports with summaries, key takeaways, notable quotes, and action items.
When to Use
Activate this skill when the user:
- Mentions "YouTube", "video", "transcript", or "video analysis"
- Provides a YouTube URL to analyze
- Wants to analyze a text file containing a video transcript
- Asks for a summary of a video they watched
- Provides a file path to a transcript
Input Detection
The user can provide either:
- YouTube URL - Contains
youtube.com/watch, youtu.be/, or youtube.com/shorts/
- File path - Path to a transcript file (e.g.,
inbox/video.txt)
Instructions
Step 0: Identify Input Type
Determine if the user provided a YouTube URL or file path.
Step 1A: Fetch Transcript (URL Input)
If the user provided a YouTube URL:
- Run yt-dlp to download the transcript:
yt-dlp --write-auto-sub --write-sub --sub-lang en --skip-download --convert-subs srt -o "inbox/%(title)s" "<URL>"
- Look for the output file in
inbox/ (format: <video-title>.en.srt)
- If successful, proceed with the transcript file
- Store the original YouTube URL for the report's Source field