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-code

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

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

  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 视频和英文字幕

Sponsors

Details

Repository
github.com/op7418/youtube-clipper-skill

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs