← ClaudeAtlas

fix-cold-openlisted

Deterministic, grade.json-routed repair of a short's cold open (the first ~2s swipe gate). Reads a clip's grade.json fix_routes and runs gated ops in order — broll_open_truncate (drop any b-roll cutaway overlapping [0,FIXCO_OPEN_GUARD_SEC] and re-composite so frame 1 is the speaker), shot0_repunch (re-run fill-vertical face detection on the 16:9 source when fillplan shot0.kind != face), credit_rerender / card_rerender (re-fire brand-overlays / title-transition). Two modes — PREVENTIVE in-chain (the 16:9 source + .vert.fillplan.json + .broll_plan.json all live in work/<id>/, so every op is clean) and CURATIVE standalone (a finished output clip whose defect is baked into pixels with no recoverable source → emits rerun_recommended, NEVER a fake degraded re-crop). NON-FATAL — any error leaves the input untouched and exits 0. Idempotent (.fixmeta).
jperrello/C0BALT_CUT · ★ 2 · AI & Automation · score 65
Install: claude install-skill jperrello/C0BALT_CUT
# fix-cold-open Deduction-targeted repair of the cold-open swipe-gate defect, driven by `grade-clip`'s `grade.json`. The single highest-ROI move on the backlog: converts a `face_withheld` / cold-open-b-roll FIXABLE clip to uploadable without a 30-step re-pipe. ## Usage ```bash fix-cold-open.sh <clip.mp4> [grade.json] ``` - `grade.json` is auto-found if omitted: `<clip>.grade.json`, then (for in-chain `clip_NN.*` inputs) `clip_NN.final.grade.json` / `clip_NN.grade.json`. - Reads `grade.json`'s `fix_routes` (the EXACT vocabulary from `SELECTION-SUITE-CONTRACT.md`) and dispatches the gated ops. - Writes a repaired `.mp4` only when an op actually changed pixels, a `.fixmeta` signature, and a `<clip>.fix.json` report: `{mode, ran:[routes], skipped:[{route,reason}], output, rerun_recommended:bool}`. ## Modes (`FIXCO_MODE=preventive|curative`, default `auto`) **PREVENTIVE (in-chain, primary deliverable)** — runs on `clip_NN.broll.mp4` / `.brolled.mp4` where the 16:9 source (`clip_NN.src16.path`), `.vert.fillplan.json`, `.broll_plan.json`, and the clean pre-b-roll vertical (`.sw.mp4` / `.zoom.mp4` / `.jc.mp4` / `.vert.mp4`) all live in `work/<id>/`. Here every op is clean. Output: `clip_NN.fixed.mp4`. **CURATIVE (standalone backlog)** — a finished `output/<src>/x.mp4` usually has NO co-located sidecars and the face is already BAKED into pixels inside a b-roll cutaway. It cannot be recovered without the 16:9 source. When the source/plans are NOT co-located, fix-cold-open emits