agricidaniel/claude-video/video-shorts

Claude Code and agent skill by agricidaniel/claude-video

Trust tier 3
  • community
  • ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Source check pending

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

Semi-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:

bash
source ~/.video-skill/bin/activate && bash scripts/screen_shorts_pipeline.sh "$INPUT" \
[--count N] [--min-duration S] [--max-duration S] [--style STYLE] \
[--platform PLATFORM] [--skip-captions] [--skip-vlm] [--hook-text "Your hook here"] \
[--mode screen|talking-head|auto]
V1 Audio-Only Pipeline (legacy)

For simple talking-head content where face tracking is sufficient:

bash
source ~/.video-skill/bin/activate && bash scripts/shorts_pipeline.sh "$INPUT" \
[--count N] [--duration S] [--style STYLE] [--platform PLATFORM]

V3 Pipeline Architecture

INPUT (any video) → Auto-detect mode (screen vs talking-head)
│
[1] WhisperX transcription (word-level timestamps)
[2] PySceneDetect scene boundaries
[3] Extract keyframes at scene cuts + intervals
[4] Auto-detect: face rate <60% → screen mode
[5] VLM analysis (Gemini 2.5 Flash) → visual interest + zoom regions
[6] Topic segmentation + multi-modal scoring
[7] Per-topic: extract → reframe → caption → normalize
[8] Export for platform → manifest JSON

Framed Layout (Screen Mode)

The validated layout for screen recordings (1080x1920):

+--------1080px--------+
| |
| HOOK TEXT (200px) | "SEO Health Score: 57/100"
| Compelling data pt | "What Claude found in seconds"
| |
+=======================+
| |
| SCREEN CONTENT | Cropped from source, scaled to 1080x1372
| (1372px) | VLM-selected crop position
| | ~63% of source resolution
| Score tables, | Readable on phone
| data, charts... |
| |
+=======================+
| |
| KARAOKE CAPTIONS | Impact 72pt, yellow sweep fill
| (348px) | Dark box background (BorderStyle=4)
| Centered in zone | MarginV=240, word-by-word \kf timing
| |
+-----------------------+
FFmpeg Filter Chain
crop={W}:{H}:{X}:0 → scale=1080:1372 → pad=1080:1920:0:200:black
→ drawbox (chrome mask) → drawtext (hook) → ass (captions)
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)

FactorWeightSourceDescription
Visual interest0.30VLMCharts, tables, data = high score
Content completeness0.25VLM + transcriptComplete data shown, full thoughts
Audio engagement0.20TranscriptEmphasis words, questions, emotion
Hook potential0.15TranscriptFirst sentence strength
Standalone coherence0.10TranscriptWorks without context

Caption Style (V3)

The validated caption parameters for the framed layout:

Font: Impact, 72pt, Bold
Primary: White (&H00FFFFFF)
Secondary/Karaoke: Yellow (&H0000FFFF)
Outline: Black, 4px
Background: Semi-transparent black (&HC0000000)
BorderStyle: 4 (opaque box behind text)
Alignment: 2 (bottom-center)
MarginV: 240 (centered in 348px bottom zone)
Letter spacing: 2
Animation: \kf word-by-word karaoke sweep
Words per line: 3

Flags Reference

FlagDefaultDescription
--count N5Number of shorts to extract
--min-duration S20Minimum clip length in seconds
--max-duration S55Maximum clip length in seconds
--style STYLEboldCaption style: default, bold, minimal, neon, shadow
--platform PLATshortsExport: tiktok, reels, shorts, all
--skip-captionsfalseSkip caption burn-in
--skip-vlmfalseSkip VLM analysis (audio-only scoring)
--hook-text TXTautoCustom hook text for all shorts
--language LANGenTranscription language
--output-dir DIRinput dirOutput directory
--vlm-model MODgemini-2.5-flashVLM model for frame analysis
--max-frames N40Max frames for VLM analysis
--mode MODEautoForce: screen, talking-head, auto

Requirements

Core (always needed)
  • FFmpeg with libass support
  • WhisperX (pip install whisperx in venv, 6GB VRAM)
  • PySceneDetect (pip install scenedetect)
VLM Analysis (screen mode)
  • GOOGLE_API_KEY environment variable
  • pip install google-genai in 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

PlatformMax DurationRecommendedAspect
TikTok10 min30-60s9:16
Instagram Reels90s30-60s9:16
YouTube Shorts60s30-55s9:16

Safety Rules

  1. Always run bash scripts/preflight.sh "$INPUT" "$OUTPUT" before writes
  2. Never overwrite source video — all shorts are new files
  3. Confirm before processing videos longer than 60 minutes
  4. Clean up temp files after pipeline completes
  5. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/agricidaniel/claude-video/video-shorts/badge)](https://verified-skill.com/skills/agricidaniel/claude-video/video-shorts)

Something wrong with this skill or its page? Tell us.