YouTube transcript
Ported in spirit from amosblomqvist/pi-config's youtube-transcript.
Needs yt-dlp on PATH (already installed for this user at
~/AppData/Local/Programs/Python/Python312/Scripts/yt-dlp).
Tool
python "~/.claude/skills/youtube-transcript/scripts/fetch.py" <url-or-id> [--json] [--lang en]
- Prints
TITLE,CHANNEL,DURATION,URL, then the transcript as plain paragraphs (timestamps stripped). --jsonemits{title, channel, duration, url, segments:[{start,text}]}.--langpicks the caption language; falls back to auto-generated captions.
How to use
- Run the script with the URL.
- If it errors with "no captions", tell the user the video has no transcript available — do not try to transcribe audio yourself.
- Then do whatever the user asked: summarize, extract steps, or (if they want
to learn the content) hand off to the
teachskill using the transcript as the source.