agricidaniel/claude-video/video-shorts
Claude Code and agent skill by agricidaniel/claude-video
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Longform-to-shortform video pipeline that automatically extracts viral-ready short clips from long videos. V3 pipeline with VLM-powered visual analysis (Gemini 2.5 Flash), auto-detects screen recordings vs talking-head, uses "Framed" layout for screen content (padded top/bottom with centered captions), face-tracked crop for talking-head. Transcribes with WhisperX, scores by visual interest + transcript quality, adds karaoke captions, hook text, normalizes audio. Use when user says "shorts", "clips", "highlight", "shortform", "reels", "tiktok clips", "extract clips", "viral clips", "repurpose", "longform to shortform", "auto clip", "find best moments", or "screen recording shorts".
Install
npx vskill@latest install agricidaniel/claude-video/video-shortsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as agricidaniel/claude-video/video-shorts.
claude-video-shorts — Longform to Shortform Pipeline (V3)
One-Command Pipeline
V3 Screen-Aware Pipeline (recommended)
For screen recordings, tutorials, and mixed content — uses VLM for visual analysis:
V1 Audio-Only Pipeline (legacy)
For simple talking-head content where face tracking is sufficient:
V3 Pipeline Architecture
Framed Layout (Screen Mode)
The validated layout for screen recordings (1080x1920):
FFmpeg Filter Chain
Crop Position Logic
VLM analyzes each frame and suggests zoom regions. The crop position (X) varies:
- Left-aligned content (tables, lists): x_pct ~0.22
- Center-aligned content (title pages, score circles): x_pct ~0.35
- Right-aligned content (sidebars, panels): x_pct ~0.55
Multiple zoom regions within a clip create jump cuts (not smooth pan) — this matches natural scroll/section transitions in screen recordings.
Multi-Modal Scoring (V3)
| Factor | Weight | Source | Description | |
|---|---|---|---|---|
| Visual interest | 0.30 | VLM | Charts, tables, data = high score | |
| Content completeness | 0.25 | VLM + transcript | Complete data shown, full thoughts | |
| Audio engagement | 0.20 | Transcript | Emphasis words, questions, emotion | |
| Hook potential | 0.15 | Transcript | First sentence strength | |
| Standalone coherence | 0.10 | Transcript | Works without context |
Caption Style (V3)
The validated caption parameters for the framed layout:
Flags Reference
| Flag | Default | Description | |
|---|---|---|---|
--count N | 5 | Number of shorts to extract | |
--min-duration S | 20 | Minimum clip length in seconds | |
--max-duration S | 55 | Maximum clip length in seconds | |
--style STYLE | bold | Caption style: default, bold, minimal, neon, shadow | |
--platform PLAT | shorts | Export: tiktok, reels, shorts, all | |
--skip-captions | false | Skip caption burn-in | |
--skip-vlm | false | Skip VLM analysis (audio-only scoring) | |
--hook-text TXT | auto | Custom hook text for all shorts | |
--language LANG | en | Transcription language | |
--output-dir DIR | input dir | Output directory | |
--vlm-model MOD | gemini-2.5-flash | VLM model for frame analysis | |
--max-frames N | 40 | Max frames for VLM analysis | |
--mode MODE | auto | Force: screen, talking-head, auto |
Requirements
Core (always needed)
- FFmpeg with libass support
- WhisperX (
pip install whisperxin venv, 6GB VRAM) - PySceneDetect (
pip install scenedetect)
VLM Analysis (screen mode)
GOOGLE_API_KEYenvironment variablepip install google-genaiin venv- Cost: ~$0.01-0.03 per video (~40 frames via Gemini 2.5 Flash)
Face Tracking (talking-head mode)
- MediaPipe (
pip install mediapipe) - OpenCV (
pip install opencv-python) - CPU-only, no VRAM required
Platform Duration Limits
| Platform | Max Duration | Recommended | Aspect | |
|---|---|---|---|---|
| TikTok | 10 min | 30-60s | 9:16 | |
| Instagram Reels | 90s | 30-60s | 9:16 | |
| YouTube Shorts | 60s | 30-55s | 9:16 |
Safety Rules
- Always run
bash scripts/preflight.sh "$INPUT" "$OUTPUT"before writes - Never overwrite source video — all shorts are new files
- Confirm before processing videos longer than 60 minutes
- Clean up temp files after pipeline completes
- Report estimated processing time before starting
Reference
Load references/shorts-pipeline.md for detailed algorithms, scoring formulas, and tuning parameters.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/video-shorts/SKILL.md
Popularity
- Repository stars
- 30
- Repository forks
- 13
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/agricidaniel/claude-video/video-shorts)