AI Video Skills · Skill 7 of 10
Editing and pacing AI video
Editing AI video means picking the best 2 to 3 seconds of each 4 to 10 second clip and cutting them at a pace that feels calm, not frantic. This skill gives your agent measured shot-length rules, a beat-grid method, the case against speeding up generated footage, an upscale-then-grade order and a script, shot_stats.py, that measures the pacing of any video.
Install
Install this skill
The plugin and npx commands install all ten skills; the manual copy installs only this one.
/plugin marketplace add klakix-ai/ai-video-skills
/plugin install ai-video-skills@klakix-ai-videonpx skills add klakix-ai/ai-video-skillsgit clone https://github.com/klakix-ai/ai-video-skills.git
cp -r ai-video-skills/skills/ai-video-editing-and-pacing ~/.claude/skills/Source: skills/ai-video-editing-and-pacing/SKILL.md on GitHub (MIT). For Codex use ~/.codex/skills/; for Claude.ai download a zip from Releases.
Key rules
What the skill teaches
Short versions of the rules in the skill. The numbers come from our own productions.
Keep shots at about 2.6 s or longer (about one bar of music at 90 to 100 BPM). A first cut with a 1.29 s median shot was "way too fast"; the recut at a 3.54 s median was approved.
Give key gags 4 to 5 seconds so the reveal can land and breathe.
Aim for 30 to 40 seconds total for story and comedy pieces on social.
Use glitch or flash transitions at only 3 to 4 key moments, on the beat. Everywhere else, straight cuts.
Never speed up generated footage. Speeding clips up 1.5x to 1.7x produced the worst feedback of any change we made; slow-motion ramps are fine.
Choose the best seconds of a clip with a frame strip every 0.5 s: discard logic errors, logo frames, face drift and the model's own mid-clip cut, then prefer the lowest camera speed that still holds the action beat.
Detect BPM and verify it by fitting a grid (one track detected at 129 BPM was really 127), cut on bar starts or beats and put the payoff on the drop.
If you add a push-in in post, use sub-pixel warps with cubic interpolation, not ffmpeg zoompan, which rounds to whole pixels and shimmers, and do it on the upscaled clip.
Upscale raw clips to 1080p first, then color-match, add grain and overlays. A 5 second clip cost about $0.04 to upscale in late 2026.
For organic reach, keep branding to a small mark at the end, or none, and put credits in the caption. Ad-like intros and long end cards correlated with lower reach in our small test.
Reference
Quick reference
ffmpeg gotchas
| Gotcha | What to do |
|---|---|
| xfade fails on mismatched time bases | Add settb=AVTB to both inputs |
| ffmpeg hangs when launched from Python | Pass -nostdin |
| aecho's second parameter | It is output gain for the whole signal (0.25 is -12 dB), not just the echo |
| Matching loudness | RMS matching does not match perceived loudness; use LUFS |
| Scripts written on Windows | Use LF line endings if they will run on Linux |
Scripts
Scripts that come with it
Plain Python with no API keys or accounts. Install the dependencies with pip install opencv-python numpy, and keep ffmpeg on your PATH.
shot_stats.pyMeasures shot lengths of any video, including a reference reel, so you can compare your cut to it: median shot, shortest shot and a list of cuts.
Examplepython scripts/shot_stats.py reference_reel.mp4Examplepython scripts/shot_stats.py my_cut.mp4 --threshold 0.3 --list
FAQ
Common questions
How long should shots be in an AI video?
About 2.6 seconds or longer, with 4 to 5 seconds for the key gag. In our productions a 1.29 s median shot was called way too fast, while the same footage at a 3.54 s median was approved. A fast edit can work when every cut sits exactly on a beat and each shot carries one clear joke.
Should I speed up AI-generated clips?
No. Speeding clips up 1.5x to 1.7x to add energy produced the worst feedback of any change we made. Use the calmest part of each clip at normal speed, cut on the beat and add a short flash or glitch at 3 or 4 key moments if you need energy.
Should I upscale before or after color grading?
Before. Upscale the raw clips to 1080p first, because a video upscaler sharpens texture, eyes, skin and metal far beyond a resize, and then color-match, add grain and add overlays at 1080p so text and UI stay crisp.
Keep going
Related skills
- Skill 08
Viral AI video formats
History plus one modern object, delayed reveal, bystander POV, measured hook timing, CTAs and AI labels.skills/viral-ai-video-formats - Skill 02
Camera angles for AI video prompts
14 tested camera moves with copy-paste wording, 3 to avoid, the snap zoom and hold, and a camera speed script.skills/ai-video-camera-language - Skill 05
Make AI video look like real footage
Device-based realism, words that push models toward CGI, real-photo references and natural color.skills/ai-video-realism
From the team behind the skills
Klakix has an AI video upscaler for the upscale-first step, and a video editor for the cut.