--- name: clipper description: Analyze video transcriptions to identify interesting segments for clipping. Finds highlights, key moments, and reactions with precise timestamps. Use when working with video transcriptions to extract clip-worthy moments. (project) --- # Video Clipper Skill Analyzes video transcription files to identify the most interesting and clip-worthy segments with precise timestamps. **Key Feature: Narrative Completeness** This skill uses a two-pass system to ensure clips tell complete stories, not just isolated moments. See [NARRATIVE_TEMPLATES.md](NARRATIVE_TEMPLATES.md) for story arc templates. ## Quick Start User just needs the transcription JSON and video file in their directory. When they ask you to analyze or find clips, you handle everything automatically: ``` User: "Find interesting clips from my video" ``` You will automatically: 1. Detect the transcription file (usually `out.json` or `*.json`) 2. Check if `parsed.json` exists, if not, run the parse script 3. **Pass 1**: Analyze `parsed.json` for clip-worthy moments → `segments.json` 4. **Pass 2**: Validate narrative completeness, detect gaps → `validation_report.json` 5. Merge approved suggestions into final segments 6. Detect video file and run extraction script 7. Run cleanup script to remove fillers and silences ## Execution Checklist When user asks to find clips, follow this exact sequence: **A. Detect Files** - [ ] Check if `parsed.json` exists - [ ] If not, look for transcription JSON (check `out.json` first, then `*.json`) - [ ] Note: `segments.json` and other analysis files are NOT transcription files **B. Parse (if needed)** - [ ] If `parsed.json` doesn't exist, run: `python .claude/skills/clipper/scripts/parse_transcription.py > parsed.json` - [ ] Verify `parsed.json` was created successfully **C. Pass 1: Signal Detection** - [ ] Read `parsed.json` in windows (100-200 sentences at a time) - [ ] Identify clip-worthy segments using the 7 categories + narrative beats - [ ] Apply **Demo-First Scoring** (demos +15, verbal claims +4) - [ ] Write initial results to `segments.json` - [ ] Report summary to user (number of clips found, categories, etc.) **D. Pass 2: Narrative Validation (NEW)** - [ ] Extract narrative structures from full transcript (see [NARRATIVE_TEMPLATES.md](NARRATIVE_TEMPLATES.md)) - [ ] Map detected clips to story arcs (ARGUMENT, TUTORIAL, DISCOVERY, etc.) - [ ] Run **Claim-Proof Linking** - link claims to their evidence - [ ] Detect **gaps** where key narrative elements are missing - [ ] Generate `validation_report.json` with gaps and suggestions - [ ] Present gaps and suggestions to user - [ ] User approves/rejects suggested additions - [ ] Merge approved suggestions into `segments.json` **E. Extract (automatic)** - [ ] Detect video file (`*.mp4`, `*.mov`, `*.mkv`) - [ ] Run: `python .claude/skills/clipper/scripts/extract_clips.py segments.json