youtube-dl
Skill: youtube-dl
When to Use
Use this skill when the user asks to:
- Download a YouTube video
- Extract audio from a YouTube video
- Save a video from the internet
- Convert a YouTube video to MP3/audio
- Download video or audio from any supported site
- Get the audio track from a video URL
Supported Sites
yt-dlp supports 1000+ sites including:
- YouTube, YouTube Music
- Vimeo, Dailymotion
- Twitter/X, Reddit, TikTok
- SoundCloud, Bandcamp
- And many more (run
yt-dlp --list-extractorsfor full list)
Input Parameters
| Parameter | Required | Description | Example |
|---|---|---|---|
url |
Yes | Video/audio URL | https://youtube.com/watch?v=xxx |
format |
No | video (default) or audio |
audio |
quality |
No | best (default), 720, 480, 360 |
best |
output |
No | Output directory or file path | ~/Downloads/ |
Procedure
-
Get the URL from the user's request
-
Determine if they want video or audio
-
Run the bundled script:
# Download video (best quality) python3 skills/youtube-dl/scripts/download.py "https://youtube.com/watch?v=xxx" # Extract audio only (MP3) python3 skills/youtube-dl/scripts/download.py "https://youtube.com/watch?v=xxx" --format audio # Specific quality python3 skills/youtube-dl/scripts/download.py "https://youtube.com/watch?v=xxx" --quality 720 # Custom output directory python3 skills/youtube-dl/scripts/download.py "https://youtube.com/watch?v=xxx" --output ~/Downloads/ -
The script auto-installs
yt-dlpif needed -
Report the downloaded file path and details to the user
Bundled Scripts
| Script | Type | Description |
|---|---|---|
scripts/download.py |
Python | Download video/audio using yt-dlp |
Script Usage
# Download best quality video
python3 scripts/download.py "https://youtube.com/watch?v=dQw4w9WgXcQ"
# Audio only (extracts to best available audio format)
python3 scripts/download.py "https://youtube.com/watch?v=dQw4w9WgXcQ" --format audio
# Specific video quality
python3 scripts/download.py "https://youtube.com/watch?v=dQw4w9WgXcQ" --quality 720
# Custom output location
python3 scripts/download.py "https://youtube.com/watch?v=dQw4w9WgXcQ" --output ~/Music/
# Show video info without downloading
python3 scripts/download.py "https://youtube.com/watch?v=dQw4w9WgXcQ" --info
Example
download this youtube video: https://youtube.com/watch?v=xxx
extract the audio from this video
save this video as mp3
download the video in 720p
get the audio from this youtube link
More from dalehurley/phpbot
desktop-control
Control the mouse, keyboard, and read screen content via accessibility. Use this skill when the user asks to click somewhere on screen, type text into an app, move the mouse, press keyboard shortcuts, read what's on screen, get the accessibility tree of the current window, automate desktop interactions, or control the computer.
39summarize-unread-emails
Retrieve and summarize all unread emails from your inbox, organized by category, sender, and date. Use this skill when the user asks to summarize unread emails, get an overview of unread messages, organize inbox emails, or review pending email communications. Provides a structured summary with categorization and timeline analysis.
20open-application
Open or launch applications on your computer by name. Use this skill when the user asks to open, launch, or start an application like Mail, Finder, Safari, Chrome, or any other installed macOS application. Works with both built-in and third-party applications.
10homebrew
Install, manage, and search for software packages on macOS using Homebrew. Use this skill when the user asks to install software, apps, CLI tools, developer utilities, programming languages, databases, or any package on a Mac. Supports formulae (CLI tools) and casks (GUI apps). Can also search, update, upgrade, uninstall, and diagnose Homebrew issues.
10csv-tools
Parse, query, filter, sort, transform, and summarize CSV and JSON data files. Use this skill when the user asks to view a CSV, filter data, get statistics from a data file, convert CSV to JSON or vice versa, sort data, or analyze tabular data.
9get-weather-forecast
Retrieve current weather conditions and multi-day forecasts for any location using the wttr.in API. Use this skill when the user asks for weather information, weather forecast, current conditions, temperature, or weather updates for a specific city or location. Provides detailed weather data including temperature, wind, precipitation, and visibility.
8