yt-download
A Claude Code skill that downloads a video, or just its audio, from YouTube or any other site yt-dlp supports. Paste a link, pick a quality from a short menu, and the file lands on your machine.
What it does for you
- Shows the qualities that really exist. Before downloading, it reads the
video's formats and offers a menu like
2160p60 (2.16 GB),1080p60,720porAudio only (m4a), each with its true file size. No guessing, and no silent fallback to a lower resolution. - Gets real 4K. Above 1080p, YouTube sends video and audio as separate streams. The skill makes sure ffmpeg is there to merge them, so you get the resolution you picked.
- Files that play everywhere. It prefers AV1 video and AAC audio in an mp4, so downloads open in QuickTime and most editors. When the codecs don't fit an mp4, it writes mkv instead of a broken file.
- Just the part you want. Ask for "1:12:30 to 1:15:00" of a long stream and it fetches only that range, turning a 2 GB download into a small clip. It explains the trade-off between a frame-accurate cut and keeping the original codec.
- Audio only. Rip the soundtrack of a video as m4a.
- Whole playlists and channels. One quality ceiling for every video, a size estimate before it starts, and an archive file so re-running the same command fetches only new uploads.
- Edit-friendly copies. If you say you'll edit the file, it offers an HEVC or ProRes transcode that scrubs smoothly on Apple Silicon.
- Sets itself up. If
yt-dlporffmpegis missing, it installs them with Homebrew (macOS), pipx or pip (Linux), or winget or scoop (Windows). It never runssudo; anything that needs a password is handed back to you. It also warns when your yt-dlp is old enough to break.
How to use it
Install it (see below), then just talk to Claude. You don't call the skill by name. Things that trigger it:
- "Download this video: https://youtu.be/…"
- "Get this in 4K"
- "Just rip the audio from this"
- "Clip 4:10 to 6:30 from this stream"
- "Save all my channel's uploads at 1080p"
If you name a quality in your request, it skips the menu and downloads straight away.
Install
git clone https://github.com/wilpat/skills.git
cp -R skills/yt-download ~/.claude/skills/Restart your Claude Code session so it picks up the skill. To stay in sync with this repo, symlink it instead of copying:
ln -s "$PWD/skills/yt-download" ~/.claude/skills/yt-downloadRequirements
yt-dlpandffmpeg(installed for you if missing)python3for the quality menu (optional; it falls back toyt-dlp -F)
What's in this folder
| File | Purpose |
|---|---|
SKILL.md |
The instructions Claude follows |
scripts/check_deps.sh |
Checks for yt-dlp and ffmpeg, installs them with --install, and flags a stale yt-dlp |
scripts/list_qualities.py |
Turns yt-dlp's 50-row format list into one row per resolution with real sizes |
Good to know
- Private, members-only or age-gated videos need your browser's sign-in.
The skill uses
--cookies-from-browser(Chrome, Safari, Firefox or Brave). - A stream that just ended may not have 4K yet. YouTube publishes the big renditions last, sometimes hours later. The skill tells you rather than handing you 1080p labelled as 4K.
- Subtitles are off by default, because YouTube rate-limits caption requests and can fail the whole download. Ask for them if you want them.
- Your own uploads: yt-dlp only gets YouTube's re-encoded copy. For your original master files, use Google Takeout.
Only download content you have the right to keep, and respect each site's terms of service.
Credits
This skill is a wrapper. yt-dlp does the downloading (public domain, Unlicense) and ffmpeg merges, cuts and converts the streams. Neither is bundled here.