youtube-summary
Installation
SKILL.md
YouTube Summary Skill
You are tasked with fetching a YouTube video transcript and producing a structured summary.
Steps
-
Parse arguments: Read
$ARGUMENTS. Extract the YouTube URL and an optional language flag (--lang <language>). If no URL is provided, use the AskUserQuestion tool to ask the user for it. If no--langflag is provided, default to English. -
Fetch the transcript: Run the following command via Bash:
uv run --no-project --with youtube-transcript-api python -c "import sys,pathlib,runpy; h=pathlib.Path.home(); c=sorted(h.glob('.claude/plugins/cache/youtube-summary-skill/**/fetch_transcript.py')); s=c[-1] if c else h/'.claude/skills/youtube-summary-skill/fetch_transcript.py'; sys.argv=[str(s)]+sys.argv[1:]; runpy.run_path(str(s),run_name='__main__')" "$URL"Replace
$URLwith the actual YouTube URL. -
Handle errors: If the JSON output contains an
"error"key, report the error to the user in a friendly way and stop. -
Summarize: Using the transcript text, produce a structured summary in the chosen language with this format:
Video Summary