
Youtube Clipper
Turns YouTube videos into clipped segments with bilingual subtitles burned in. Downloads the video, uses Claude to analyze subtitles and generate fine-grained chapters (2-5 minute chunks based on topic shifts, not arbitrary timestamps), then lets you pick which segments to extract. The translation happens in batches of 20 subtitles at a time to cut down on API calls. Handles the annoying FFmpeg path issues with spaces by copying to a temp directory. You end up with the raw clip, a subtitled version, the SRT file, and an optional social media summary. Built for Chinese users making bilingual content, but the chapter analysis approach works for anyone who needs semantic chunking instead of just time-based splits.
- skills.sh installs
- 4.4K
- GitHub stars
- 2.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add op7418/youtube-clipper-skill --skill youtube-clipper --agent claude-codeInstalls into .claude/skills of the current project.
Files
YouTube 视频智能剪辑工具
Installation: If you're installing this skill from GitHub, please refer to README.md for installation instructions. The recommended method is
npx skills add https://github.com/op7418/Youtube-clipper-skill.
工作流程
你将按照以下 6 个阶段执行 YouTube 视频剪辑任务:
阶段 1: 环境检测
目标: 确保所有必需工具和依赖都已安装
-
检测 yt-dlp 是否可用
yt-dlp --version -
检测 FFmpeg 版本和 libass 支持
# 优先检查 ffmpeg-full(macOS) /opt/homebrew/opt/ffmpeg-full/bin/ffmpeg -version # 检查标准 FFmpeg ffmpeg -version # 验证 libass 支持(字幕烧录必需) ffmpeg -filters 2>&1 | grep subtitles -
检测 Python 依赖
python3 -c "import yt_dlp; print('✅ yt-dlp available')" python3 -c "import pysrt; print('✅ pysrt available')"
如果环境检测失败:
- yt-dlp 未安装: 提示
brew install yt-dlp或pip install yt-dlp - FFmpeg 无 libass: 提示安装 ffmpeg-full
brew install ffmpeg-full # macOS - Python 依赖缺失: 提示
pip install pysrt python-dotenv
注意:
- 标准 Homebrew FFmpeg 不包含 libass,无法烧录字幕
- ffmpeg-full 路径:
/opt/homebrew/opt/ffmpeg-full/bin/ffmpeg(Apple Silicon) - 必须先通过环境检测才能继续
阶段 2: 下载视频
目标: 下载 YouTube 视频和英文字幕
Sponsors
Details
- Repository
- github.com/op7418/youtube-clipper-skill