agentleFS
AgriciDanielAgriciDaniel/claude-video/skills/video-download/SKILL.md

claude-video-download

Skill41 starsChanged 8 months agoMITView on GitHub

Video downloading via yt-dlp with format selection, quality control, subtitle download, audio-only extraction, and playlist support. Downloads from YouTube, Vimeo, Twitter, TikTok, and 1000+ other sites. Use when user says "download video", "download from youtube", "yt-dlp", "grab video", "save video", "download audio", "download playlist", or provides a video URL to download.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check yt-dlp is installed: command -v yt-dlp || echo "Run /video setup"

    line 18
  2. Distinctive:

    Always remind the user:

    line 23
  3. Distinctive:

    Only download content you own or have permission to use

    line 24

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

claude-video-download — Video Downloading via yt-dlp

Pre-Flight

  1. Check yt-dlp is installed: command -v yt-dlp || echo "Run /video setup"
  2. Confirm user owns or has rights to download the content

Important: Content Rights

Always remind the user:

  • Only download content you own or have permission to use
  • Respect copyright and platform terms of service
  • Downloaded content is for personal use unless otherwise licensed

Common Operations

List Available Formats (no download)

yt-dlp -F "URL"

Shows all available video and audio formats with resolution, codec, bitrate, and file size.

Best Quality Download

# Best video + best audio, merged to MP4
yt-dlp -f "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best" \
  --merge-output-format mp4 -o "%(title)s.%(ext)s" "URL"

Specific Resolution

# 1080p max
yt-dlp -f "bestvideo[height<=1080]+bestaudio/best[height<=1080]" \
  --merge-output-format mp4 -o "%(title)s.%(ext)s" "URL"

# 720p max
yt-dlp -f "bestvideo[height<=720]+bestaudio/best[height<=720]" \
  --merge-output-format mp4 -o "%(title)s.%(ext)s" "URL"

# 4K
yt-dlp -f "bestvideo[height<=2160]+bestaudio" \
  --merge-output-format mp4 -o "%(title)s.%(ext)s" "URL"

Audio-Only Download

# Best audio as MP3
yt-dlp -x --audio-format mp3 --audio-quality 0 -o "%(title)s.%(ext)s" "URL"

# Best audio as M4A (AAC)
yt-dlp -x --audio-format m4a -o "%(title)s.%(ext)s" "URL"

# Best audio as WAV (lossless)
yt-dlp -x --audio-format wav -o "%(title)s.%(ext)s" "URL"

# Best audio as Opus (most efficient)
yt-dlp -x --audio-format opus -o "%(title)s.%(ext)s" "URL"

Download with Subtitles

# Download video + all available subtitles
yt-dlp --write-subs --sub-langs all -o "%(title)s.%(ext)s" "URL"

# Download video + auto-generated subtitles
yt-dlp --write-auto-subs --sub-langs en -o "%(title)s.%(ext)s" "URL"

# Download subtitles only (no video)
yt-dlp --write-subs --sub-langs en --skip-download -o "%(title)s.%(ext)s" "URL"

# Embed subtitles into MP4
yt-dlp --write-subs --sub-langs en --embed-subs \
  --merge-output-format mp4 -o "%(title)s.%(ext)s" "URL"

Download with Metadata

# Embed thumbnail and metadata
yt-dlp --embed-thumbnail --embed-metadata \
  --merge-output-format mp4 -o "%(title)s.%(ext)s" "URL"

Playlist Download

# Download entire playlist
yt-dlp -o "%(playlist_title)s/%(playlist_index)03d - %(title)s.%(ext)s" "PLAYLIST_URL"

# Download specific range from playlist
yt-dlp --playlist-start 5 --playlist-end 10 \
  -o "%(playlist_title)s/%(playlist_index)03d - %(title)s.%(ext)s" "PLAYLIST_URL"

# Download playlist as audio only
yt-dlp -x --audio-format mp3 \
  -o "%(playlist_title)s/%(playlist_index)03d - %(title)s.%(ext)s" "PLAYLIST_URL"

Clip Download (specific time range)

# Download only a portion (requires ffmpeg)
yt-dlp --download-sections "*00:01:00-00:02:00" -o "%(title)s_clip.%(ext)s" "URL"

Output Templates

TemplateExample Output
%(title)s.%(ext)sVideo Title.mp4
%(uploader)s - %(title)s.%(ext)sChannel - Title.mp4
%(upload_date>%Y-%m-%d)s - %(title)s.%(ext)s2026-01-15 - Title.mp4
%(playlist_title)s/%(playlist_index)03d - %(title)s.%(ext)sPlaylist/001 - Title.mp4

Video Info (No Download)

# Print video info as JSON
yt-dlp --dump-json "URL" | jq '{title, duration, view_count, upload_date, resolution}'

# Just print title and duration
yt-dlp --print "%(title)s (%(duration_string)s)" "URL"

Rate Limiting and Safety

# Limit download speed (be nice to servers)
yt-dlp --limit-rate 10M -o "%(title)s.%(ext)s" "URL"

# Sleep between downloads in a playlist
yt-dlp --sleep-interval 5 --max-sleep-interval 15 -o "%(title)s.%(ext)s" "PLAYLIST_URL"

Supported Sites

yt-dlp supports 1000+ sites including: YouTube, Vimeo, Twitter/X, TikTok, Instagram, Reddit, Twitch, Dailymotion, SoundCloud, Bandcamp, and many more. Run yt-dlp --list-extractors for the full list.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.