Communitygithub.com

video-edit

AI video editor for vertical Reels, TikTok and YouTube Shorts, on ffmpeg. Takes the take from seedance-video and the scenario with its song from creative-director, assembles the reel from a JSON spec, then checks the finished file: opening, song entry and cuts against the scenario, captions in the safe zone and off faces, even loudness, 1080x1920. Writes the post captions and first comment by the project's profile and hands over a final folder. Also: a cartoon on a TV screen, singer lip-sync to your recording, style cards from a sample, trims, cut counting, beat grid; local and free. Use when the user says "edit my reel", "put the song under the take", "check the video before I post it", "make it 1080", "the line is too quiet", "the caption covers a face", "put the cartoon on the TV", "sync the singer to our track", "edit it like this sample", "trim it", "insert a clip", "how many cuts are in this video". Not for: shooting takes (seedance-video), ideas, scenarios and songs (creative-di

What is video-edit?

video-edit is a Claude Code agent skill that aI video editor for vertical Reels, TikTok and YouTube Shorts, on ffmpeg. Takes the take from seedance-video and the scenario with its song from creative-director, assembles the reel from a JSON spec, then checks the finished file: opening, song entry and cuts against the scenario, captions in the safe zone and off faces, even loudness, 1080x1920. Writes the post captions and first comment by the project's profile and hands over a final folder. Also: a cartoon on a TV screen, singer lip-sync to your recording, style cards from a sample, trims, cut counting, beat grid; local and free. Use when the user says "edit my reel", "put the song under the take", "check the video before I post it", "make it 1080", "the line is too quiet", "the caption covers a face", "put the cartoon on the TV", "sync the singer to our track", "edit it like this sample", "trim it", "insert a clip", "how many cuts are in this video". Not for: shooting takes (seedance-video), ideas, scenarios and songs (creative-di.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Vitali2011/video-edit-skill/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Assemble a reel

You are the editor. From an accepted take and a finished song you assemble the reel, check the finished file and hand the user a final/ folder. What the reel is about and whether it reads were decided before you: the scenario, the song and the captions came from creative-director, the take was accepted by seedance-video. You do not re-judge the story or the take. The project's rules (its CLAUDE.md and profile) outrank this file.

One road, five steps in a row. Every step ends in a check: passed — next step; failed — fix by the step's table and repeat; what editing cannot fix goes back to the skill the FAIL line names. A reel with a FAIL does not go to the user: a refusal written down as an "open question" is one the user later finds in the finished reel.

The script, ve below: uv run --no-project --python 3.12 --with numpy --with scipy --with pillow --with librosa --with pyobjc-framework-Vision python ${CLAUDE_SKILL_DIR}/scripts/ve.py <command>. The spec format is at the top of scripts/ve.py. The reel folder <reel>/: the two hand-off files, edit/ (the spec and drafts), final/ (what the user gets).

Not on a Mac? pyobjc-framework-Vision installs only on macOS: drop that --with on Linux and Windows. There is no fallback face detector, so intake stops when it has to place a top caption over the heads, and every caption row of check and finish FAILs ("no face detector"): a gate that cannot be measured is not a pass. render, view, cuts and beats work everywhere. Caption fonts fall back to DejaVu on Linux; name an emoji font in the spec's fonts.emoji if you need one.

If a sibling skill is missing: creative-director — https://github.com/Vitali2011/video-creative-director-skill, seedance-video — https://github.com/Vitali2011/seedance-video-skill. Install them side by side in ~/.claude/skills/.

A rare task has its own file; open it only when the request is exactly that:

RequestFile
A cartoon on the TV screen in a room takereferences/screen-insert.md
A singer in frame sings your song, the lips miss our recordingreferences/singer-sync.md
"Edit it like this sample"references/style-card.md
Trim, insert a piece, lay a sound — without hand-offs from the two skillsreferences/operations.md

Asked only to check a finished reel — ve check <spec from ve intake> --video <file>, rows as in step 2. Asked to count the cuts and shots of any video (ours, a take, a competitor's hit) — ve cuts <file> [--sheet <sheet.jpg>] [--json]. Asked for the beat grid of a song — ve beats <song> [--bpm N].

Copy the checklist into your answer and tick the steps:

- [ ] 1 Intake: ve intake — READY for step 2
- [ ] 2 Draft: ve render, ve check --sheet — READY, frame sheet looked at → draft to the user
- [ ] 3 1080: ve finish — READY → reel to the user
- [ ] 4 Post captions and first comment → to the user
- [ ] 5 Hand-over: ve final — READY to hand over

1. Intake

In: <reel>/handoff-cd.json from creative-director and <reel>/handoff-sv.json from seedance-video; fields — references/handoff.md. Command: ve intake <reel>/. Out: <reel>/edit/spec.json — the opening line if the scenario has one (opening: null — the song opens the reel), the song from its own start at second song.enters_at, an optional hero's line in a pause of the song (the seconds of both always come from the take's hand-off, opening_in_take and line_in_take, and are not written into the spec), captions at the scenario's seconds, the take's hum filter and the take's frame rate (a whole 24, 25 or 30; anything else becomes 24). The script places a top caption just above the highest head under it; where there is no room above it inside the safe zone (a close-up, a hat), under the face.

A repeated intake of the same hand-off keeps the spec with your edits; when the hand-off changed, the old spec goes to spec.old-N.json and the script prints what changed.

Intake lays the take's voice over the song at once and prints the line's level — the same numbers the render will set: is it heard. It does not lower the music under it. So a reshoot or another pause in the song is decided before the edit, not after it.

Passed: the last line is READY for step 2. Failed: every FAIL line names the skill and the field — a field that is missing, a field the script does not know, sung words under a line, a line with no voice in the take or quieter than the music, a line without a subtitle, captions with a hole, more than two at once, faster than reading or shorter than reading aloud, an opening line later than 3 seconds, a song that ends 1 s or more before the reel, or an ending without the phrase post.send_call on the last plate. A song that ends less than 1 s early (the take is rounded up): intake sets the reel's end to the song's last frame and says how much picture it drops; if a sung word falls into the closing fade of that end — FAIL the cut song ends on a sung word: creative-director cuts the song with a tail. The work goes back to that skill: what you write in its place drifts from the scenario. Write nothing next to the take — it may become the input of a continuation.

2. Draft

In: <reel>/edit/spec.json. Commands: ve render <reel>/edit/spec.json (480×854, seconds), then ve check <reel>/edit/spec.json --sheet. Out: the draft edit/reel-v1.mp4 and its frame sheet next to it. Every version gets its own out in the spec (reel-v2.mp4): render replaces a file of the same name.

The script sets the reel's loudness and the line's level itself; the spec has no knobs for them. It lifts the line until the voice is heard over the music and leaves the music under it alone (the music does not dip under a line); a lift that is not enough is a WARN row. The song's level over the reel comes only from the scenario's song.level (a volume knob turned up in frame — the song really gets louder from that second); it is not written into the spec, and an edit of it in the spec is a FAIL. In the spec you edit the captions (text, time, y, and x for a thought), the reel's end with its fade_out, and take_quiet — the take's noise lowered where nobody speaks.

Passed: the last line is READY, and the frame sheet was looked at by references/eye-check.md. Show the draft to the user (the file, and one line: what it is). Failed — fix by the FAIL row, render and check again:

FAILWhat to do
caption «…» — outside the safe zone, on a face, or too small to read on a phoneCut the line into short pieces along the singing or into two captions one after another, or move it: y, and x beside the head for a thought. Do not shrink the font: a plate smaller than 22 cannot be read on a phone.
a caption on screen all the timeThe next caption starts where the previous one ended; at most two at once; give one that is too fast or too short more seconds or fewer words: a plate, a question and a thought hold as long as reading them aloud, plus 1 s
the spec stands on the current hand-offve intake <reel>/ again: the hand-off changed, or the spec has no mark of it
the scenario's opening is in the spec, the scenario's line is in the spec, the line's seconds come from the hand-offPut the line back into lines without seconds of your own: they come from opening_in_take and line_in_take; wrong seconds — sv handoff, then ve intake
line «…» in the song's pauseNot fixed here. The line's seconds are wrong — seedance-video, sv handoff … --line-at T0-T1; the voice really is over the singing — creative-director, step 5. Then ve intake
line «…» audibleThe voice is quieter than the music, the line is not heard; not fixed here: creative-director gives a quieter pause, or seedance-video reshoots the line louder
the end does not cut a sung wordA shorter fade_out, so it starts after the word, or end on the breath before the word
the song plays to the endFAIL — the song ends 1 s or more before the reel. creative-director cuts the song to the reel's length — an instrumental ending of the same song, joined on the beat; or the reel ends with the song: end, a shorter keep. FAIL the cut song ends on a sung word — less than 1 s, but a word sounds in the closing fade: the song is cut with a tail (cut_song.py with an instrumental ending of the same song). WARN — less than 1 s: set the end the row names (a fresh intake sets it itself)
line «…» has its subtitleEvery line — the opening and the hero's — has a subtitle: captions of kind line (or bare if a sample's style says so) over its seconds, with all its words (two captions in a row are fine); a row with "♪" is sung and does not count (in our tests an opening once went out with no subtitle). The row says what is missing: the caption or the words — creative-director; the hand-off has the subtitle but the spec lost it — bring it back from handoff-cd.json (a repeated intake keeps an edited spec)
the spec's fps is the take'sThe spec's rate differs from the take's: the render drops or repeats frames. Set the take's fps (intake does it; a spec kept by a repeated intake keeps the old number)
a voice in the first 3 sNot fixed here: the opening's voice is late or not heard — the seconds are wrong: seedance-video, sv handoff; the person in the take is silent — reshoot the take
the song's level comes from the hand-offThe song's level over the reel is only the scenario's song.level: remove level from the spec; another level — creative-director, then ve intake
the song comes in on time and on soundThe song's second is only the scenario's song.enters_at: the sung lines' captions and the line's pause were counted from it, so songs[0].at is not moved by hand; moved — put back the number song.enters_at (a repeated ve intake leaves an edited spec as it is). The song comes in within 0.5 s after the end of the opening's voice in the take, and when it is switched on by a touch in frame (song.cue) — 0.5–1 s after the touch, up to 1.5 s after the voice; a gap means the scenario and the take put the line's end in different places: the take's seconds are wrong — seedance-video, sv handoff; the plan is wrong — creative-director (opening.end, enters_at and the captions together). Silence at the start of the song itself — back to creative-director. With song.level the song at its entry, as heard, must be louder than the take's sound there and than −40 dB: a knob lifts a quiet song, it does not bring it in unheard — creative-director starts song.level higher
sound from the first frame, no silenceA pause between the words of a line does not count as silence. Silence before the voice, or between the line and the song — the line's seconds (seedance-video) or enters_at (creative-director)
the end card names whom to send it toThe last plate carries the ending phrase post.send_call word for word. The plate's text comes from the project's profile through the scenario: back to creative-director, do not write your own words
file, loudnessA build error, not a spec error: extend ve.py with a test (last section)

A WARN row does not stop the road; retell each one to the user at hand-over in your own words. WARN line «…» audible — the voice is 0 to 6 dB over the music: the subtitle carries the words; a quieter pause only comes from creative-director (step 5). WARN shots as the scenario plans — the reel has not as many cuts as the scenario has shots. A planned cut the detector missed (after a blur) the script looks for near its second itself and calls it confirmed — how, in references/final-check.md. A difference left — open the sheet <reel>.cuts.jpg (the frame before and the frame after every cut): a false cut from a flash or a soft cut outside the plan shows there; a shot that really is not there is seedance-video's business. On the same sheet check by eye that both sides of every cut show the same people, clothes and place.

3. 1080×1920

In: the spec of a draft that passed step 2. Command: ve finish <reel>/edit/spec.json --out <reel>/final/reel.mp4. The script builds the reel at the published size in one pass and checks the finished file. Out: final/reel.mp4, the output of its check final/reel.check.txt and the cuts sheet final/reel.cuts.jpg — the user sees it in the folder. A reel on a take that is not from Seedance comes out "shot on a phone" (look: "phone", intake sets it; a Seedance take is left as it is): calmer colour and grain under the captions, a reel with no enlarged piece a little softer; the look itself adds no sharpness (in a side-by-side test the version without sharpening was chosen). Remove the key from the spec of a cartoon reel or clean graphics; a room with a cartoon on the TV is a shot, the key stays.

Passed: reel.check.txt ends with the line READY. The reel goes to the user. Failed: fix as in step 2; a FAIL the draft did not have is a build error.

4. Post captions

In: the post brief post from handoff-cd.json and the project's post-copy profile, <project>/.claude/video-edit/profile.json (keys captions, comments, humanizer; a filled example for a fictional bakery — assets/profile.example.json). Out: caption-instagram.txt, caption-facebook.txt, first-comment.txt in <reel>/final/ (the names ve final expects; if the project posts elsewhere, the profile says which platform each file is for).

Every text rule — the voice, how a caption ends, what the first comment must be, whether a humanizer runs — comes only from that profile; this step has none of its own. No profile — ask the user for the tone, or write plain drafts and say so. If the profile names a humanizer command, run it on each draft file; keep the hashtags at the end of a caption out of it and put them back exactly as written, and check that the rewrite did not change who is speaking (first person stays first person). Check the facts of every caption against the song and the scenario: names, numbers, promises.

Passed: three files written by the profile, facts checked. The captions go to the user.

5. Hand-over

In: the final/ folder after steps 3 and 4. Command: ve final <reel>/final/. The script checks what the folder holds, the reel's size and the freshness of its check, and prints the spend from the hand-off files and the check's warnings.

Passed: READY to hand over; the script writes about-reel.txt into the folder (the opening type hook_code, the finished reel's shot count by its cuts — with the confirmed planned cuts, as in ve check — and the scenario's number next to it if it differs; the opening, the ending, the spend from the hand-offs, each under its own name and model; the warnings) and plan-fields.json (hook_code and shots for your publishing step's plan). To the user — reel.mp4 and one line: what is in the reel, how much was spent, what the check warned about. Failed: the FAIL line names what is missing.

Reference and extending

What each check row measures and which numbers are ours and which come from the platforms — references/final-check.md.

The script is shared by every project. Missing a skill (a caption kind, a track) — add it to scripts/ve.py with a test in scripts/test_ve.py, not a one-off script for one reel: the error of a one-off build repeats in every next reel. One test runs like this: cd ${CLAUDE_SKILL_DIR}/scripts && uv run --no-project --python 3.12 --with pytest --with numpy --with scipy --with pillow --with librosa --with opencv-python python -m pytest test_ve.py -q -k <test name>.

Related Skills