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.

Claude Code (all ten skills)
/plugin marketplace add klakix-ai/ai-video-skills
/plugin install ai-video-skills@klakix-ai-video
Any agent that reads Agent Skills (all ten)
npx skills add klakix-ai/ai-video-skills
This skill only (manual copy)
git 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.

  1. 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.

  2. Give key gags 4 to 5 seconds so the reveal can land and breathe.

  3. Aim for 30 to 40 seconds total for story and comedy pieces on social.

  4. Use glitch or flash transitions at only 3 to 4 key moments, on the beat. Everywhere else, straight cuts.

  5. 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.

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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

GotchaWhat to do
xfade fails on mismatched time basesAdd settb=AVTB to both inputs
ffmpeg hangs when launched from PythonPass -nostdin
aecho's second parameterIt is output gain for the whole signal (0.25 is -12 dB), not just the echo
Matching loudnessRMS matching does not match perceived loudness; use LUFS
Scripts written on WindowsUse 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.py

    Measures 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.

    Example
    python scripts/shot_stats.py reference_reel.mp4
    Example
    python 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

Back to all ten AI video skills or star the repo on GitHub.

From the team behind the skills

Klakix has an AI video upscaler for the upscale-first step, and a video editor for the cut.