cxkki

YouTube Video Analyzer Skill — Communication skill for Claude Code

Communication community

Claude Code skill: YouTube video -> full transcript, every scene cut into its own clip with ffmpeg, and an agent-written analysis (summary, chapters, critique, best clips).

How to install YouTube Video Analyzer Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open cxkki/youtube-video-analyzer-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What YouTube Video Analyzer Skill does

Claude Code skill: YouTube video -> full transcript, every scene cut into its own clip with ffmpeg, and an agent-written analysis (summary, chapters, critique, best clips).

Alternatives in Communication

  • Pestle Analysis — PESTLE analysis across Political, Economic, Social, Tech, Legal, Environmental 7.8k ★
  • Summarize Tweets — X/Twitter Summary Prompt 3.2k ★
  • YouTube Clipper Skill — Download videos, generate semantic chapters, clip segments, translate subtitles to bilingual format, and burn 1.6k ★

README

YouTube Video Analyzer — a Claude Code skill

Give your agent a YouTube link (or a local video) and get back:

  • the full transcript (.txt + timestamped .srt),
  • every scene cut into its own clip with ffmpeg, plus a thumbnail per scene,
  • an agent-written review: summary, timestamped chapters, key points, editing/visual analysis, critique and the best moments for Shorts/Reels.

Works with [Claude Code](https://claude.com/claude-code) and any agent that reads `SKILL.md` skills. The script also runs on its own.

Output

video-analysis//
├── video.mp4
├── transcript.txt        # full speech
├── transcript.srt        # timestamped subtitles
├── scenes/
│   ├── scene_001.mp4     # one clip per scene
│   ├── scene_001.jpg     # thumbnail
│   └── ...
├── scenes.json           # scene times + the speech inside each scene
├── REPORT.md             # scene table + speech per scene
└── ANALYSIS.md           # agent review (written by the agent, not the script)

How it works

  1. yt-dlp downloads the video and only the caption track in the spoken language (no auto-translated tracks, which avoids HTTP 429).
  2. No captions? faster-whisper transcribes it — GPU first, CPU fallback. If voice-activity detection finds nothing (music, singing) it retries without VAD. Audio is decoded with ffmpeg, not PyAV.
  3. ffmpeg finds scene changes with select='gt(scene,0.3)'.
  4. The whole video is encoded in one ffmpeg pass: keyframes are forced at every cut, the segment muxer splits it, and thumbnails come from the same decode. Clips are frame-accurate (≤1 frame off) and fast.
  5. Speech is mapped to scenes using word-level timestamps.
  6. The agent reads the transcript and thumbnails and writes ANALYSIS.md.

Example: 3.5 min 1080p video, 58 scenes → **~81 s** on a GTX 1050 Ti + 12-core CPU.

Install

Requirements: Python 3.9+, `ffmpeg` on your PATH.

git clone https://github.com/cxkki/youtube-video-analyzer-skill
cd youtube