youtube-clipper

youtube-clipper is a skill for Claude Code from garroshub/MixCut-Skill. It costs 110 tokens per session (3,283 once invoked), scanned A, a copy of youtube-clipper, Apache-2.0.

A tool for downloading YouTube videos and subtitles, finding useful sections, and producing edited clips with translated bilingual subtitles.

In plain words
What is it for?
Use it to make short clips from YouTube videos, create Chinese-English subtitle versions, burn subtitles into video, and write summaries or promotional copy.
Why use it?
It brings downloading, chapter selection, subtitle translation, and subtitle burning into one workflow instead of requiring separate manual tools.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./youtube-clips/<日期时间>/.

Good fit Use it to make short clips from YouTube videos, create Chinese-English subtitle versions, burn subtitles into video, and write summaries or promotional copy.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/garroshub/MixCut-Skill
agentmods
npx agentmods add skills/garroshub/mixcut-skill/youtube-clipper-skill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for youtube-clipper

README.md
[![agentmods](https://agentmods.dev/badge/skills/garroshub/mixcut-skill/youtube-clipper-skill/github.svg)](https://agentmods.dev/skills/garroshub/mixcut-skill/youtube-clipper-skill)
Your own site
<a href="https://agentmods.dev/skills/garroshub/mixcut-skill/youtube-clipper-skill"><img src="https://agentmods.dev/badge/skills/garroshub/mixcut-skill/youtube-clipper-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for youtube-clipper

Your own site · 80×15
<a href="https://agentmods.dev/skills/garroshub/mixcut-skill/youtube-clipper-skill"><img src="https://agentmods.dev/badge/skills/garroshub/mixcut-skill/youtube-clipper-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,283 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.03283
Opus 5 $0.00055 $0.01641
Sonnet 5 $0.00022 $0.00657
Haiku 4.5 $0.00011 $0.00328

Measured 11d ago against content hash 1039e3c3ac30, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

youtube-clipper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 11 executable files (install_as_skill.sh, scripts/__init__.py, scripts/analyze_subtitles.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to youtube-clipper — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/Youtube-clipper-skill/SKILL.md · 374 lines

How it starts

The opening of the file, as written. The whole thing — 374 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  1. 询问用户 YouTube URL

  2. 调用 download_video.py 脚本

    cd ~/.claude/skills/youtube-clipper
    python3 scripts/download_video.py <youtube_url>
    
  3. 脚本会:

    • 下载视频(最高 1080p,mp4 格式)
    • 下载英文字幕(VTT 格式,自动字幕作为备选)
    • 输出文件路径和视频信息
  4. 向用户展示:

    • 视频标题
    • 视频时长
    • 文件大小
    • 下载路径

输出:

  • 视频文件: <id>.mp4(使用视频 ID 命名,避免特殊字符问题)
  • 字幕文件: <id>.en.vtt

阶段 3: 分析章节(核心差异化功能)

目标: 使用 Claude AI 分析字幕内容,生成精细章节(2-5 分钟级别)

  1. 调用 analyze_subtitles.py 解析 VTT 字幕

    python3 scripts/analyze_subtitles.py <subtitle_path>
    
  2. 脚本会输出结构化字幕数据:

    • 完整字幕文本(带时间戳)
    • 总时长
    • 字幕条数
  3. 你需要执行 AI 分析(这是最关键的步骤):

    • 阅读完整字幕内容
    • 理解内容语义和主题转换点
    • 识别自然的话题切换位置
    • 生成 2-5 分钟粒度的章节(避免半小时粗粒度切分)
  4. 为每个章节生成:

    • 标题: 精炼的主题概括(10-20 字)
    • 时间范围: 起始和结束时间(格式: MM:SS 或 HH:MM:SS)
    • 核心摘要: 1-2 句话说明这段讲了什么(50-100 字)
    • 关键词: 3-5 个核心概念词

Read the full file on GitHub · 374 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 374 lines · 110 tokens per session scan A 1039e3c3ac30

Subscribe to this mod's changes

youtube-clipper is a skill published in the GitHub repository garroshub/MixCut-Skill (7 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 110 tokens to every session and 3,283 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to youtube-clipper, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

dubbing

Dub audio and video into other languages using the ElevenLabs Dubbing API (dubbingv2), preserving the original speakers' voices. Use when translating videos, podcasts, or recordings into other languages, localizing media content, reviewing or correcting dubbing transcripts and translations, or regenerating a dub after…

elevenlabs/skills · 65 tokens

iflytek-video-translate

A tool that translates a video’s speech into another language and creates dubbed audio. Video localization means adapting video content for viewers who speak a different language.

iflytek/iFly-Skills · 91 tokens

scenario-caption-studio

Use when a video needs its spoken words on screen through Scenario via MCP: burned-in styled captions for a TikTok, Reels, or Shorts cut, ad captions for sound-off feeds, YouTube subtitles, an SRT sidecar, transcription of a clip's audio, captions translated into another language, karaoke or word-by-word styles, or…

scenario-labs/skills · 113 tokens

video-bilingual-subtitle-delivery

Create, repair, audit, and deliver bilingual video subtitles with English speech timing and Chinese aligned on the same subtitle event. Use when asked to add English/Chinese subtitles to a video, fix subtitle sync, fill missing Chinese lines, produce softsub or hardcode MP4 deliverables, or turn a messy subtitle…

davidtoby/agent-skills · 79 tokens

precise-bilingual-subtitle

Produce bilingual (EN+ZH) hardcoded-subtitle videos with Whisper word-level timing accuracy, customizable font/color/size, and the full pipeline from raw YouTube video to yellow-subtitle MP4. Use when YouTube auto-captions drift, when the user wants specific subtitle styling (color, size, font), or when subtitle…

davidtoby/agent-skills · 83 tokens

youtube-bilingual-subtitle-delivery

Download a YouTube video, convert to MP4 if needed, build bilingual English/Chinese subtitles, audit completeness, and export softsub + hardcode MP4 deliverables. Includes fallback paths when YouTube auto-captions are partial or Chinese caption download is rate-limited, and notes a hardcode duration drift fix.

davidtoby/agent-skills · 73 tokens