Development
Skill
/yt-dlp
Download YouTube videos, audio, and subtitles/transcripts using yt-dlp.
Install
$ npx -y skills add ykdojo/safeclaw --skill yt-dlp --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/yt-dlp
Context preview
The summary Claude sees to decide when to auto-load this skill.
Download YouTube videos, audio, and subtitles/transcripts using yt-dlp.
SKILL.md
yt-dlp.SKILL.mdname: yt-dlp description: Download YouTube videos, audio, and subtitles/transcripts using yt-dlp.
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 `.vtt` files - read them to get the transcript
- Use `/tmp/` for downloads to avoid cluttering the working directory
Ships withsafeclaw
The easiest way to run multiple Claude Code sessions, each in its own container, with a dashboard to manage them all. Quick setup with battle-tested sensible defaults and skills. See architecture.md for design details.
Get the whole plugin
Stats
181
Stars
21
Forks
Active
Maintenance
HTML
Language
MIT
License
16d ago
Last commit
6mo ago
Created
Repo: ykdojo/safeclaw

