Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
This skill extracts transcripts from YouTube videos and generates comprehensive, verbose summaries using the STAR + R-I-S-E framework. It validates video availability, extracts transcripts using the youtube-transcript-api Python library, and produces detailed documentation capturing all insights, arguments, and key points.
The skill is designed for users who need thorough content analysis and reference documentation from educational videos, lectures, tutorials, or informational content.
When to Use This Skill
This skill should be used when:
User provides a YouTube video URL and wants a detailed summary
User needs to document video content for reference without rewatching
User wants to extract insights, key points, and arguments from educational content
User needs transcripts from YouTube videos for analysis
User asks to "summarize", "resume", or "extract content" from YouTube videos
User wants comprehensive documentation prioritizing completeness over brevity
Step 0: Discovery & Setup
Before processing videos, validate the environment and dependencies:
# Check if youtube-transcript-api is installed
python3 -c "import youtube_transcript_api" 2>/dev/null
if [ $? -ne 0 ]; thenecho"⚠️ youtube-transcript-api not found"# Offer to installfi# Check Python availabilityif ! command -v python3 &>/dev/null; thenecho"❌ Python 3 is required but not installed"exit 1
fi
Ask the user if dependency is missing:
youtube-transcript-api is required but not installed.
Would you like to install it now?
- [ ] Yes - Install with pip (pip install youtube-transcript-api)
- [ ] No - I'll install it manually
Objective: Extract video ID and validate URL format.
Supported URL Formats:
https://www.youtube.com/watch?v=VIDEO_ID
https://youtube.com/watch?v=VIDEO_ID
https://youtu.be/VIDEO_ID
https://m.youtube.com/watch?v=VIDEO_ID
Actions:
# Extract video ID using regex or URL parsing
URL="$USER_PROVIDED_URL"# Pattern 1: youtube.com/watch?v=VIDEO_IDifecho"$URL" | grep -qE 'youtube\.com/watch\?v='; then
VIDEO_ID=$(echo"$URL" | sed -E 's/.*[?&]v=([^&]+).*/\1/')
# Pattern 2: youtu.be/VIDEO_ID elifecho"$URL" | grep -qE 'youtu\.be/'; then
VIDEO_ID=$(echo"$URL" | sed -E 's/.*youtu\.be\/([^?]+).*/\1/')
elseecho"❌ Invalid YouTube URL format"exit 1
fiecho"📹 Video ID extracted: $VIDEO_ID"
If URL is invalid:
❌ Invalid YouTube URL
Please provide a valid YouTube URL in one of these formats:
- https://www.youtube.com/watch?v=VIDEO_ID
- https://youtu.be/VIDEO_ID
Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ
Objective: Verify video exists and transcript is accessible.
Actions:
from youtube_transcript_api import YouTubeTranscriptApi, TranscriptsDisabled, NoTranscriptFound
import sys
video_id = sys.argv[1]
try:
# Get list of available transcripts
transcript_list = YouTubeTranscriptApi.list_transcripts(video_id)
print(f"✅ Video accessible: {video_id}")
print("📝 Available transcripts:")
for transcript in transcript_list:
print(f" - {transcript.language} ({transcript.language_code})")
if transcript.is_generated:
print(" [A