long-to-short-videos

Installation
SKILL.md

Long to short videos

One long video in, finished shorts out. First a plan (video-agent/repurpose/<source>.md), then each picked clip is cut into a take and edited by /video-edit into video-agent/edits/<slug>/final.mp4. The ideas too spread out to clip become new scripts in video-agent/scripts/.

Preflight: yt-dlp --version && ffmpeg -version && node -v. Anything missing: /video-setup tools. The edit needs the video-edit skill installed next to this one.

Talk to the creator in their language. <source>: a short slug for the long video, lowercase, dashes, no dots.

1. The transcript

A YouTube link (fastest, nothing to install but yt-dlp):

mkdir -p video-agent/.tmp
yt-dlp --skip-download --print "%(title)s" --print "%(duration_string)s" --print "%(chapters)j" "<url>"
yt-dlp --skip-download --write-subs --write-auto-subs --sub-langs "<lang>.*" --sub-format vtt -o "video-agent/.tmp/%(id)s.%(ext)s" "<url>"

<lang> = the language spoken in the video (en, fr, es...). Creator-uploaded captions come out as <id>.<lang>.vtt; prefer them over auto ones when both exist. Turn the VTT into one timestamped line per caption, without the repeats auto-captions are full of:

Installs
46
GitHub Stars
19
First Seen
5 days ago