CtrlK
BlogDocsLog inGet started
Tessl Logo
PluginPublic

gamussa/reels-producer-skill

Write talking-head scripts and produce Instagram reels and YouTube shorts

1.07x
Quality

96%

Does it follow best practices?

Impact

98%

1.07x

Average score across 8 eval scenarios

SecuritybySnyk

Low

Low-risk findings worth noting

Overview
Quality
Evals
Security
Files
name:
reel-builder
description:
Build short-form video from raw footage using ffmpeg and local tools — vertical 9:16 reels (TikTok, Instagram Reels, YouTube Shorts, LinkedIn) by default, or a 16:9 landscape cut for YouTube and LinkedIn. Produces beat-synced montages and talking-head reels with a voiceover spine and b-roll. Handles mixed-source footage, photos with Ken Burns motion, Hyperframes motion graphics, brand grading, Whisper captions, and platform exports. Use for requests to create, edit, assemble, or export reels and shorts, including "make a reel from these clips", "cut this to the beat", "add b-roll over my voiceover", "add motion graphics with Hyperframes", "make a landscape version for YouTube", or "batch process my videos".

Reel Builder

Process steps in order. Do not skip ahead.

A human-in-the-loop pipeline turning raw clips into platform-ready reels. ffmpeg-based; Whisper and Gemini optional.

Pipeline Overview

1.BRIEF+FORMAT ─▶ 2.PROBE ─▶ 3.INSPECT+SELECTS ─▶ 4.NORMALIZE ─▶ 5.BEATS (montage only)
  ─▶ 6.PLAN + DRAFT ─▶ ⏸ GATE 1 ─▶ 7.MASTER + QC ─▶ ⏸ GATE 2 ─▶ 8.EXPORT

The brief and format come first, never assumed. Only beat detection and how the plan is built differ between formats.

Two mandatory human review gates: cut plan approval (Gate 1 — always present the plan together with a cheap 540p preview) and final approval (Gate 2 — graded render before export). Never skip either.

Never plan blind. View every contact sheet (Step 3) before proposing a cut plan — a clip named "nyc iceberg.mp4" can be a 44-minute conference talk, and fitness clips can carry burned-in captions that disqualify them.

Requirements

Required: ffmpeg + ffprobe (brew install ffmpeg); for music-video, a .venv with librosa + soundfile (macOS refuses system pip, PEP 668). Text goes through subtitles/libass; ffmpeg capabilities are checked at preflight.

Optional: auto-editor, deepfilternet, Node 18+ for Remotion cards or Node 22+ for Hyperframes motion graphics, moviepy, yt-dlp, mlx-whisper, a Gemini API key — each named with its cost in references/dependencies.md.

Never silently substitute a lesser tool for a missing one — name the loss and let the user choose. Scripts record what ran (source, engine_requested, substituted); report a substitution, never pass its output off as the preferred tool's.

Working Directory Layout

One project folder per reel:

mkdir my-reel && cd my-reel
python3 "$REEL_BUILDER/scripts/pipeline.py" init --target-duration 30 --mode music-video --resolution 1080

$REEL_BUILDER is the installed skill directory. init links scripts/ to it, so every later python3 scripts/… command resolves. It scaffolds raw/ music/ work/ plan/ preview/ exports/ plus project.md (why — settled decisions) and state.json (where — stage state, gates, and the four Step 1 answers, which route every later status / next). Layout, flags, gate bookkeeping: references/project-setup.md.

Existing footage is symlinked into raw/ with an absolute target, never copied — and raw/ (link included) is never deleted. Procedure and checks: references/project-setup.md.

pipeline.py is the state machine. Stage completion is read from disk. Each render records what it was made from, so editing the plan or replacing a clip, VO, music or LUT flips it to stale. A gate decision binds to the exact file reviewed and voids when that file or its inputs change.

Session-start ritual — MANDATORY, in this order, before touching any media:

  1. python3 scripts/pipeline.py status — where the project stands; run next whenever unsure.
  2. Read project.md — the human's settled decisions; never re-ask them.
  3. Music-video only — create the beat-detection venv if it is missing, never pip3 install into system Python (macOS refuses it, PEP 668):
    python3 -m venv .venv && .venv/bin/pip install librosa soundfile
    Run detect_beats.py with .venv/bin/python3 from then on. Talking-head reels cut to speech and skip this.
  4. Then gate on the preflight for the project's mode — it exits non-zero when a required tool is missing:
    python3 scripts/check_deps.py --mode "$(python3 scripts/pipeline.py mode)"
    If it reports anything missing, install it and re-run until it passes; reporting the gap is not completing this step. Do not touch media until it exits clean. Then tell the user which optional tools are absent and what each costs.

During the session, pipeline.py gate 1|2 presented|approved|nle-wait|reopen records every human decision the moment it happens.

Step-by-Step Workflow

Step 1 — Ask what they're making

Brief first. Who it is for, their need, the one promise, the evidence that shows it, the response wanted, platform, structure (opinion / demonstration / story / comparison / montage), and a duration with its reason — into plan/brief.json (scripts/brief.py init --from <last reel's brief> carries the series answers). Ask only what is still empty; never invent evidence. Fields, good vs weak answers: references/creative-brief.md.

Then the four settings — ask explicitly, before touching any media — never infer them from the footage. A folder of action clips is just as plausibly b-roll for a talking-head reel, and every one of these choices is expensive to change after normalize.

  1. Format. Music video — beat-synced montage; needs music, no speech. Or talking head ("yapping", piece-to-camera) — a spoken take carries it with b-roll over the middle; needs a VO take, music optional. Talking-head runs 60–90s, so raise --target-duration well above the 30s montage default.
  2. Aspect. 9:16 reel/short (default). If it isn't going out as a reel or short, ask whether they want 16:9 — a landscape YouTube cut is a different deliverable and exports one youtube.mp4 instead of the three vertical targets.
  3. Resolution. 1080 (default) or 4k — 4K for an archival or YouTube-primary master; 4K normalize/render is markedly slower.
  4. Captions. Yes or no. Talking-head reels are watched muted, so recommend yes there; transcription must happen before Gate 2, so the answer changes the plan.

Trade-offs behind each: references/project-setup.md.

If the user already settled something ("cut this to the beat", "make it landscape for YouTube"), don't re-ask — state what you're proceeding with. If they're unsure on format, ask what the reel is for: a mood piece is music-video, an explanation or opinion is talking-head.

Record all four before probing:

python3 scripts/pipeline.py init --target-duration 75 --mode talking-head \
  --aspect 9:16 --resolution 4k --captions yes

status then shows them ([talking-head · 9:16 · 4k · captions]) and adds --aspect/--resolution to the commands it emits, so the choices can't drift apart. Record them in project.md too. Proceed to Step 2 — the next three steps are the same for every combination.

Step 2 — Probe & inventory

python3 scripts/probe_clips.py raw/ --target-duration 30 --out work/clips.json

Produces work/clips.json with duration, resolution, fps, codec, rotation, and color transfer (detecting iPhone HDR/HLG and DJI D-Log) per clip. Still photos (jpg/png/webp/heic) are inventoried too and become Ken Burns clips at normalize time (--still-duration 8; for HEIC ffmpeg can't read, sips -s format jpeg first). Clips longer than 10× --target-duration are flagged as duration outliers. Don't normalize one whole — extract the usable segment (ffmpeg -ss START -to END -i clip -c copy work/extracts/name.mp4, bounds from its Step 3 sheet) and re-probe.

Summarize to the user: total clips, runtime, outliers, problem files, and which look log/HDR. Ask what story/order they have in mind if filenames don't say — filenames are hints; Step 3 verifies them.

Step 3 — Look at the footage (contact sheets)

python3 scripts/contact_sheet.py work/clips.json --outdir work/sheets

One dense frame grid per clip across its full duration (--interval 1.0 for denser). Clips run concurrently; the sampler picks decode or keyframe-seek by measured cost. View every sheet (Read the PNGs) before planning. Look for:

  • Disqualifiers: burned-in captions/lyrics, watermarks, long static stretches — and, for a montage, screen recordings. A talking-head or tutorial reel uses screen recordings on purpose (references/talking-head.md). Intermittent text is the classic trap — it appears mid-clip only and sparse sampling misses it; re-run a borderline clip at --interval 0.5.
  • The hook and the closer: the most kinetic, instantly readable moment opens the reel; the payoff/smile/CTA moment closes it. Note which clips (and roughly where in them) these live — feed them to build_cut_plan.py --hook/--close.
  • Where the action is in each clip, so in-points and pan values (Step 4) aren't guesses.

Report rejects and picks with reasons; record them in project.md and remove rejected clips from clips.json.

Then write the selects — plan/selects.json: each moment worth keeping (range, what happens, purpose, value), in story order, judged against the brief's promise; validate with selects.py check. Format: references/selects.md. Moments from earlier projects: library.py search (references/footage-library.md).

Step 4 — Normalize to mezzanine

Mixed sources can't be concatenated directly. Normalize to a uniform intermediate:

python3 scripts/normalize_clips.py work/clips.json --outdir work/mezz --profile auto

Default mezzanine: 1080x1920 (9:16), 30fps, H.264 high-bitrate, BT.709 SDR, stereo 48kHz. The script auto-crops landscape footage to center-cut vertical; pass --pan left|center|right per clip in clips.json if the subject is off-center (the contact sheets from Step 3 show you where the subject is). Camera-specific color handling (HLG→SDR tonemap, D-Log→Rec709) is applied automatically based on probe data.

--aspect and --resolution set the frame (see Step 1); pass the same values at init, here, and at render. Cropping across aspect throws away one axis — a landscape source cut to 9:16 yields only ~1215px of width and upscales to fill — so the script names each affected clip on stderr.

Still photos become Ken Burns clips here (kb: auto/in/out/left/right; in for a centred subject). D-Log conversion applies only to dlog-profile clips, never SDR (--dlog-lut official.cube for DJI's exact LUT) — references/ffmpeg-recipes.md.

Outputs are atomic (.tmp.mp4, renamed on completion), but still gate on the process exiting, not on files appearing. Slow on 4K sources — if backgrounded, wait for exit before rendering.

Step 5 — Beat detection (music-video only)

Talking-head reels skip this step entirely — cuts land on speech, not on a grid, and pipeline.py drops the stage from status in that mode. If the user wants a quiet music bed under the VO, drop the file in music/ and go straight to Step 6; no beat analysis is needed for a bed. Proceed to Step 6.

python3 scripts/detect_beats.py music/track.mp3 --out work/beats.json

Outputs BPM, beat timestamps, and detected downbeats (stronger cut candidates). No librosa? Use --bpm 120 (or the track's known BPM) for a fixed grid.

No music in music/ yet? Stop and ask the user — a file, a YouTube link (fetch_music.py, with a music-rights reminder), or a fixed --bpm grid as a last resort. Options in references/montage-cuts.md.

Step 6 — Cut plan + draft preview (⏸ HUMAN GATE 1)

Both formats produce the same artifact — plan/cut_plan.json — but reach it differently. Take the branch matching the mode from Step 1, then rejoin below.

Music video: build_cut_plan.py --selects plan/selects.json arranges the selects on the beat grid — each once, in story order — with a phase-based pacing structure deciding how many beats each holds (2-beat minimum, never longer than the moment). --score-in-points keeps only in-points that contain a person (Apple Vision, macOS) — worth it on footage with a subject, pointless on POV. Read references/montage-cuts.md for the command, the phase table, and the two known weaknesses worth checking by hand.

Talking-head: author the plan from the selects; read references/talking-head.md first. Face segments keep their true source in-points (lip-sync). The structure's defaults (references/formats.md, plan_broll.py --brief) set b-roll share and beat length. Say where the speech comes from: "vo": {"file", "start", "words"} lays the continuous take under every cut, so b-roll never drops a word; "audio": "segments" declares an intended audio edit, which then owes verify_cut.py. pipeline.py blocks a multi-clip plan with neither.

Motion graphics: Hyperframes clips (references/hyperframes.md) or, on a Resolve-mastered reel, the same title as a Fusion comp (references/fusion-titles.md) — offer both, never switch a project silently.

Long recordings: references/long-form.md (talks with slides: "Talk layout"); shortlist → user pick → three hook previews: references/shortlist-and-hooks.md.

Audit the plan's content first — python3 scripts/audit_plan.py plan/cut_plan.json --out work/plan_audit.png renders one labeled thumbnail per segment. An in-point landing on empty track or sky is dead space; check_cuts.py samples across cuts for defects, this samples within segments for content.

Then render a cheap draft and QC it before the human sees anything:

python3 scripts/render_reel.py plan/cut_plan.json --preview --out preview/draft_v1.mp4
python3 scripts/check_cuts.py plan/cut_plan.json preview/draft_v1.mp4 --out work/qc_v1

--preview renders fast at low res. check_cuts.py writes a frame-pair sheet across every cut plus a report JSON, flagging black frames, frozen cuts, and duration drift. View it and fix what it finds first. Gate 1 refuses until check_cuts has passed on that exact draft.

Present Gate 1 as plan + preview together — the readable timeline and the draft video. Record it (pipeline.py gate 1 presented), then ask which way they want to go:

  1. Approve — pipeline.py gate 1 approved (it refuses a stale draft or one without passing QC), proceed to Step 7.
  2. Describe changes — reorder, swap clips, adjust hook or pacing. Edit cut_plan.json, re-render the draft (bump versions), return to Gate 1.
  3. Fine-tune in their NLE (Final Cut / Resolve) — offer this whenever feedback turns frame-level.

Hook advice: the first 1.5–2s decides scroll-past.

Option 3 — NLE round trip. Export FCPXML, pause while they edit, re-import the cuts. Procedure and the mandatory gate 1 nle-wait rule: references/nle-round-trip.md.

Step 7 — Final render + QC (⏸ HUMAN GATE 2)

Run the render and QC that pipeline.py next emits — the grade comes from pipeline.py config grade (default gritty for montage, clean for talking-head). qa_render.py checks every frame, not just cuts: black frames, unplanned flashes, 12+ frame freezes, single-frame pops, mid-reel audio gaps, each with a contact-sheet cell to open. Run it on the master before burning captions; card entrances read as pops. Gate 2 refuses until check_cuts and qa_render pass on this master, plus verify_cut.py --out work/verify_master.json when the plan's speech comes from the segments. A SKIPPED speech check approves only with --accept-unverified "why", which is recorded.

Grades: gritty, rapha, cine, punch, clean, none, or --lut file.cube (references/ffmpeg-recipes.md). Undecided? compare_grades.py tiles the same frames under every grade — pick from the sheet. --natural-audio -18 keeps ambient clip sound under the music. Captions: gen_captions.py (review the transcript first; --animate highlight|reveal for word-by-word) — references/talking-head.md.

Talking-head: honor the Step 1 caption answer. Recommend captions (most viewers watch muted), never impose them. Time them against the final cut. The voice stays at 0 dB. A bed is the plan's music key, ducked under "vo".words (or --duck), never the voice lowered under music.

resolve_render.py (Resolve Studio) and render_moviepy.py take the same plan (references/render-engines.md); ask before switching engines. --crf 12 --audio-bitrate 320k renders an archival master.

QC the master, show it (pipeline.py gate 2 presented), and export only when they say ship it (gate 2 approved).

Step 8 — Export platform variants

python3 scripts/export_variants.py work/master.mp4 --outdir exports/ --thumb-at 1.5 \
    --thumb-text "HOOK LINE"   # optional: magazine-cover text on styled thumbnails

Produces:

  • the project aspect's deliverables (export_variants.DELIVERABLES): 9:16 and 1:1 → tiktok.mp4, ig_reels.mp4, yt_shorts.mp4, linkedin.mp4; 16:9 → youtube.mp4, linkedin.mp4 — H.264, platform-tuned bitrate/loudness (specs in references/ffmpeg-recipes.md), plus manifest.json tying them to this master
  • a compliance table per file (check_export.py): a format FAIL is mechanical — fix and re-export; a judgement FAIL (duration, aspect, fps, loudness) changes content — put it to the user
  • thumbnail.jpg at --thumb-at, plus Gemini-styled variants when a key is set (references/captions-and-gemini.md)

The user picks the cover — check styled thumbnails for face fidelity and spelling, and mention AI-imagery disclosure once per project.

Before upload, check captions against each app's UI with safe_zones.py preview (phone-size frames). With captions on, --captioned/--srt ship clean + captioned cuts and a sidecar. Offer caption + hashtags per platform (references/brand-style.md). Deliver exports/, then log the post with publish_log.py — references/publishing-feedback.md.

Batch Mode (multiple reels)

One project folder per reel: Steps 1–6 for all reels, one review sitting for every plan + preview, then render and export the approved ones.

Reference Files

  • references/creative-brief.md, references/selects.md, references/formats.md — brief fields, selects, defaults per structure. Read at Steps 1, 3, 6.
  • references/montage-cuts.md / references/talking-head.md — the two plan branches. Read for the project's mode.
  • references/long-form.md, references/shortlist-and-hooks.md — longer videos; shorts shortlisted from them.
  • references/publishing-feedback.md — safe zones, sidecars, the publishing log and comparing posts.
  • references/project-setup.md, references/state-schema.md, references/dependencies.md — layout, gates, state records, tool costs.
  • references/ffmpeg-recipes.md — camera profiles, grades, export specs, troubleshooting.
  • references/nle-round-trip.md — FCPXML round trip; read when Gate 1 feedback turns frame-level.
  • references/render-engines.md, references/hyperframes.md, references/fusion-titles.md — other engines and motion graphics.
  • references/look-match.md — match a reference reel's look by the numbers.
  • references/captions-and-gemini.md, references/brand-style.md — captions, AI copy and thumbnails, brand voice.

Principles

  • Trust pipeline.py status over memory. Record gate decisions the moment they happen.
  • Never modify or delete raw/ — including the symlink itself, which survives cleanup. Extracted segments go in work/extracts/; disposables live only under work/.
  • Never plan from metadata alone — view the contact sheets first.
  • Every creative decision surfaces to the human before an expensive render — always as something watchable, not just a text plan.
  • Gate on process exit, never on files appearing; validate outputs (ffprobe) before declaring success.
  • Prefer script defaults; drop to manual ffmpeg (references/ffmpeg-recipes.md) only when they fail.
Workspace
gamussa
Visibility
Public
Created
Last updated
Source
CLI
Repository
No repository linked. Set repository in the plugin manifest, or publish from a GitHub Action to verify it.
Badge
gamussa/reels-producer-skill badge