yt-dlp Video Downloader
-
Check if $ARGUMENTS provides a URL. If empty, ask the user for a video URL.
-
Check if FFmpeg is installed by running ffmpeg -version . If not installed, prompt the user with OS-specific installation commands and wait for confirmation. Do NOT run yt-dlp without FFmpeg.
-
Determine the user's requirements (video vs audio, target quality, subtitles, metadata).
-
Read $SKILL_DIR/references/COMMANDS.md for format selection syntax and command templates.
-
Read $SKILL_DIR/references/TROUBLESHOOTING.md for site-specific rules (e.g., requiring cookies or proxies).
-
Execute the yt-dlp command in the user's downloads folder (e.g., ~/Downloads or %USERPROFILE%/Downloads ).
-
Verify that the output file downloaded successfully.
-
If the download fails, read $SKILL_DIR/references/TROUBLESHOOTING.md and match the error type (e.g., HTTP 403, slow speed, missing subtitles) to the corresponding troubleshooting section. Apply the suggested fix and retry once. If the retry also fails, report the error details to the user.
Output
-
The executed command
-
Brief explanation of the parameters used
-
Location of the downloaded file