Agent Skills: YouTube Summarizer

Summarize YouTube videos from their transcript. Use when asked to summarize a YouTube URL, extract key insights from a video, or get a quick rundown of a podcast/talk. Handles all YouTube URL formats including shorts, embeds, and youtu.be links.

UncategorizedID: yongkangc/agent-rules/youtube-summarizer

Install this agent skill to your local

pnpm dlx add-skill https://github.com/yongkangc/ai/tree/HEAD/skills/youtube-summarizer

Skill Files

Browse the full folder contents for youtube-summarizer.

Download Skill

Loading file tree…

skills/youtube-summarizer/SKILL.md

Skill Metadata

Name
youtube-summarizer
Description
Summarize YouTube videos from their transcript. Use when asked to summarize a YouTube URL, extract key insights from a video, or get a quick rundown of a podcast/talk. Handles all YouTube URL formats including shorts, embeds, and youtu.be links.

YouTube Summarizer

Fetch a YouTube video's transcript and produce a structured summary.

Step 1: Fetch the transcript

~/.openclaw/venvs/youtube-summarizer/bin/python ~/.openclaw/skills/youtube-summarizer/scripts/fetch_transcript.py "<youtube_url>"

The script outputs the full transcript as plain text to stdout.

First-time setup (if venv doesn't exist)

uv venv ~/.openclaw/venvs/youtube-summarizer
uv pip install --python ~/.openclaw/venvs/youtube-summarizer/bin/python youtube-transcript-api

Flags

YTPY=~/.openclaw/venvs/youtube-summarizer/bin/python
YTSCRIPT=~/.openclaw/skills/youtube-summarizer/scripts/fetch_transcript.py

# Specify language preference (default: en)
$YTPY $YTSCRIPT "<url>" --lang en es fr

# Output as JSON with timestamps
$YTPY $YTSCRIPT "<url>" --json

Step 2: Summarize

After fetching the transcript, produce a summary with this structure:

Output format

🎬 [Video Title if available, otherwise infer from content]

πŸ“Ί Source: <youtube_url>

## TL;DR
[2-3 sentence overview β€” what is this video about and why does it matter?]

## Key Insights
- [Insight 1] β€” [supporting detail or example]
- [Insight 2] β€” [supporting detail]
- [Continue for all major points β€” be thorough, 5-15 bullets typical]

## Notable Quotes
- "[Exact or near-exact quote]" β€” [speaker, context]
- [Include 2-4 standout quotes]

## Actionable Takeaways
- [What can the viewer apply?]
- [Specific recommendations or advice given]

## One-Line Summary
[Single punchy sentence capturing the essence β€” good for sharing]

Quality rules

  • Be thorough over brief β€” capture the full scope of the video's content
  • Use the speaker's language β€” preserve their framing, don't over-paraphrase
  • Include specific numbers, names, examples β€” not vague generalizations
  • Organize by theme when the video covers multiple topics
  • Flag uncertainty β€” if the transcript is auto-generated and garbled in places, note it
  • No markdown tables β€” use bullet lists (Telegram-friendly)
  • Inline links where relevant: [text](url)

Length guidelines

  • Short video (<10 min): 400-800 chars summary
  • Medium video (10-30 min): 800-1500 chars
  • Long video/podcast (30+ min): 1500-3000 chars
  • Always include all sections; scale depth to video length

Error handling

  • If transcript fetch fails: try with --lang en es (multi-language fallback)
  • If video has no transcript: say so clearly, don't make up content
  • If transcript is heavily garbled (auto-generated): note quality and do your best