Agent skill
yt-dlp
Download YouTube videos, audio, and subtitles/transcripts using yt-dlp.
Install this agent skill to your Project
npx add-skill https://github.com/ykdojo/safeclaw/tree/main/setup/skills/yt-dlp
SKILL.md
yt-dlp
Download YouTube videos, audio, and subtitles/transcripts.
Setup
Check if yt-dlp is installed, and download it if not:
if ! command -v yt-dlp &>/dev/null && [ ! -f ~/yt-dlp ]; then
curl -sL https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o ~/yt-dlp && chmod +x ~/yt-dlp
fi
Then use ~/yt-dlp (or just yt-dlp if installed globally).
Examples
Download subtitles/transcript:
~/yt-dlp --write-auto-sub --sub-lang en --skip-download -o "/tmp/%(id)s" <url>
Download audio only:
~/yt-dlp -x --audio-format mp3 -o "/tmp/%(title)s.%(ext)s" <url>
Download video:
~/yt-dlp -o "/tmp/%(title)s.%(ext)s" <url>
Get video info (title, duration, description):
~/yt-dlp --print title --print duration_string --print description --no-download <url>
Notes
- Subtitles are saved as
.vttfiles - read them to get the transcript - Use
/tmp/for downloads to avoid cluttering the working directory
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gemini
Use Gemini CLI for web research, multimodal tasks (PDFs, images), or as a second opinion.
gdoc
Read publicly shared Google Docs using curl to download into a file.
slack
Read Slack messages, channels, DMs, and search. Read-only access to your Slack workspace.
gha
Analyze GitHub Actions failures and identify root causes
clone
Clone the current conversation so the user can branch off and try a different approach.
reddit-fetch
Fetch content from Reddit using Gemini CLI or curl JSON API fallback. Use when accessing Reddit URLs, researching topics on Reddit, or when Reddit returns 403/blocked errors.
Didn't find tool you were looking for?