youtube-clip-extractor
БесплатноБез исполняемых скриптовНе проверенDownload YouTube videos, identify compelling clips from transcripts, cut clips with ffmpeg, and generate platform-optimized on-screen text and captions…
от cdeistopened★ 32 звезды на GitHubОб этом скилле
YouTube Clip Extractor
Overview
This skill downloads YouTube videos, analyzes transcripts for compelling clip moments, extracts clips using ffmpeg, and generates platform-ready on-screen text and captions. It integrates with the existing caption and social content skills to deliver complete, publishable assets.
When to Use This Skill
- You have a YouTube URL and want to extract the best clips
- You want automated clip identification based on hook/coda criteria
- You need clips cut and ready for Descript or other editors
- You want on-screen text hooks and platform-specific captions for each clip
Do NOT use for:
- Full podcast production workflow (use
podcast-productionskill instead) - Text-only social posts (use
social-content-creationskill) - Already-downloaded videos (skip to Phase 2)
Prerequisites
Required Tools (install via Homebrew)
brew install yt-dlp ffmpeg
File Location
All downloads go to your project's transcript folder (customizable).
Structure:
transcripts/
├── {video_id}.mp4 # Full video (H.264 encoded)
├── {video_id}.en.vtt # Timestamped subtitles
└── clips/
└── {video_id}/
├── clip_01_{name}.mp4 # Individual clips
├── clip_02_{name}.mp4
└── {video_id}_Clip_Assets.md # Captions & hooks
The 4-Phase Workflow
Phase 1: Download Video & Transcript
Goal: Get video and subtitles from YouTube URL
Option A: Transcript-First (Recommended)
Download transcript first, identify clips, then download only needed segments. See Phase 1.5.
Option B: Full Download
If you need the entire video, use H.264 format for Descript compatibility (NOT AV1):
# Download video in H.264 format (Descript-compatible)
yt-dlp -f "bestvideo[vcodec^=avc]+bestaudio[ext=m4a]/best[vcodec^=avc]" \
--merge-output-format mp4 \
-o "transcripts/{video_id}.mp4" \
"YOUTUBE_URL"
# If H.264 unavailable, download best quality then re-encode:
yt-dlp -f "bestvideo+bestaudio" --merge-output-format mp4 \
-o "transcripts/{video_id}_temp.mp4" \
"YOUTUBE_URL"
# Re-encode to H.264 for Descript compatibility
ffmpeg -i "{video_id}_temp.mp4" -c:v libx264 -preset fast -crf 22 \
-c:a aac -b:a 128k "{video_id}.mp4"
Step 2: Download Subtitles
yt-dlp --write-auto-sub --sub-lang en --skip-download \
-o "transcripts/{video_id}.%(ext)s" \
"YOUTUBE_URL"
Phase 1 Output:
{video_id}.mp4- Full video (H.264){video_id}.en.vtt- Timestamped subtitles
Phase 1.5: Convert VTT to Markdown (Critical for Context Efficiency)
Goal: Transform verbose VTT files into clean timestamped markdown for efficient analysis
Raw VTT files are extremely inefficient - they contain duplicate lines, millisecond timestamps, and formatting codes that consume massive context when reading. Always convert before analyzing.
Conversion Script
Use the VTT-to-markdown converter at /Users/charliedeist/Desktop/New Root Docs/scripts/vtt_to_markdown.py:
python3 scripts/vtt_to_markdown.py "transcripts/{video_id}.en.vtt" "transcripts/{video_id}.md"
This produces clean markdown with timestamps every ~30 seconds:
[0:00] First paragraph of dialogue here...
[0:30] Next paragraph continues here...
[1:00] And so on...
Workflow Optimization: Transcript-First Approach
For bandwidth efficiency, download transcript BEFORE the full video:
# Step 1: Download transcript only
yt-dlp --write-auto-sub --sub-lang en --skip-download \
-o "transcripts/{video_id}.%(ext)s" \
"YOUTUBE_URL"
# Step 2: Convert to markdown
python3 scripts/vtt_to_markdown.py "transcripts/{video_id}.en.vtt" "transcripts/{video_id}.md"
# Step 3: Analyze transcript and identify clips (delegate to subagent)
# Step 4: Only download video if clips are worth extracting
Cleanup
After successful markdown conversion, delete the VTT file to keep things clean:
rm "transcripts/{video_id}.en.vtt"
Phase 1.5 Output:
{video_id}.md- Clean timestamped markdown transcript (VTT deleted)
Phase 2: Identify the Best Clip (Opus)
Goal: Find the single best clip with narrative arc - use Opus model for quality
IMPORTANT: Use Opus (not Haiku) for clip identification. This requires judgment about story structure, not just keyword matching.
Output Location
All clip suggestions go to:
studio/social-media/youtube-clips/{video_id}_clips.md
Clip Selection Criteria
The ideal clip has TWO essential elements:
Compelling Hook (first 3 seconds must grab attention)
- Provocative statement or objection being raised
- Surprising claim or counter-intuitive setup
- Clear stakes or tension
Satisfying Arc or Reveal (complete thought, not just a quote)
- Setup → Tension → Payoff
- Can include multiple beats for richer storytelling
- Ends with insight, punchline, or memorable line
Bonus: Multiple beat
Установить youtube-clip-extractor в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл youtube-clip-extractor?
Download YouTube videos, identify compelling clips from transcripts, cut clips with ffmpeg, and generate platform-optimized on-screen text and captions. Complete workflow from URL to publishable clips.
Как установить скилл youtube-clip-extractor?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл youtube-clip-extractor запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic