cut
Cuts raw talking-head footage into a clean jump cut. Takes one take or several joined (mp4 or mov, any aspect, 4K phone footage is fine), transcribes it word by word, removes retakes, false starts, fillers and dead pauses, and renders cut.mp4 at the source resolution plus words.json timed to the cut. The user approves the cut on a page with the whole transcript and every removed word struck through. Use when the user says "cut my video", "just cut it", "remove my mistakes", "cut out the retakes", "remove the pauses", "clean up this take", "jump cut this", "tighten this clip", or asks only for the cut of a raw take; start calls it for a full edit. Runs before style-edit. Not for a general request to edit a video or to make it look like a creator (that is start), not for adding captions, zooms or cards (style-edit), and not for analysing someone else's videos (creator-teardown).
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 202
- Forks
- 70
01 前言 Front Matter
- name
- cut
- license
- MIT
- description
- Cuts raw talking-head footage into a clean jump cut. Takes one take or several joined (mp4 or mov, any aspect, 4K phone footage is fine), transcribes it word by word, removes retakes, false starts, fillers and dead pauses, and renders cut.mp4 at the source resolution plus words.json timed to the cut. The user approves the cut on a page with the whole transcript and every removed word struck through. Use when the user says "cut my video", "just cut it", "remove my mistakes", "cut out the retakes", "remove the pauses", "clean up this take", "jump cut this", "tighten this clip", or asks only for the cut of a raw take; start calls it for a full edit. Runs before style-edit. Not for a general request to edit a video or to make it look like a creator (that is start), not for adding captions, zooms or cards (style-edit), and not for analysing someone else's videos (creator-teardown).
- compatibility
- Python 3.9+, ffmpeg and the venv the setup skill installs (faster-whisper). Optional ElevenLabs key or CrisperWhisper. Mac, Windows or Linux. Runs from the full ai-editor plugin folder (uses its lib/).
02 资源文件 26
- 参考文档references/editorial-rules.md2.9 KB
- 参考文档references/judge-rubric.md5.8 KB
- 参考文档references/judge.md4.0 KB
- 参考文档references/retake-detection.md6.7 KB
- 参考文档references/script.md2.1 KB
- 参考文档references/shapes.md2.5 KB
- 参考文档references/takes.md2.0 KB
- 脚本scripts/build_timeline.py39.2 KB
- 脚本scripts/hook_check.py6.3 KB
- 脚本scripts/join.py10.5 KB
- 脚本scripts/judge_cut.py29.9 KB
- 脚本scripts/mirror.py4.9 KB
- 脚本scripts/preview_cut.py7.5 KB
- 脚本scripts/read_cut.py20.0 KB
- 脚本scripts/render.py14.2 KB
- 脚本scripts/retakes.py29.7 KB
- 脚本scripts/script_match.py15.2 KB
- 脚本scripts/splice_check.py4.8 KB
- 脚本scripts/test_build_timeline.py15.7 KB
- 脚本scripts/test_media.py13.5 KB
- 脚本scripts/test_retakes.py15.4 KB
- 脚本scripts/testdata/sample-whisper.json10.3 KB
- 脚本scripts/textnorm.py6.1 KB
- 脚本scripts/transcribe.py21.1 KB
- 脚本scripts/trend.py4.2 KB
- 脚本scripts/verify_cut.py12.3 KB
03 SKILL.md 正文
Cut
Paths: ${CLAUDE_SKILL_DIR} means the folder containing this SKILL.md, and ${CLAUDE_PLUGIN_ROOT} the plugin folder two levels above it.
Read ${CLAUDE_PLUGIN_ROOT}/PRINCIPLES.md first: the rules every video in this plugin follows.
Every question goes in the question box: the AskUserQuestion tool (2-4 options, recommended first). Only in an agent without it, ask numbered questions in text.
edits/<name>/ transcript.txt (read this, never words.raw.json), spans.json (what to remove, quoted),
candidates.md (what code flagged), paper-edit.md (the cut as text), cut-check.html (the
transcript), review.json (notes), cut.mp4 + words.json (the render and its words).
<name> is a slug of the file name (IMG_1234.MOV -> img-1234), in the library
(PRINCIPLES.md "Where"). Never modify, move or copy the source file: pass its path.
PY="${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/run.py"; python3 "$PY" runs the tool venv. On Windows, use
py wherever these commands say python3.
No venv yet: run the setup skill first. S="${CLAUDE_SKILL_DIR}/scripts".
No video yet?
Ask for their take's path. Several files: references/takes.md. None: offer the sample take (raw,
vertical, retakes, false starts and pauses kept) and download it to their folder:
curl -L -o sample-take.mp4 https://github.com/nextwork-projects/ai-video-editor-cooked/releases/download/sample-video/sample-take.mp4
0. Ask: the cut first, or everything at once
Before anything else, ask one question in the question box (start decides this for a whole edit):
Do you want just the cut first, or the cut and the styled edit in one go?
- Just the cut first (Recommended). You approve the cut before I add captions, zooms or visuals, so a changed cut never rebuilds the visuals (fewer tokens).
- Everything at once. I cut, then style without waiting. You still see the cut page and the stills sheet before anything renders.
Skip it only when the user already answered ("just cut it", "cut and style it in one go") or start or clips called this skill. Just the cut first: steps 1-6, then stop until the user approves the cut and asks for the style. Everything at once: steps 1-5, open the cut page, go straight on to style-edit; a later cut change re-runs style-edit from its plan step.
0b. Read the user's taste
python3 "${CLAUDE_PLUGIN_ROOT}/skills/taste/scripts/taste.py" show --edit edits/<name>
Follow every rule in it. Save a reaction to a result ("too slow") with the taste skill before redoing.
1. Transcribe
python3 "$PY" "$S/transcribe.py" <source> edits/<name>/words.raw.json [--script <their script>]
A script (or --keyterm Name, repeatable) gets names and jargon right (+20% on Scribe).
Say the time first: Whisper 1-4 min for a 3-min take, CrisperWhisper about the take's length. It picks
Scribe when a key is saved, else CrisperWhisper if installed, else the free local Whisper (--engine whisper|crisper|scribe overrides), which drops
some ums and false starts. With neither, say once that
setup can add one (CrisperWhisper's weights are non-commercial only). Never download a model mid-edit: a
re-check needing one not installed (exit 4) is skipped and said in the round's note.
Never read words.raw.json: step 2 writes transcript.txt, 1/12 the size.
2. Decide what to cut
python3 "$S/retakes.py" propose edits/<name>
Code finds every possible cut (a repeated line, an unfinished sentence, "wait, sorry", fillers)
into candidates.md. Each is a place to look, not a decision. Read transcript.txt and
candidates.md, follow references/retake-detection.md, and write spans.json
(references/shapes.md).
With a script.md: python3 "$S/script_match.py" edits/<name>, read script-match.md (references/script.md).
Last take wins, except alternate hooks. Never type a timestamp or span a pause.
Only if the user wants it shorter (or their taste says to run the editorial pass), also read references/editorial-rules.md and add redundant
cuts (content calls).
A misheard name is one command, never a JSON rewrite: python3 "$S/retakes.py" fix edits/<name> cloud=Claude jiv=Jev (whole words, kept in fixes.json for the captions).
3. Build
python3 "$S/build_timeline.py" <source> edits/<name> && python3 "$PY" "$S/mirror.py" <source> edits/<name>
Pauses over 0.15 s (wide 0.30) shrink to 2/3, not keep.json/beats.json (editorial-rules.md);
music: word gaps only. A build ERROR writes nothing: fix the span, rerun.
mirror.py says mirrored when a book, shirt or sign reads backwards (a front-camera take): ask once,
Keep it as shot (Recommended) (most creators post it that way) / Flip it so the text reads; on a
flip add --flip to every render.py below.
In one message, start the spans encoding in the background (run_in_background) and the paper
checks; step 4 then encodes only what changed:
python3 "$S/render.py" <source> edits/<name> --segments-only
The cut-judge agent grades paper-edit.md (a flub left in, a bad join, a good line lost) and
fixes spans.json. Readers for takes over 5 min
go first, the judge after: references/judge.md. Never read paper-edit.md yourself.
CLIPPEDinpaper-edit.md: a pause cut ate a word. Raise--pad. Still there: a label is off.- Joins inside speech move to a quiet frame. Any
still in speech: listen in step 5.
4-5. Render and verify
Foreground (render.py waits for the background encode):
R="${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/review.py"
python3 "$S/build_timeline.py" <source> edits/<name> && \
python3 "$S/render.py" <source> edits/<name> && \
python3 "$PY" "$S/verify_cut.py" edits/<name> --engine <same engine as step 1> && \
python3 "$S/preview_cut.py" edits/<name> --no-open && \
python3 "$R" edits/<name> start --video edits/<name>/cut.mp4 --stage cut --transcript edits/<name>/words.json
Verify clean: the cut page is ready. Verify diffs the cut's transcript with the kept words (exit 1 stops the chain):
- MISSING: a kept word is not in the render. Raise
--pad(or narrow the span), rebuild, re-render. - SURVIVED: a span to add for a real repeat or stumble, never one that cuts a kept line.
- HEARD DIFFERENTLY ("jev -> jeff") and filler notes are transcriber variance: no rebuild.
- DOUBLED: words said twice in a row. Natural ("very, very"): keep. A stumble: add its span.
- N join(s) in speech: listen. Clipped:
splice_check.py edits/<name> --fix, re-render.
One fix cycle (the same chain), then show the user what is left.
6. The user approves
The chain opened the review page (../style-edit/references/review.md). serve and wait in the
background. Say the seconds cut. Notes: "keep <line>": narrow or delete that span; "cut <line>": add one; pauses
off: --max-pause. Then steps 4-5, resolve each note (--reply: what changed), last
round --video edits/<name>/cut.mp4 (never a second start), then ask any learn question.
After approval, one Bash call: python3 "$S/trend.py" log edits/<name> (tally: trend), the hook check. Then hook variants if hooks.json exists (references/retake-detection.md); called by start, ask that in the same question box as style-edit's stills approval, not before it.
Only approval finishes the cut; cut.mp4, words.json go to style-edit. On "just the
cut first", say they can ask for the style. Never start style-edit on your own. Called by start: as
the page opens, start visual-prep in the background; its motion_briefs: a background
clip-builder each at once; say a motion_note once.
If a script stops
| message | do |
|---|---|
no such file / ffmpeg could not read audio |
ask for the right path; never copy or convert the source |
faster-whisper missing / CrisperWhisper missing |
run with python3 "$PY", or the setup skill's step 3 |
no ElevenLabs key (exit 2) / HTTP 4xx, unreachable (3) |
drop --engine scribe, or re-save the key with the setup skill |
build ERROR on a quote |
fix that span's quote or add occurrence, build again |
cannot derive a silence threshold / marked no silence |
speech and background are under 10 dB apart: ffmpeg -i <source> -af volumedetect -vn -f null -, pass --noise about 10 dB above the mean |
render ERROR ... |
say it; re-run render once |
Rules
- Every cut quotes the transcript. No quote, no cut.
- A script breaks ties between takes and keeps every take of a line it says twice. Nothing is cut for being off-script.
- Never stream-copy (
-c copy) across cuts: it lands up to 2 s off. - Never hand over a render that has not been verified and approved.
Self-check
test_build_timeline.py, test_retakes.py, test_media.py (ffmpeg); demo on transcribe.py, trend.py, splice_check.py, script_match.py, mirror.py.
04 同仓库更多 Skills
creator-teardown
Reverse-engineers a short-form creator's video format from their real numbers. Pulls a TikTok or YouTube Shorts profile (or pasted links, Instagram reels too) with view, like and save counts, transcribes the top videos word for word, measures pace, pauses and fillers, maps each video into timed beats, and writes a teardown.md someone can film from, a teardown.html page of their graphics, motion and sound, and the style.json the ai-editor plugin edits from (on its own it can write an edit plan as a table and .srt). Use when the user wants to analyse, break down or study a creator ("analyse @handle", "tear down @handle", "teardown of @handle", "break down this creator", "what makes this creator's videos work"), pastes TikTok, YouTube or Instagram links and asks what the pattern is, or asks to set up creator-teardown. Not for editing the user's own video like a creator when ai-editor is installed (its start skill), not for researching a topic, and not for cutting raw footage.
update
Updates cooked. to its newest version. Works out how it was installed and does the right thing for each. The official plugin from the marketplace gets the plugin update commands for ai-editor and creator-teardown. A fork the user owns (the power-user route, where they change the editor's own code) gets its new versions pulled from nextwork-projects/ai-video-editor-cooked and merged with their changes kept, after a backup branch, then the fast self-checks, with a rollback if they fail. A plain clone gets the fork route in three steps. Use when the user says "update the editor", "get the latest version", "sync my fork", "pull the new version", or asks how to stay up to date after changing the editor's code. Not for changing a style or a setting (that is taste or the home page), and not for maintainers turning feedback into fixes (that is improve).
trial-reels
Makes Instagram Trial Reels of a reel the user already made or posted. A trial reel is a re-cut of the same take, never the posted file again. Names the video's type first (story, list or pitch), because that decides what may change, then makes 2-4 versions that each look like a different video at a glance (their own hook, start point, opening, overlays, caption look and sound), every element inside the Reels safe zone, all in the user's own style. Each version goes on the review page as a trial, and only the ones the user names are posted as Trial Reels through post.py, spread over the day. Use when the user says "trial reels", "make trial reels of this", "a few more versions of this reel", "post the trial reels", "test other hooks on this", presses Make on the review page's Trial reels tab, or `wait` prints TRIALS. Not the main edit of a new video (start, cut, style-edit), not clips from a long video (clips).
taste
Remembers how the user likes their videos edited, so they never give the same correction twice. Saves every correction or preference about an edit (the cut, captions, visuals, sound, layout) into ~/.ai-video-editor/taste.md as a plain rule, and into taste.json when it maps to a setting the scripts read (pause length, fillers, caption size, words per caption, zooms, sound, layout), deduplicated, scoped to every video or just this one, and counted when applied; one that would help everyone goes to the maintainers. Every other cooked. skill reads both before it starts. Use whenever the user reacts to an edit ("too slow", "captions are too small", "fewer zooms", "I hate the whoosh", "that's perfect, keep it like that"), and when they ask "what do you know about my taste", "show my settings", "forget that rule" or "are you learning". Also learns how they cut from a raw take and their posted version ("I already edit by hand", "learn from my edit"). Not for a finished video's notes as a batch (skill-improver).
style-edit
Turns an approved cut into the finished video in a creator's measured style. Takes cut.mp4 from the cut skill plus a style.json (from start or creator-teardown), plans captions and zooms to match the creator, adds visuals timed to the spoken word (the user's own images, real screenshots, posts and logos of what is named, the line marked on the real page; no type cards, stock icons or emoji), shows the stills on the review page for approval, then renders 9:16 or 16:9 with Remotion on the laptop, Modal, GitHub Actions or the user's AWS Lambda, and can export the edit to Final Cut, Premiere, Resolve or CapCut. Use when a cut already exists and the user says "style it", "now add the style", "add captions and zooms", "add my images to the video", "render the edit", "change the captions", "export to Final Cut" or "send it to Premiere". Not for a raw take or a first request to edit a video like a creator (that is start), not for cutting mistakes out (cut), and not for measuring a creator (creator-teardown).
start
The front door of cooked. Takes the user's video and a few multiple-choice answers (platform, creators to copy and what to take from each, audience, brand kit, own photos, names, what to avoid, captions, sound), saves them once to a profile, then runs the whole edit in order (setup if a tool is missing, creator-teardown for a new creator, cut, style-edit) so the user only drops a video, answers, approves the cut and approves the stills. Use when the user says "edit my video", "edit this like @creator", "make my video look like @creator", "make this look like <creator>'s videos", "I want my videos edited", "start", "new video", drops a video file or pastes any link (video, Drive or Dropbox share, creator profile, website, podcast) with no other instruction, or asks how to use the editor. Not for one step named on its own (only cutting is cut, only analysing a creator is creator-teardown, a correction is taste, styling an existing cut is style-edit).