Skip to content

Turns a YouTube video into subtitled clips: AI chapter analysis, bilingual subtitles, burned-in captions, and summary copy.

CCM score
59 of 100
skills.sh installs
5K
GitHub stars
2.4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the six-stage flow: environment check, download, AI chapter analysis, user selection, clipping and processing, and output packaging
  • Includes download_video.py, analyze_subtitles.py, clip_video.py, translate_subtitles.py, burn_subtitles.py, and generate_summary.py for each processing step
  • Generates 2 to 5 minute chapters split at topic transitions, and checks that every part of the video is covered
  • Requires ffmpeg-full with libass for burned-in subtitles, and uses a temporary directory to work around path-space issues

Install

$ npx -y skills add op7418/youtube-clipper-skill --skill youtube-clipper -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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: 环境检测

目标: 确保所有必需工具和依赖都已安装

  1. 检测 yt-dlp 是否可用

    yt-dlp --version
    
  2. 检测 FFmpeg 版本和 libass 支持

    # 优先检查 ffmpeg-full(macOS)
    /opt/homebrew/opt/ffmpeg-full/bin/ffmpeg -version
    
    # 检查标准 FFmpeg
    ffmpeg -version
    
    # 验证 libass 支持(字幕烧录必需)
    ffmpeg -filters 2>&1 | grep subtitles
    
  3. 检测 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 视频和英文字幕

Details

Repository
github.com/op7418/youtube-clipper-skill
Categories
Video & Audio Editing, Social Media

Similar to Youtube Clipper

More Video & Audio Editing