Cursor Agent Skill for downloading videos from YouTube, Bilibili, Twitter, and thousands of other sites using yt-dlp. Automates video and audio extraction for content creators and operations teams.
git clone https://github.com/MapleShaw/yt-dlp-downloader-skill.gitThis Cursor Agent Skill automates video downloading from over 1000 websites including YouTube, Bilibili, Twitter, TikTok, Vimeo, and Twitch using yt-dlp. It enables extraction of video files, audio (MP3), and subtitles with quality selection (720p/1080p/best) and automatic YouTube 403 error handling via browser cookies. The skill supports resuming interrupted downloads and simplifies content acquisition workflows for creators, operations teams, and media professionals. Setup requires installing yt-dlp and ffmpeg, then cloning the skill to Cursor's skills directory for natural language command execution.
[{"step":"Install yt-dlp if not already installed. Run 'pip install yt-dlp' in your terminal or use the package manager for your system (e.g., 'brew install yt-dlp' on macOS).","tip":"Ensure ffmpeg is installed for audio/video merging and format conversion. Install via 'brew install ffmpeg' or your system's package manager."},{"step":"Copy the video URL from YouTube, Bilibili, Twitter, or any supported site. For private videos, include authentication flags like --cookies-from-browser chrome.","tip":"Use --list-formats to preview available resolutions before downloading. Add 'yt-dlp --list-formats [VIDEO_URL]' to your command."},{"step":"Run the yt-dlp command with your desired output format. Customize the prompt_template above by replacing [PLACEHOLDERS] with your specific paths and filenames.","tip":"For batch downloads, create a text file with URLs (one per line) and use 'yt-dlp -a urls.txt' to process them sequentially."},{"step":"Verify the downloaded files in your specified output folder. Use tools like VLC or FFprobe to check video/audio quality.","tip":"Add --embed-metadata to include video title, uploader, and upload date in the MP3 file for better organization."}]
Download YouTube videos with automatic cookie-based authentication
Extract audio tracks as MP3 files from video content
Batch download videos from Bilibili, Twitter, and other platforms
Download videos with subtitles in specific quality formats
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/MapleShaw/yt-dlp-downloader-skillCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Download the highest quality video and audio available from [VIDEO_URL] using yt-dlp. Extract the audio only as an MP3 file named '[FILE_NAME].mp3' and save it to the '[OUTPUT_FOLDER]' directory. Include subtitles if available, formatted as '[FILE_NAME].srt'. Use the following yt-dlp command structure as a reference: yt-dlp --format 'bv+ba' --merge-output-format mp4 --write-subs --sub-lang en --output '[OUTPUT_FOLDER]/[FILE_NAME].%(ext)s' [VIDEO_URL]
``` ✅ Download completed successfully! 📁 Saved to: /Users/creative/Downloads/How_to_Edit_Videos_2024 📊 File Details: - Video: How_to_Edit_Videos_2024.mp4 (1080p, 2.4GB) - Audio: How_to_Edit_Videos_2024.mp3 (320kbps, 2h 15m) - Subtitles: How_to_Edit_Videos_2024.en.srt (English) 🔧 Command Used: yt-dlp --format 'bv+ba' --merge-output-format mp4 --write-subs --sub-lang en --output '/Users/creative/Downloads/How_to_Edit_Videos_2024/How_to_Edit_Videos_2024.%(ext)s' https://www.youtube.com/watch?v=dQw4w9WgXcQ 💡 Pro Tip: Use --embed-thumbnail to add the video thumbnail to the MP3 file for better metadata. ```
The AI Code Editor for productive developers
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan