broll-cleanup
Runs ONCE at the end of a whole pipeline run, after every short is saved. Takes
one or more broll_plan.json paths, unions their ingested_video_ids, and for
each: mcptube remove <id> plus deletes that plan's local broll/*.mp4 cache.
Scope is strict: only the B-roll source videos this run added to mcptube (tracked
via ingested_video_ids) are evicted — never the podcast source or pre-existing
library videos. broll_plan.json itself is left intact so editors keep the
per-cutaway placement + source metadata after the heavy mp4 cache is gone.
Invoke
.claude/skills/broll-cleanup/broll-cleanup.sh <broll_plan.json> [<broll_plan.json> ...]
Typically called with a glob over the run's plans, e.g.
broll-cleanup.sh work/<id>/short_*/broll_plan.json.
Env
MCPTUBE_BIN— override mcptube path.
Behavior
- Dedups video_ids across all supplied plans (one
mcptube removeper id). - A
removethat fails (id already gone) is logged, not fatal. - Deletes each pick's
clip_pathand any straggler*.mp4in thebroll/dir. - Never edits or deletes
broll_plan.json.