ref-transfer
Installation
SKILL.md
ref-transfer
The reference is for analysis only. Never put a clip of it into the deliverable.
1. Get the reference
- A link the user gave is approval to download it. Keep it under the project's
refs/:yt-dlp -f "bv*[height<=1080]+ba/b" --merge-output-format mp4 -o "refs/<name>.%(ext)s" URL - If YouTube's bot check blocks it: add
--cookies-from-browser chrome:"Chrome Beta"(or the user's browser) and make suredeno --versionis ≥ 2.9, since yt-dlp uses it as the JS challenge solver.
2. Measure it (deterministic)
raea song refs/<name>.mp4 -o refs/<name>.song.json --srt none --plot refs/<name>.song.png
python3 ~/.claude/skills/ref-transfer/scripts/shots.py refs/<name>.mp4 -o lecture/ref-transfer --song refs/<name>.song.json
shots.py writes shots.json (start, duration, transition, motion, beats per shot, cut-to-beat offset, song hits),
shots.md (a table with empty description columns), stills/shot-NN.jpg and board.png.
Tune with --threshold (drop weak cuts; morph-heavy ads need 0.15–0.2), --merge (fold a transition's cluster of
cuts into one) and --min-shot.