Download videos from YouTube, Bilibili, Twitter, and thousands of other sites using yt-dlp. Use when the user provides a video URL and wants to download it, extract audio (MP3), download subtitles, or select video quality. Triggers on phrases like "下载视频", "download video", "yt-dlp", "YouTube", "B站", "抖音", "提取音频", "extract audio".
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install yt-dlp-downloader-skill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install yt-dlp-downloader-skill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/yt-dlp-downloader-skill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: yt-dlp-downloader description: Download videos from YouTube, Bilibili, Twitter, and thousands of other sites using yt-dlp. Use when the user provides a video URL and wants to download it, extract audio (MP3), download subtitles, or select video quality. Triggers on phrases like "下载视频", "download video", "yt-dlp", "YouTube", "B站", "抖音", "提取音频", "extract audio". ---
Download videos from thousands of websites using yt-dlp.
Before downloading, verify dependencies are installed:
# Check yt-dlp
which yt-dlp || echo "yt-dlp not installed. Install with: pip install yt-dlp"
# Check ffmpeg (required for audio extraction and format merging)
which ffmpeg || echo "ffmpeg not installed. Install with: brew install ffmpeg"
If not installed, install them first:
pip install yt-dlp
brew install ffmpeg # macOS
yt-dlp -P "~/Downloads/yt-dlp" "VIDEO_URL"
YouTube often blocks direct downloads with 403 errors. Always use browser cookies for YouTube:
yt-dlp -P "~/Downloads/yt-dlp" --cookies-from-browser chrome "YOUTUBE_URL"
Supported browsers: chrome, firefox, safari, edge, brave, opera
yt-dlp -P "/path/to/save" -o "%(title)s.%(ext)s" "VIDEO_URL"
yt-dlp -P "~/Downloads/yt-dlp" "VIDEO_URL"
yt-dlp -P "~/Downloads/yt-dlp" -x --audio-format mp3 "VIDEO_URL"
yt-dlp -P "~/Downloads/yt-dlp" --write-subs --sub-langs all "VIDEO_URL"
720p:
yt-dlp -P "~/Downloads/yt-dlp" -f "bestvideo[height<=720]+bestaudio/best[height<=720]" "VIDEO_URL"
1080p:
yt-dlp -P "~/Downloads/yt-dlp" -f "bestvideo[height<=1080]+bestaudio/best[height<=1080]" "VIDEO_URL"
Best available:
yt-dlp -P "~/Downloads/yt-dlp" -f "bestvideo+bestaudio/best" "VIDEO_URL"
yt-dlp -F "VIDEO_URL"
Then download specific format by ID:
yt-dlp -P "~/Downloads/yt-dlp" -f FORMAT_ID "VIDEO_URL"
# Download entire playlist
yt-dlp -P "~/Downloads/yt-dlp" -o "%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s" "PLAYLIST_URL"
# Download specific range (e.g., items 1-5)
yt-dlp -P "~/Downloads/yt-dlp" -I 1:5 "PLAYLIST_URL"
yt-dlp -P "~/Downloads/yt-dlp" --write-thumbnail "VIDEO_URL"
When user provides a video URL:
- YouTube/YouTube Music → Always use --cookies-from-browser chrome - Other sites → Try without cookies first
- Just download the video? - Extract audio only? - Need subtitles? - Specific quality?
required_permissions: ["all", "network"] - 403 Forbidden → Retry with --cookies-from-browser - Connection issues → yt-dlp auto-resumes, just retry - Format unavailable → Use -F to list formats, then select
User: "帮我下载这个视频 https://www.youtube.com/watch?v=xxx"
Response:
# YouTube - use cookies to avoid 403 errors
yt-dlp -P "~/Downloads/yt-dlp" --cookies-from-browser chrome "https://www.youtube.com/watch?v=xxx"
User: "下载这个视频的音频 https://www.bilibili.com/video/xxx"
Response:
# Bilibili - extracting audio as MP3
yt-dlp -P "~/Downloads/yt-dlp" -x --audio-format mp3 "https://www.bilibili.com/video/xxx"
User: "下载这个 Twitter 视频 https://twitter.com/xxx/status/123"
Response:
# Twitter/X - direct download usually works
yt-dlp -P "~/Downloads/yt-dlp" "https://twitter.com/xxx/status/123"
yt-dlp supports thousands of sites including:
Full list: https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md
| Error | Cause | Solution | |-------|-------|----------| | HTTP 403 Forbidden | YouTube blocks unauthenticated requests | Use --cookies-from-browser chrome | | Video unavailable | Geo-restricted or private | Use cookies or VPN | | Download interrupted | Network issues | Retry - yt-dlp auto-resumes | | Format not available | Requested format doesn't exist | Use -F to list formats |
pip install yt-dlp
brew install ffmpeg # macOS
This is the most common YouTube error. Always use cookies for YouTube:
# Recommended approach for YouTube
yt-dlp -P "~/Downloads/yt-dlp" --cookies-from-browser chrome "YOUTUBE_URL"
Supported browsers: chrome, firefox, safari, edge, brave, opera
# Try with cookies from browser
yt-dlp --cookies-from-browser chrome "VIDEO_URL"
# Or use a specific format
yt-dlp -F "VIDEO_URL" # List formats first
yt-dlp -f FORMAT_ID "VIDEO_URL"
# Update yt-dlp to latest version
pip install -U yt-dlp
# Force IPv4 (sometimes helps with connection issues)
yt-dlp -4 "VIDEO_URL"
--cookies-from-browser chromepip install -U yt-dlp-F before downloading if unsure安装 Yt Dlp Downloader 后,可以对 AI 说这些话来触发它
Help me get started with Yt Dlp Downloader
Explains what Yt Dlp Downloader does, walks through the setup, and runs a quick demo based on your current project
Use Yt Dlp Downloader to download videos from YouTube, Bilibili, Twitter, and thousands of o...
Invokes Yt Dlp Downloader with the right parameters and returns the result directly in the conversation
What can I do with Yt Dlp Downloader in my marketing & growth workflow?
Lists the top use cases for Yt Dlp Downloader, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/yt-dlp-downloader-skill/ 目录(个人级,所有项目可用),或 .claude/skills/yt-dlp-downloader-skill/(项目级)。重启 AI 客户端后,用 /yt-dlp-downloader-skill 主动调用,或让 AI 根据上下文自动发现并使用。
Yt Dlp Downloader 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Yt Dlp Downloader 可免费安装使用。请查阅仓库了解许可证信息。
Download videos from YouTube, Bilibili, Twitter, and thousands of other sites using yt-dlp. Use when the user provides a video URL and wants to download it, extract audio (MP3), download subtitles, or select video quality. Triggers on phrases like "下载视频", "download video", "yt-dlp", "YouTube", "B站", "抖音", "提取音频", "extract audio".
Automate my marketing & growth tasks using Yt Dlp Downloader
Identifies repetitive steps in your workflow and sets up Yt Dlp Downloader to handle them automatically
Yt Dlp Downloader 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。