media-download
Installation
SKILL.md
Media download
There are two scripts in scripts/ next to this file. Each prints only the paths of the files it saved on stdout. Messages and errors go to stderr. Neither shows a progress bar, so the output stays short. Run long downloads with a generous timeout or in the background.
Video and audio by link: scripts/video.sh
It uses yt-dlp from PATH, or downloads a standalone build into ~/.cache/video-download the first time. It picks an mp4 (h264 + aac) that plays everywhere.
S=<this skill dir>/scripts/video.sh
bash $S "<url>" # best quality → ./downloads/<Site>/<title> [<id>].mp4
bash $S -q 720 "<url>" # cap at 720p (smaller side, so vertical videos stay 720×1280)
bash $S -a "<url>" # audio only → mp3
bash $S -p "<playlist or carousel>" # every item
bash $S -o ~/Downloads "<url1>" "<url2>"
bash $S -c chrome "<url>" # use the user's logged-in browser session (chrome|safari|firefox|edge|brave)
Metadata without downloading: yt-dlp -J --no-playlist "<url>". Available qualities: yt-dlp -F "<url>".