clip-hand-skill
What it does
This skill gives expert steps for making short video clips, including downloading with yt-dlp, transcribing with Whisper, writing SRT subtitles and cutting with ffmpeg. The same tool options work on Windows, macOS and Linux, apart from shell syntax.
When to use it
- βWhen you want to cut short clips from a longer online video.
- βWhen you need subtitles created from a video's speech.
- βWhen you want to process video files with ffmpeg on your own computer.
Skill link
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-hands/bundled/clip/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βTake this interview video, transcribe it, and make three short clips with subtitles.β
5 new skills a week. 1 minute to read.
How it works
The skill guides downloading the source video, transcribing its audio, creating subtitle files and trimming segments with ffmpeg.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Video Clipping Expert Knowledge
Cross-Platform Notes
All tools (ffmpeg, ffprobe, yt-dlp, whisper) use identical CLI flags on Windows, macOS, and Linux. The differences are only in shell syntax:
| Feature | macOS / Linux | Windows (cmd.exe) |
|---|---|---|
| Suppress stderr | 2>/dev/null |
2>NUL |
| Filter output | | grep pattern |
| findstr pattern |
| Delete files | rm file1 file2 |
del file1 file2 |
| Null output device | -f null - |
-f null - (same) |
| ffmpeg subtitle paths | subtitles=clip.srt |
subtitles=clip.srt (relative OK, absolute needs C\\:/path) |
IMPORTANT: ffmpeg filter paths (-vf "subtitles=...") always need forward slashes. On Windows with absolute paths, escape the colon: subtitles=C\\:/Users/me/clip.srt
Prefer using file_write tool for creating SRT/text files instead of shell echo/heredoc.
yt-dlp Reference
Download with Format Selection
# Best video up to 1080p + best audio, merged
yt-dlp -f "bv[height<=1080]+ba/b[height<=1080]" --restrict-filenames -o "source.%(ext)s" "URL"
# 720p max (smaller, faster)
yt-dlp -f "bv[height<=720]+ba/b[height<=720]" --restrict-filenames -o "source.%(ext)s" "URL"
# Audio only (for transcription-only workflows)
yt-dlp -x --audio-format wav --restrict-filenames -o "audio.%(ext)s" "URL"
Metadata Inspection
# Get full metadata as JSON (duration, title, chapters, available subs)
yt-dlp --dump-json "URL"
# Key fields: duration, title, description, chapters, subtitles, automatic_captions
YouTube Auto-Subtitles
# Download auto-generated subtitles in json3 format (word-level timing)
yt-dlp --write-auto-subs --sub-lang en --sub-format json3 --skip-download --restrict-filenames -o "source" "URL"
# Download manual subtitles if available
yt-dlp --write-subs --sub-lang en --sub-format srt --skip-download --restrict-filenames -o "source" "URL"
# List available subtitle languages
yt-dlp --list-subs "URL"
Useful Flags
--restrict-filenamesβ safe ASCII filenames (no spaces/special chars) β important on all platforms--no-playlistβ download single video even if URL is in a playlist-o "template.%(ext)s"β output template (%(ext)s auto-detects format)--cookies-from-browser chromeβ use browser cookies for age-restricted content--extract-audio/-xβ extract audio only--audio-format wavβ convert audio to wav (for whisper)
Whisper Transcription Reference
Audio Extraction for Whisper
# Extract mono 16kHz WAV (whisper's preferred input format)
ffmpeg -i source.mp4 -vn -ar 16000 -ac 1 -y audio.wav
Basic Transcription
# Standard transcription with word-level timestamps
whisper audio.wav --model small --output_format json --word_timestamps true --language en
# Faster alternative (same flags, 4x speed)
whisper-ctranslate2 audio.wav --model small --output_format json --word_timestamps true --language en
Model Sizes
| Model | VRAM | Speed | Quality | Use When |
|---|---|---|---|---|
| tiny | ~1GB | Fastest | Rough | Quick previews, testing pipeline |
| base | ~1GB | Fast | OK | Short clips, clear speech |
| small | ~2GB | Good | Good | Default β best balance |
| medium | ~5GB | Slow | Better | Important content, accented speech |
| large-v3 | ~10GB | Slowest | Best | Final production, multiple languages |
Note: On macOS Apple Silicon, consider mlx-whisper as a faster native alternative.
JSON Output Structure
{
"text": "full transcript text...",
"segments": [
{
"id": 0,
"start": 0.0,
"end": 4.52,
"text": " Hello everyone, welcome back.",
"words": [
{"word": " Hello", "start": 0.0, "end": 0.32, "probability": 0.95},
{"word": " everyone,", "start": 0.32, "end": 0.78, "probability": 0.91},
{"word": " welcome", "start": 0.78, "end": 1.14, "probability": 0.98},
{"word": " back.", "start": 1.14, "end": 1.52, "probability": 0.97}
]
}
]
}
segments[].words[]gives word-level timing when--word_timestamps trueprobabilityindicates confidence (< 0.5 = likely wrong)
YouTube json3 Subtitle Parsing
Format Structure
{
"events": [
{
"tStartMs": 1230,
"dDurationMs": 5000,
"segs": [
{"utf8": "hello ", "tOffsetMs": 0},
{"utf8": "world ", "tOffsetMs": 200},
{"utf8": "how ", "tOffsetMs": 450},
{"utf
FAQ
What tools does it use?
It uses yt-dlp to download, Whisper to transcribe speech, and ffmpeg to cut clips and add subtitles.
Does it work on Windows?
Yes. The skill says the tools use the same options on Windows, macOS and Linux, with only small shell differences.
Are subtitle file paths tricky?
Yes. ffmpeg subtitle paths need forward slashes, and absolute Windows paths need the colon escaped.
Details
Original description by the author
Expert knowledge for AI video clipping β yt-dlp downloading, whisper transcription, SRT generation, and ffmpeg processing
repo: RightNow-AI/openfang
Popularity
- GitHub stars
- 18k
- Ranking position
- #10654
- License
- Apache-2.0
- Updated
- 7/2/2026
Comments
- β¦
More skills from this repository
browser-automation
18kTeaches your agent to control a web browser with Playwright, using CSS selectors to find buttons, forms and links.
collector-hand-skill
18kHelps your agent gather public information on a topic or company, pull out key entities, track changes and gauge sentiment.
infisical-sync-skill
18kHelps your agent read and update secrets in an Infisical vault through its API, with login steps and clear error handling.
lead-hand-skill
18kHelps your agent find and score potential customers by searching the web, enriching company details and removing duplicates.
Similar skills
taste-application
280kHelps your agent create videos in a specific style. It can copy the editing rhythm from a reference video, generate new scenes, adjust colors, and edit everything together with other footage.
taste-distillation
280kLets your agent analyze videos to create a style pack. This includes colors, cutting rhythm, and visual elements that can be reused to create new videos with the same look.
ui-demo
280kHas your agent record polished UI demo videos. Useful for creating tutorials or showing how a web app works.