/edit-kit:edit-deflubfrom edit-kit
Remove flubbed takes from already-filed raw footage, keeping every deliberate pause, then render the cut on Lambda and transcribe it. Flubs are marked at capture time by a clap. Trigger when the user wants to de-flub, clean up raw takes, remove bad takes or false starts, or run step 1 of the video edit pipeline.
Ships in edit-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn already-filed raw footage into a review cut with the flubbed takes removed and every deliberate pause intact, plus a transcript of the result.
This is transformation step 1. It does not tighten pauses, add captions, zoom, crop, or cut the ad — those are later steps.
Design: aiprocesspros/docs/superpowers/specs/2026-09-04-video-deflub-design.md.
Footage is already filed at <piece>/footage/. Ingest and filing are a live judgment
call about campaign membership and are done conversationally, not by this skill.
Clap, then restart the line from its first word.
Everything from the start of the botched attempt through the clap is removed; the retry that follows is the keeper. If a clip contains no claps this skill reports that and stops — it does not guess.
cd ~/services/compound-remotion/deflub
# 1. ALWAYS probe first. Orientation cannot be inferred.
python3 deflub.py <piece-folder> --probe
# 2. LOOK at the frames it wrote, then run with the confirmed orientation
python3 deflub.py <piece-folder> --transpose=transpose=2
python3 deflub.py <piece-folder> --no-transpose
# Mixed folders: orientation is settled PER CLIP, and the per-stem value wins.
# One flag for a folder holding both an iPhone .MOV and a DSLR .MP4 renders
# half the run sideways.
python3 deflub.py <piece-folder> --no-transpose --transpose P1030368=transpose=2
Never infer orientation from metadata or pixel dimensions. Both traps appeared in a single shoot on 2026-09-04:
.MOV — 3840×2160 carrying a −90 display matrix that ffmpeg applies itself.
Decodes portrait. Needs no filter..MP4 — 1920×1080 shot on a physically rotated camera that wrote no rotation
metadata at all: no side data, no rotate tag, DAR reports 16:9. Decodes sideways,
needs transpose=2. Nothing in the container reveals this.Generalising from the first produced three sideways renders that had to be redone. The
tool refuses to run until every clip in the run has an orientation — and it names the
clips it has none for. --transpose STEM=transpose=2 (repeatable, STEM=none for "no
rotation") scopes the decision to one master and beats the global flag.
SpeechEdit composition. The ripple happens in the composition,
so a cut change is a props change.edits.md stub
beside the video.<piece>/footage/_selects/<stem>/
├── <stem>_deflubbed-v1.mp4
├── <stem>_transcript.md
└── edits.md
DYLD_LIBRARY_PATH set to its own
directory; deflub/ffmpeg.py handles this.https://s3... url, not s3://. List the bucket by prefix and take the newest key —
a wrapper that grepped for s3:// aborted three runs, each after a paid render._build/claps-<stem>.json so a miss comes with the data to retune.The transcript is the check. It is produced from the rendered file by a pass that knows nothing about what was supposed to be removed, so a surviving flub or an eaten line shows up plainly. Skim it before moving to the next pipeline step.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub superwebpros/claude-skills --plugin edit-kit