用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ykdojo/safeclaw --skill yt-dlp命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | yt-dlp |
| description | Download YouTube videos, audio, and subtitles/transcripts using yt-dlp. |
Download YouTube videos, audio, and subtitles/transcripts.
Check if yt-dlp is installed, and download it if not:
if ! command -v yt-dlp &>/dev/null && [ ! -f ~/yt-dlp ]; then
curl -sL https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o ~/yt-dlp && chmod +x ~/yt-dlp
fi
Then use ~/yt-dlp (or just yt-dlp if installed globally).
Download subtitles/transcript:
~/yt-dlp --write-auto-sub --sub-lang en --skip-download -o "/tmp/%(id)s" <url>
Download audio only:
~/yt-dlp -x --audio-format mp3 -o "/tmp/%(title)s.%(ext)s" <url>
Download video:
~/yt-dlp -o "/tmp/%(title)s.%(ext)s" <url>
Get video info (title, duration, description):
~/yt-dlp --print title --print duration_string --print description --no-download <url>
.vtt files - read them to get the transcript/tmp/ for downloads to avoid cluttering the working directory