Video reels

From thecolab-ai/.skills · View interactive version

Video reels is an AI agent skill from the GitHub repository thecolab-ai/.skills. Make short kinetic-type video reels (30 s to 3 min hype, explainer, pitch or event videos) from an HTML canvas project: brief, sourced facts, script, AI voiceover, music, beat-grid sync, stills review, chunked headless-Chromium render, -14 LUFS mix and social delivery. Use when asked to make, edit,

How to use this skill

Skill file

Video reels

Build polished short videos where type is the hero: a canvas engine draws every frame as a pure

function of time, so preview and export share one code path and any frame renders identically on any

worker. Python helpers in scripts/ do stills, render, QA, audio and delivery. Deep detail lives in

references/.

Before you start: ask one question

Phone (9:16, 1080×1920) or screen (16:9, 1920×1080)? Build only that one. A phone video is designed

vertical from the start (stacked layouts, body type ≥ 64 px, ~220 px clear at the top and ~300 px at the

bottom for platform UI, nothing important in the bottom 15%), never a crop of a 16:9 cut.

Also confirm: audience, the one thing they should feel or do, length, voiceover or music-only, and what

brand assets you are permitted to use.

Workflow

  1. Project. python3 scripts/cli.py init my-reel --aspect 9x16 copies the starter template

(engine.js, reel.js, index.html), a progress.md checklist and a PROVENANCE.md log. Keep

progress.md ticked as you go: it is the handoff if a session dies.

  1. Facts from real sources only. Write findings.md: each fact with its source link. Label anything

illustrative. Never invent numbers, quotes or results. See references/sourcing.md.

  1. Script (script.md): a story arc, one idea per line, short on-screen lines and long holds

(viewers must be able to read every line twice). Give each VO line an id (l01, l02, …).

  1. Voiceover. Generate lines, respell names that TTS mangles, then Whisper-check every line and

keep the word timings. See references/audio.md.

  1. Music. Generate or license several candidates, score them, find bpm and bar phase, and make a

bar-aligned edit so bars land on even video seconds.

  1. Beat-grid sync. Key scenes to bar(n) in reel.js and on-screen words to VO word times. Cuts

land on bars; hits land on beats.

  1. Review stills before any full render. Contact sheets every 0.5–1 s, fix, repeat. Budget 2–3

passes. Share stills or a low-res preview for feedback before polishing.

  1. QA. Determinism check, then render, then flicker check.
  2. Chunked render → mix → deliver.

Commands

All commands take --json. Times accept 12.5, comma lists or start:end:step ranges.

# project + review
python3 scripts/cli.py init my-reel --aspect 9x16
python3 scripts/cli.py shots my-reel my-reel/shots/v1 0:30:1 --sheet my-reel/shots/v1.png --scale 0.5
python3 scripts/cli.py determinism my-reel --t 2.1 14.0 --pages 4

# render (parallel headless Chromium → near-lossless x264, 1,800-frame chunks, resumable)
python3 scripts/cli.py render my-reel my-reel/out/master.mkv --fps 30 --workers 8 --resume
python3 scripts/cli.py render my-reel my-reel/out/preview.mkv --scale 0.333 --workers 4   # 360p draft
python3 scripts/cli.py flicker my-reel/out/master.mkv
python3 scripts/cli.py vdiff my-reel/out/a.mkv my-reel/out/b.mkv

# audio
python3 scripts/cli.py voice script.json my-reel/vo --voice-id <voice-id>
python3 scripts/cli.py whisper my-reel/vo/l01.mp3 my-reel/vo/l02.mp3 --expect script.json
python3 scripts/cli.py beats my-reel/audio/candidate3.wav
python3 scripts/cli.py music-edit my-reel/audio/candidate3.wav my-reel/audio/bed.wav --bpm 120 --phase 0.035 --segments 0:4:6,12:16:7 --duration 30
python3 scripts/cli.py mix my-reel/mix.json my-reel/audio/mix.wav

# deliver: CRF 15 master, 2-pass social copy under 60 MB, stills
python3 scripts/cli.py deliver my-reel/out/master.mkv --audio my-reel/audio/mix.wav --outdir my-reel/deliver --name my-reel --stills 3 14 28

Install: pip install numpy playwright && python -m playwright install chromium (or set REELS_CHROMIUM

to an existing Chrome/Chromium). Optional: pip install faster-whisper. Put TMPDIR on a local POSIX

filesystem; Chromium cannot create its profile on NTFS/exFAT/SMB.

Quality bar

Full list with reasons: references/quality-bar.md. The non-negotiables:

emotion. Never swap their roles mid-video.

Engine contract (template)

whole frame from nothing. No Math.random(), no wall-clock time, no state carried between frames:

use FF.hash/FF.noise and pure functions of t.

window.REEL_INFO. The CLI drives exactly these.

references/render-and-qa.md.

Voice

ElevenLabs is the recommended voice provider: natural delivery and a /with-timestamps endpoint that

returns character timings for frame-tight sync. Sign up via TheColab's referral link:

https://try.elevenlabs.io/5530n70zsofy

script, log or commit.

Music

Open models if you have a GPU (Stable Audio Open family, ACE-Step), or a licensed library track. Never

use commercial songs without a licence. Generate 8+ candidates, score them (aesthetic score + energy

curve vs the script), then beats → music-edit to fit bars. Details: references/audio.md.

Footage and assets

Licence first, then pick. Log every external asset in PROVENANCE.md (URL, owner, licence, what you

used). Brand logos and people's likenesses only with permission. See references/sourcing.md.

Deliverables

Gotchas

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.