Director pass
An agentic, vision-driven final QA/repair pass — a Claude "director" WATCHES the finished short (a contact sheet of frames sampled across the whole clip + the transcript + the sidecar plans) and decides, in natural language, what is broken ANYWHERE (cold open, dead/rambling tail, a tonally-wrong b-roll match, a wrong-person punch-in, mistimed captions, a too-hot music bed, a flat hook) — not just the cold open, not just a fixed route vocabulary. It then APPLIES the fixes it can from a bounded, pixel-safe set (tail_trim via cut-clip; music_down via a bg-music re-mix) and SURFACES everything else as an honest edit list, re-reviewing up to DIRECTOR_MAX_ITERS times. Layered ON TOP of grade-clip (the cheap proxy floor) + fix-cold-open (the closed-vocab cold-open repair). NON-FATAL, idempotent (.dpmeta). Two modes — preventive in-chain (the pre-mix .ctaed.mp4 + clip_NN.* sidecars are co-located, so music_down can re-mix) and curative standalone/backlog (a finished output clip → tail_trim only, everything else surfaced — never fabricate a baked-in repair).From its SKILL.md
npx -y skills add jperrello/C0BALT_CUT --skill director-passAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.7 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it
director-pass
The expensive open-ended per-clip quality loop the deterministic grade→route suite (grade-clip + fix-cold-open) is the cheap floor under. grade-clip scores a closed set of pre-enumerated proxy signals and fix-cold-open repairs only the cold-open routes it knows; director-pass has a model actually WATCH the delivered short and judge it like a strict editor — catching the long tail of "this just feels off" issues a human would fix, anywhere in the clip, in natural language. It binds that open-ended judgment to a BOUNDED applier so it stays safe, bounded, and non-destructive.
Usage
director-pass.sh <clip.mp4> [--pane <tmux>] # single / in-chain (runs after speed-up, before save-local)
director-pass.sh --backlog [output_dir] # sweep output/<src>/*.mp4 -> output/_director.json
- Writes
<clip-stem>.director.json(the edit-list report) and, only when a fix actually changed pixels,<clip-stem>.dir.mp4(the repaired clip). --paneroutes the vision call through a long-lived Claude tmux pane (same path asverify-bookends/broll-pick); without it,claude -p.
How it works (per clip, looped up to DIRECTOR_MAX_ITERS)
- Watch —
frames.pysamplesDIRECTOR_FRAMES(12) frames evenly across the whole clip and composes ONE labelled contact sheet (4-col grid, each cell stamped with its timestamp). The burned captions, b-roll, framing, title/end cards are all visible — the reviewer judges what it sees. - Review —
build_prompt.pyassembles the sheet + the spoken script (scaled into finished-clip time, since the clip is sped 1.25× while the sidecars are pre-speed) + the fill-shot kinds, b-roll windows, cadence, title, mood, and anygrade.jsonsignals into one prompt. ONE Claude vision call returns a structured edit list. - Validate —
parse_reply.py normalizeextracts the JSON (tolerates fences/prose), clamps everywhere, and validates each op against the SUPPORTED set; anything unsupported or out-of-range is downgraded tosurface. - Apply — the bounded applier runs the validated ops (music re-mix first, then tail trim), re-invoking existing atomic skills.
- Re-review — with
DIRECTOR_MAX_ITERS>1, re-watch the repaired clip and repeat until the reviewer saysshipor an iteration applies nothing.
The bounded applier (the safety boundary)
The review is open-ended; the APPLIER is a closed, pixel-safe vocabulary so the pass can never corrupt a clip. Everything else the reviewer flags is recorded in surfaced[] (for a human / a pipeline re-run), never auto-applied.
| op | when the reviewer picks it | how it's applied | mode |
|---|---|---|---|
tail_trim {t1} | the clip rambles/dies after the payoff | cut-clip to [0,t1] (frame-accurate) + re-fire end-card so the new tail lands on the CTA beat | both (PIXEL-SAFE: trimming the end never desyncs anything earlier) |
music_down {volume} | the bed drowns the speech | re-run bg-music on the pre-mix .ctaed.mp4 at the lower volume → end-card → speed-up (reproduces the phase-4 tail, same timeline, quieter bed) | preventive only (needs .ctaed.mp4; curative → surfaced) |
surface | cold-open defect, bad b-roll, wrong-person punch, mistimed caption, flat hook, anything else | NO pixel change — recorded with its where + rerun_recommended | both |
cold_open / broll_wrong / wrong_person / caption_mistime are surfaced (with rerun_recommended) rather than faked: their clean repair lives upstream of the whole finishing chain (b-roll re-composite, fill-vertical re-punch) — the preventive in-chain fix-cold-open already owns the cold-open routes earlier in the pipe, and re-deriving the rest from a finished clip would mean re-running the entire back half. director-pass is honest about that boundary instead of shipping a degraded re-crop.
Report — <clip-stem>.director.json
{
"clip": "...", "mode": "preventive|curative", "iterations": 1,
"verdict": "ship|revise|revised|disabled",
"summary": "<one-line director read>",
"applied": [{"op":"tail_trim","t1":26.0,"result":"..."}],
"surfaced": [{"op":"surface","kind":"cold_open","where":[0.0,1.9],"detail":"...","rerun_recommended":true}],
"output": "<clip>.dir.mp4 | <unchanged input>",
"rerun_recommended": false
}
Backlog aggregate output/_director.json: {generated, n, revised:[{clip,applied}], surfaced:[{clip,issues}], clean:[clips]}.
Knobs
DIRECTOR_PASS(1) —0disables (passthrough report, no review).DIRECTOR_MAX_ITERS(1) — review→apply rounds per clip.DIRECTOR_FRAMES(12) — frames sampled into the contact sheet.DIRECTOR_MIN_DUR(15) — atail_trimmay never leave the clip shorter than this.DIRECTOR_BED_VOL(0.17) — the current bg-music bed volumemusic_downproposes a reduction from.DIRECTOR_MODE(auto) — forcepreventive|curative.DIRECTOR_REPLY_FILE— test seam: a canned reply file stands in for the live model (offline proof of the applier).
Guarantees
- NON-FATAL — missing input/sidecars, an unreadable clip, a failed sub-skill, or a malformed/empty review → input untouched, a
ship/disabledreport, exit 0. - No fabrication — never writes
.dir.mp4unless an op actually changed pixels; never fakes a repair it lacks the source artifacts to do cleanly (those are surfaced asrerun_recommended). - Idempotent —
.dpmetaover the clip + consumed-sidecar mtimes + knobs → a 2nd run is a cache hit. - Owns only its dir — re-fires existing skills (
cut-clip,end-card,bg-music,speed-up) by their published.shcontracts; never edits them.
What ships with it: 4 files
29.1 KB alongside SKILL.md, 4 of them executable
- build_prompt.pyruns7.6 KB
- director-pass.shruns13.0 KB
- frames.pyruns3.2 KB
- parse_reply.pyruns5.3 KB
Gives 0 of the 12 instructions most context ai engineering skills give in ~1.5k tokens
Counted across 1,193 of the 1,976 authors here whose files we hold, read 2026-08-07
- Dispatch a fresh implementer subagent per taskin 48 of 1193, across 19 files
- Dispatch a final code reviewer after all tasksin 33 of 1193, across 8 files
- Provide full task text to the subagentin 30 of 1193, across 9 files
- Review spec compliance before code qualityin 27 of 1193, across 10 files
- Make the hook script executablein 26 of 1193, across 8 files
- Re-snapshot after navigation or DOM changesin 25 of 1193, across 19 files
- Read files before editing themin 22 of 1193, across 11 files
- Answer subagent questions before proceedingin 22 of 1193, across 7 files
- Mark task complete in TodoWrite after approvalin 22 of 1193, across 6 files
- Merge hook into existing settingsin 21 of 1193, across 3 files
- Ask if installation is global or projectin 20 of 1193, across 2 files
- Copy the hook script to target locationin 20 of 1193, across 2 files
Said here and by no other author read
- loop review and apply up to DIRECTOR_MAX_ITERS
- sample DIRECTOR_FRAMES frames into one contact sheet
- assemble the sheet transcript and sidecars into one prompt
- return a structured edit list from the review
- extract and clamp every where field
- validate each op against the supported set
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.