사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/nextwork-projects/ai-video-editor-cooked --skill cut시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
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.mp40. 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>Every pause (breaths too) over --max-pause (0.15 s) becomes 0.10 s; under music only word gaps are trimmed. A build ERROR writes nothing: fix that span and run it again.
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-onlyThe 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.jsonVerify 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.


