skills/highlight-scanner/SKILL.md
Combined analysis skill to find viral-worthy highlights from videos. Scans transcripts, detects laughter, analyzes sentiment/emotion, and uses scene changes to identify the most engaging moments for TikTok/Shorts/Reels. Produces ranked list of highlight segments with virality scores.
npx skillsauth add akrindev/trimer-clip highlight-scannerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill combines all detection methods to find viral-worthy highlights from videos. It's the core analysis component for the autocut-shorts workflow.
Each highlight is scored based on:
virality_score = (
transcript_score * 0.35 +
laughter_score * 0.25 +
sentiment_score * 0.25 +
scene_score * 0.15
)
Score Range: 0.0 - 1.0
scripts/find_highlights.pyFind viral-worthy highlight segments.
Usage:
python skills/highlight-scanner/scripts/find_highlights.py <video_path> [options]
Options:
--transcript-path: Path to transcript SRT/VTT file--scenes-path: Path to scenes JSON file (from scene-detector)--laughter-path: Path to laughter JSON file (from laughter-detector)--sentiment-path: Path to sentiment JSON file (from sentiment-analyzer)--num-clips: Number of clips to generate - default: 5--min-duration: Minimum clip duration (seconds) - default: 15--max-duration: Maximum clip duration (seconds) - default: 60--output, -o: Output JSON path (default: <video_path>_highlights.json)Examples:
Find highlights with transcript only:
python skills/highlight-scanner/scripts/find_highlights.py video.mp4 --transcript-path video.srt
Full analysis with all signals:
python skills/highlight-scanner/scripts/find_highlights.py video.mp4 \
--transcript-path video.srt \
--scenes-path video_scenes.json \
--laughter-path video_laughter.json \
--sentiment-path video_sentiment.json
Find 10 clips with custom duration:
python skills/highlight-scanner/scripts/find_highlights.py video.mp4 \
--transcript-path video.srt \
--num-clips 10 \
--min-duration 20 \
--max-duration 45
scripts/analyze_viral_potential.pyAnalyze the viral potential of video segments.
Usage:
python skills/highlight-scanner/scripts/analyze_viral_potential.py <video_path> [options]
Options:
--transcript-path: Path to transcript file--output, -o: Output JSON pathExample:
python skills/highlight-scanner/scripts/analyze_viral_potential.py video.mp4 --transcript-path video.srt
{
"video_path": "video.mp4",
"total_segments_analyzed": 15,
"highlights": [
{
"rank": 1,
"start_time": 45.2,
"end_time": 72.5,
"duration": 27.3,
"virality_score": 0.92,
"scores": {
"transcript": 0.95,
"laughter": 0.80,
"sentiment": 0.85,
"scenes": 0.70
},
"text": "This is the key moment text...",
"reasoning": "Contains hook + laughter + positive emotion",
"suggested_clip_start": 42.0,
"suggested_clip_end": 75.0,
"confidence": "high"
}
],
"analysis_summary": {
"total_duration": 120.5,
"avg_virality_score": 0.68,
"best_segment_start": 45.2,
"recommended_num_clips": 5
}
}
Default weights (customizable):
DEFAULT_WEIGHTS = {
'transcript': 0.35, # Content analysis
'laughter': 0.25, # Humor detection
'sentiment': 0.25, # Emotion analysis
'scenes': 0.15 # Visual transitions
}
Adjust weights based on content type:
laughter weightsentiment weighttranscript weightscenes weightHooks/Attention Grabbers:
Story Beats:
Engagement:
This skill combines inputs from:
video-transcriber: Transcript for content analysisscene-detector: Scene changes for cut pointslaughter-detector: Humorous momentssentiment-analyzer: Emotional peaksOutput is used by:
video-trimmer: Create clips from highlightsautocut-shorts: Full workflow executionvideo-transcriberscene-detector (optional)laughter-detector (optional)sentiment-analyzer (optional)video-trimmer or autocut-shortstesting
Download videos from YouTube URLs. Use when user wants to download a YouTube video for processing, editing, or transcription. Supports different quality options, audio-only extraction, and playlist downloads.
tools
Trim and cut videos by timestamp with precision. Supports both stream copy (fast) and re-encoding (quality) modes. Use when you need to extract specific segments from videos, create clips from highlights, or cut unwanted portions.
development
Transcribe audio from videos using Whisper (local), OpenAI Whisper API, Google Speech-to-Text, or Gemini API (gemini-flash-lite-latest). Use when you need to convert video/audio to text for further processing, subtitle generation, or content analysis. Supports multiple languages, speaker diarization, and timestamp-accurate transcription. Gemini provides additional features like emotion detection and viral segment analysis.
tools
Add burned-in subtitles/captions to video clips. Supports SRT/VTT/ASS subtitle files, customizable styling (font, size, color, position), and platform-specific presets for TikTok, YouTube Shorts, and Instagram Reels.