youtube-transcript
Installation
SKILL.md
Extract the transcript from a YouTube video: $ARGUMENTS
$ARGUMENTS should include:
- A YouTube URL (e.g.
https://www.youtube.com/watch?v=VIDEO_ID,https://youtu.be/VIDEO_ID) - Optionally:
--output PATHto specify where to save the transcript (default:transcripts/) - Optionally:
--timestampsto include timestamps in the output (default: plain text only) - Optionally:
--language LANGto specify subtitle language code (default:en)
Before Starting
- Parse the video ID from the provided URL. Accept these formats:
youtube.com/watch?v=VIDEO_IDyoutu.be/VIDEO_IDyoutube.com/embed/VIDEO_IDyoutube.com/v/VIDEO_ID- A bare video ID (11 characters, alphanumeric + hyphens/underscores)
- If none of these match, ask the user to provide a valid YouTube link