Cursor Agent Skill for downloading videos using yt-dlp
npx skills add https://github.com/mapleshaw/yt-dlp-downloader-skill --skill yt-dlp-downloaderInstallez cette compétence avec la CLI et commencez à utiliser le flux de travail SKILL.md dans votre espace de travail.
A Cursor Agent Skill for downloading videos from YouTube, Bilibili, Twitter, and thousands of other sites using yt-dlp.
Before using this skill, make sure you have the following installed:
# Install yt-dlp
pip install yt-dlp
# Install ffmpeg (required for audio extraction)
brew install ffmpeg # macOS
# or: sudo apt install ffmpeg # Linux
git clone https://github.com/MapleShaw/yt-dlp-downloader-skill.git ~/.cursor/skills/yt-dlp-downloader
Create the skill directory:
mkdir -p ~/.cursor/skills/yt-dlp-downloader/scripts
Download SKILL.md and scripts/download.sh from this repository
Place them in the created directory
Simply tell Cursor what you want to download:
| Command | Example |
|---|---|
| Download video | "Download this video https://youtube.com/watch?v=xxx" |
| Extract audio | "Extract audio from https://youtube.com/watch?v=xxx" |
| Download with subtitles | "Download with subtitles https://youtube.com/watch?v=xxx" |
| Specific quality | "Download in 720p https://youtube.com/watch?v=xxx" |
You: Download this video https://www.youtube.com/watch?v=xxx
Cursor:
yt-dlp -P "~/Downloads/yt-dlp" --cookies-from-browser chrome "https://www.youtube.com/watch?v=xxx"
yt-dlp supports thousands of sites including:
| Error | Solution |
|---|---|
| HTTP 403 Forbidden (YouTube) | Use --cookies-from-browser chrome |
| yt-dlp not found | Run pip install yt-dlp |
| ffmpeg not found | Run brew install ffmpeg |
| Download fails | Run pip install -U yt-dlp to update |
yt-dlp-downloader/
├── SKILL.md # Main skill instructions
└── scripts/
└── download.sh # Helper script
MIT