/genmotion:video-editingfrom genmotion
Edits user-supplied footage into finished videos: podcasts, talking-head clips, trailers, social cuts. Uses ffmpeg for editorial (probe, transcript, cut list, reframe, audio cleanup) and layers captions, titles, b-roll, and end cards.
Ships in genmotion. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The user brings footage; you bring the editor's judgement. The work splits in two on purpose: ffmpeg does the editorial (what is kept, in what order, at what size, sounding how) and produces one conformed picture file plus one clean dialogue file; the project does the motion layer (captions, titles, lower thirds, b-roll, punch-ins, transitions, end card) on top of it. Then you render and measure. Every frame count below is at 30 fps unless it says otherwise; a 24 fps project (most film and cinema-style footage) multiplies frame counts by 0.8 and keeps every time in seconds as it is. Edited footage has no style family (direction): the footage is the look, and the format's reference file sets the graphics.
These are references, not rules. The numbers, beat sheets, style families and examples here are starting points distilled from work that landed well, not a recipe to fill in. The user's instructions always win over anything in this skill. When a different idea serves the brief better, propose it and try it: change the structure, break a default, invent a device, and write what you changed and why in
VIDEO.md. What stays fixed is correctness: determinism, legibility and safe zones, loudness and clipping, licences and credits, never putting words in a real person's mouth, and the sound bans insound-design(no whoosh; never a synthesised noise bed, room tone or "air", which reads as wind or hiss on phones). The checks at the end are a quality bar to clear, not a template to reproduce.
Not this skill:
ugc-screen-demo, app-store-preview or demo-walkthrough own it. Tie-breaker: if a person on camera (or a podcast/voice track the user recorded) carries the video, it is yours, and you load screen-capture for the screen parts; if the screen carries it and narration is generated, it is theirs.ai-presenter.ugc-* owners. If the creator's footage already exists and needs cutting, it is yours; borrow hooks from ugc-hooks and run ad-qa at the end.Read direction first (it decides proposition, audience, energy curve and sound on/off). This skill states only what editing changes.
If the user says "just do it", default from the table in Step 2 and say what you chose. One exception: captions (or a hook from the speaker's words) with no way to get the words; Step 3 says what to ask and what to deliver.
footage ─► ffmpeg: probe ► proxy ► transcript/silence map ► paper edit ► cut list
► reframe ► audio cleanup ► conform ─► assets/edit.webm + assets/edit-audio.wav
project: scenes show edit.webm frame-accurately + captions, titles, b-roll, zooms, end card
timeline: edit-audio.wav (lane 0) + music bed (lane 1) + sfx (lanes 2–3) via `place-audio`
render ─► measure (frames at cuts, caption timing, loudness, duration) ─► deliver
Facts this rests on, measured on this product's renderer (read references/footage-in-scene.md before writing the first footage scene):
libvpx-vp9, keyframe every 15 frames, project fps). The CLI renders with Playwright's open-source Chromium, which cannot decode H.264 or AAC: a phone's .mp4 in a scene renders as a black plate while the render still reports success. The desktop app exports in Electron, whose Chromium normally does decode H.264, so the same file can look fine there and black from the CLI; VP9 renders the same on both.-g 15 gave 300 of 300 frames exact; a 240-frame GOP gave 299 of 300 and was twice as slow; all-intra (-g 1) was exact but slower and about 2× the file size.ctx.manager. The export's frame barrier waits only on the loading manager. A <video> seeked by setting currentTime alone exported 0 of 300 frames correctly (every frame 1–2 source frames late, frame 0 black). With the seek registered and released on seeked, 300 of 300 matched. The reference has the tested helper (a VideoTexture marked needsUpdate on seeked; three-assets' canvas-copy footage() was re-tested as pixel-identical, so either works).tpad), or the last frame of the scene shows the second-to-last source frame.Copy every file into assets/source/ with save-asset (never edit originals). For each file run the probe in references/ffmpeg-recipes.md §1 and log it in VIDEO.md:
## Footage log
| File | Dur | Size | fps (r/avg) | Codec | Audio | Notes |
| cam-a.mp4 | 41:12 | 3840×2160 | 29.97/29.97 | hevc | 48k stereo | host, locked off, face x≈1310 |
| phone.mov | 0:58 | 1080×1920 | 30/28.4 VFR | h264 | 44.1k mono | rotate 90, conform CFR first |
r_frame_rate ≠ avg_frame_rate) is converted to CFR at the project fps before anything else, or audio drifts.VIDEO.md. 23.976/24 fps footage (cinema-style, many YouTube interviews): project at 24. Conforming it to 30 repeats every fourth frame (visible judder on pans), and 24 renders 20% fewer frames; scale this pack's 30 fps frame numbers by 0.8. 25 → 25. 29.97/30 → 30. Conform to 30 only when the edit is mostly designed motion over a little footage, and say so. Either way, conform with the per-segment exact-frame graph (recipes §5).-g 15 and a contact sheet (one tile per 10 s, recipes §2) and look at it with your own eyes before cutting. Never edit footage you have not seen. For a conversation, also make the 1 fps talk sheet (recipes §2) of the stretch you are mining.cropdetect (recipes §2): letterbox bars and burned-in logo strips are not picture, and every crop and enlargement figure is computed from what is left. Log it ("active 1280×544 at y 88").Pick one row, then read its reference file. Numbers are defaults; the reference file explains when to break them.
| Format | Reference | Length | Visual change every | Gaps kept | Captions | Loudness |
|---|---|---|---|---|---|---|
| Podcast, full episode | references/podcast.md | as recorded, tightened | camera hold 4–10 s, wide every 30–90 s | pauses >0.7 s → 0.25–0.4 s | SRT sidecar | −16 LUFS, −1 dBTP |
| Podcast clips (9:16) | references/podcast.md | 30–60 s (≤90) | 2–4 s | join ≈0.13 s | burned, word-timed | −14 LUFS |
| YouTube talking head | references/talking-head.md | 8–15 min | jump cut 3–8 s, b-roll every 10–30 s | join ≈0.2 s | SRT sidecar | −14 LUFS |
| Shorts / Reels / TikTok | references/talking-head.md | 20–45 s (≤60) | 1–3 s, varied | join ≈0.08 s | burned, 1–3 words | −14 LUFS |
references/talking-head.md | 30–90 s | 4–8 s | join ≈0.2 s | burned sentence case + SRT | −14 LUFS | |
| Course / tutorial | references/talking-head.md | 3–10 min per lesson | follow the action, 5–20 s | never cut a step | SRT | −16 to −14 LUFS |
| Trailer / teaser | references/trailer.md | teaser 30–90 s, trailer 1:30–2:30 | ASL 2–5 s → 8–14 f (24 fps) in the climax | designed silence (the footage's own recorded room tone) | title cards; film subtitles if dialogue is subtitled | −14 LUFS |
| Launch cut | references/launch-cut.md | 60–120 s (crowdfunding 1:30–3:00) | 1–3 s on music, hero 3–6 s | join ≈0.13 s | burned on social cutdowns | −14 LUFS |
| Gen Z / TikTok-native | references/genz.md | 15–45 s | 0.7–2 s, varied; interrupt every 2–4 s | join ≈0.08 s | burned, caps, 1–3 words | −14 LUFS |
"Gaps kept" is the silence left at a join; the pads that produce it and which pauses get cut at all are the pause table in Step 5.
Write the chosen row into VIDEO.md front matter (skill: video-editing, format:, aspect:, length:).
transcribe: extract 16 kHz mono (recipes §3), get word-level timestamps, and save them as edit/words.json ([{ "w": "Nobody", "s": 12.41, "e": 12.66 }]). Whisper drops "um/uh" unless prompted; the reference shows the prompt. Word times can be off by 100–300 ms, so pad cuts and snap to low-energy points.No transcribe on this surface: the policy. Words drive captions, the hook and the choice of moment, so get them before settling for less, in this order:
whisper, whisper-cli (whisper.cpp) or the faster-whisper Python package, use it. If none is installed, ask the user once for the go-ahead to install one (pip install faster-whisper with the small.en or base.en model, or whisper.cpp with ggml-base.en.bin): a one-time install plus a model download of 75–500 MB, then roughly real time on 4 CPU cores. If the network blocks the model download, say so.recommend-integration.<name>-nocaptions.mp4 and record it in VIDEO.md.references/ffmpeg-recipes.md §6 has the command and the luma check).references/podcast.md, references/genz.md). In a feed draft it stays on screen for the whole film as a persistent header (y 270–450, ≤2 lines): it is the only line a muted viewer can read.references/genz.md, The no-captions draft). No b-roll: without words nothing can be literal to them.VIDEO.md.references/podcast.md (question → answer units, not shots), and call the choice provisional.The silence map (silencedetect, recipes §4) still gives cut points and pause tightening without words; it gives no meaning, no speaker identity on a mixed track, and on an already-tight source almost nothing to remove.
Read the whole transcript before choosing anything. Then write the selects into VIDEO.md:
## Paper edit
| # | Src | In | Out | First … last words | Role | Note |
| 1 | cam-a | 00:12:04.20 | 00:12:19.80 | "Nobody tells you…" … "…that's the trap." | hook | cold open, pulled forward |
| 2 | cam-a | 00:03:10.00 | 00:03:41.50 | "So I'd raised…" … "…out of cash." | setup | [BROLL: bank statement] |
Turn the paper edit into a cut list in seconds, snapped:
references/genz.md, references/talking-head.md, references/podcast.md and ugc-craft's breath trim all cite it). Caption grouping has its own pause rule (ugc-craft); it is unrelated.| Format | In pad (before the first word) | Out pad (after the last word) | Join gap left | Pauses that get cut |
|---|---|---|---|---|
| Gen Z, Shorts / Reels / TikTok, UGC talk | −0.03 s (1 f) | +0.05 s (1–2 f) | ≈0.08 s | between takes: all; inside a continuous monologue: only pauses ≥0.25 s |
| Podcast clips, launch cuts | −0.05 s | +0.08 s | ≈0.13 s | ≥0.25 s |
| Clean talking head (YouTube, LinkedIn, course) | −0.08 s | +0.12 s | ≈0.2 s | ≥0.3–0.5 s, and every flub |
| Podcast, full episode | −0.10 s | +0.15 s | 0.25–0.4 s (compressed, not removed) | only pauses >0.6–0.8 s |
| Trailer / film lines | whole lines, cut where the bed is quietest | the music decides | none inside a line |
Why ≥0.25 s inside a monologue: a tight speaker's shorter pauses buy 0.1–0.2 s each and cost a jump cut each, which turns the edit into a stutter; cut fewer, and get the density from picture steps (Step 6). The pads assume word times checked against the waveform: Whisper's can be 100–300 ms off, so snap each boundary to the nearest low-energy point first; on a silence map, pad from the silence edges.
round(t × fps) / fps, and give each segment its exact frame count N = round((out − in) × fps).Then conform in one ffmpeg pass (recipes §5): per segment trim → fps → exact N frames (and atrim to N / fps), then concat, scale, a 0.5 s tail handle, VP9 with -g 15 to assets/edit.webm, and the dialogue to assets/edit-audio.wav (48 kHz). Keep the cut list in edit/cutlist.json with each segment's source in/out and its new start, so captions and b-roll can be re-timed: new_t = segment_start + (src_t − in).
Confirm edit.webm has exactly the planned frames + the 0.5 s handle (15 frames at 30 fps, 12 at 24), edit-audio.wav is exactly planned frames ÷ fps long, and the cut frames found by a difference scan match the planned segment starts. If not, the cut graph is wrong; fix it now, not after the render. (Applying fps once after the concat drifted a 23.976 source by 2 frames at a cut.)
ugc-craft's jump zoom (scale 1.0 → 1.2 on the cut frame and back to 1.0 on the next, never two zoomed segments in a row), or a crop shift of 80–120 output px left or right with no size change. The jump zoom multiplies the enlargement, the crop shift does not, so base × step ≤ 2.0 (Step 7) decides: from a single 720p angle the crop shift is the workhorse (base up to 2.0), or a 1.2 jump zoom on a base of at most 1.66. A 6–8% size step alone reads as a twitch; pair it with a crop shift.references/genz.md, Density; the check is in recipes §11).base × step (the reframe's scale times any jump zoom or punch-in, measured from the active picture), ≤2.0×, ≤1.3× ideal. A full-height 9:16 crop of 720p is already 2.67× (3.5× from a 544 px letterboxed picture), so sources ≤720p or letterboxed take a different layout: stacked angles (1.33× from 720p), a 4:5 or 1:1 plate with the hook above it (base 1.875–2.0, so crop shifts, not size steps), the no-captions plate from y 450 (Step 3), or the 16:9 picture whole on a blurred fill as the last resort (recipes §6 has the table, the commands and the arithmetic). Compute the worst case before choosing and log it.unsharp=5:5:0.5 in the conform's scale chain (0.4–0.6; 0.8+ halos). If you accept more softness than the limit, name it in the delivery note..mpd, HLS .m3u8) or a page offering several sizes, list every rendition with ffprobe and take the tallest the licence allows (recipes §6, Source rendition); ask the user for the master when they own the film. Then compute the base each aspect needs and log it: full-height 9:16 base = 1920 ÷ active height (818 px → 2.35×, 1090 px → 1.76×, 1636–1744 px → 1.10–1.17×).[frame, cx] (monotone between keys, following the subject's centre, never past it), in the conform as a crop expression or in the scene as a keyed plate (references/footage-in-scene.md, Keyed reframe).Graphics serve the footage; they never cover a face or the active speaker's mouth.
| Element | Spec | Timing |
|---|---|---|
| Captions | social spec per ugc-craft; placements, word timing and the Three.js build in references/captions.md | each word from its start frame |
| Hook title (social) | 5–9 words, just below the top band (y 270–450 of 1920) | first 3–5 s, or persistent |
| Lower third (16:9 and 1:1 only) | name + role, first appearance only. In 9:16 it fights the caption band: name the speaker with a ≥60 px text pop in the hook or caption band instead | in 12–16 f, hold 4–6 s, out 6–9 f |
| Chapter / topic card | 3–7 words | 1–2 s |
| Keyword pop | 2–5 words | 1.5–3 s |
| B-roll insert | literal to the words, from the user, stock-and-broll, or screen-capture | 2–5 s, every 10–30 s long-form, 1–3 s social |
| Zoom moves | ugc-craft's named moves: jump zoom 1.0 ↔ 1.2 on cuts; punch-in 1.0 → 1.12 over 8 f inCubic on a stressed word (≤4 per 30 s); long-form only: a slow push 1.0 → 1.08 over 3–6 s for a serious line | jump zoom per Step 6 |
| End card | CTA with URL or handle | social ≤2 s (or loop); YouTube 10–20 s end-screen area |
Entrances, exits, easing and overshoot come from motion-language (text 12 f per word, exits ~0.6× the entrance, holds ≥18 f before an exit). Default to hard cuts between footage segments; dissolves mean time passing; flashier transitions belong only to Gen Z and trailer styles.
Building it, per engine:
edit.webm from its own SOURCE_IN through the tested footage helper in references/footage-in-scene.md: an orthographic camera, a full-frame plate, captions as canvas-texture word meshes (references/captions.md), titles per three-type, scene handoffs per three-transitions. Load fonts per three-type; a missing font falls back silently.<video src="assets/edit.webm" muted playsinline data-start data-duration data-media-start> in each sub-composition (timing on the video or its wrapper, never both; never play() or seek it yourself), the dialogue as a separate <audio>; captions and graphics are HTML over it, animated on the scene's paused timeline.<Video src={clip} startFrom={seconds} /> from @genmotion/motion, which awaits its own seeks; captions with <TextAnimation> or per-word spans driven by the word list.Hand the mix to sound-design; it owns levels (its bed row is the one bed level), ducking, music sourcing, placeholder SFX and loudness. Editing-specific rules:
sound-design, Headroom and loudness).edit-audio.wav on lane 0 at volume 1 from frame 0 with place-audio. A clip may be at most 18,000 frames (10 min at 30 fps): split longer dialogue into consecutive entries, each with startFrom (seconds) where the last one ended.sound-design's bed row (0.12–0.2 after both are normalised, 14–20 LU under the voice; a busy track low-passed at 6–8 kHz). Podcast and LinkedIn often take none. Drop it out under the single most important line.sound-design beat grid; on a score with no steady pulse, phrases and swells, references/trailer.md). Shape a trailer's loudness as a staircase with volume automation and peak limiting, never loudnorm on the whole cue, which flattens the build (sound-design). The timeline has 4 lanes and one static volume per clip, so a trailer mix with many overlapping pieces and automated levels (bed, lines, hits, sync sound, room tone) is pre-mixed in one ffmpeg graph to one WAV and placed at 1.0 (references/trailer.md, Sound design).sfx on this surface: sound-design's synthesised placeholders, labelled as such, beat a Gen Z edit with no sound design.validate), then capture-frames at the first frame, one frame after each cut, and the busiest caption moment.drawtext); the project renders only the designed inserts (cold-open title, chapter cards, end card) at the same size and fps; ffmpeg concatenates them with the body (recipes §10), and captions ship as an SRT sidecar, which is what YouTube and podcast platforms want anyway. Or render everything in the project if the user accepts the render time; tell them the estimate.All with ffmpeg/ffprobe (recipes §11):
edit.webm with psnr over a band no graphic covers: runs of low values or a dip every Nth frame mean the footage is late; one isolated dip is encoder noise.silencedetect on the export finds no silence over 1 s you did not design.references/trailer.md).ebur128 integrated within 1 LU of the target, true peak ≤ −1 dBTP. If the true peak is over, re-master the export (sound-design: peak-limit, then two-pass linear loudnorm, the video copied); if loudness is off by more than 1 LU, scale the clips and render again. For a trailer, also the loudness per section (recipes §11): rising act by act, the climax loudest.VIDEO.md: the cut list file, every music/SFX licence, and what you assumed.-g 15, seeks registered, frame-at-cut check passes. Bad: the phone's H.264 .mp4 placed directly in a Three scene: it renders black and the render still says ok.| Need | Capability or skill | Fallback when missing |
|---|---|---|
| Cutting, conforming, measuring | ffmpeg | None for footage edits: ask the user to install it (genmotion doctor shows the bundled one) |
| Word timestamps | transcribe | A local Whisper (with the user's go-ahead to install), the ElevenLabs connector, or the user's transcript/SRT; else ask once even after "just make it", and if told to go on, a marked no-captions draft per Step 3. Never invented words |
| Footage, b-roll, music into assets | save-asset | Ask the user to drop files into assets/source/ |
| Timeline audio | place-audio | None: audio not on the timeline is silent in the export |
| Seeing frames | capture-frames | Render a short --frames range and extract stills with ffmpeg |
| Scene checks | validate | Render a few frames and look |
| Music | music | The user's own track, or no music (talk carries it) |
| Sound effects | sfx | User-supplied files, credited CC0 sounds, or sound-design's synthesised placeholders (labelled) |
| Direction, motion, mix | direction, motion-language, sound-design | None: read them |
| B-roll and stock | stock-and-broll | The user's own cutaways, or punch-ins instead |
| Three.js build | three-type, three-assets, three-transitions | None on a Three project |
VIDEO.md (active picture, fps, head/tail fades); VFR sources were conformed to CFR; the project fps and why are recorded.*-nocaptions, says so in the reply's first line, keeps a public-facts hook as a persistent header, has a wordless cue at least every 6–8 s, and no empty caption band.VIDEO.md, and no cut changes what a speaker said or meant.edit.webm is VP9 with keyframes every 15 frames, at the project fps, with a 0.5 s tail handle; its frame count is the planned total + the 0.5 s handle, edit-audio.wav is planned frames ÷ fps long, and its cut frames match the plan.psnr band check clean).base × step ≤2.0× everywhere (worst shot computed and logged), sharpened above 1.3×; no band under the platform UI is pure white (mean luma <240).references/captions.md.silencedetect finds no unintended gap over 1 s; there are no clicks at cuts (10 ms fades); joins follow the Step 5 pause table for the format; any designed silence is the footage's own recorded room tone (−45 to −60 dBFS RMS) or a decayed tail, never a synthesised noise.sound-design's bed row (14–20 LU under the voice); placeholder SFX are labelled.VIDEO.md.references/captions.md (opens in a new tab)references/ffmpeg-recipes.md (opens in a new tab)references/footage-in-scene.md (opens in a new tab)references/genz.md (opens in a new tab)references/launch-cut.md (opens in a new tab)references/podcast.md (opens in a new tab)references/talking-head.md (opens in a new tab)references/trailer.md (opens in a new tab)skill.json (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
35 skills in this plugin
/ad-qaThe pre-ship QA pass for a short-form or social ad, run on captured frames and the exported file: the exact frames to capture, eleven tests with pass criteria and fixes (hook frame, brand timing, mute, safe zones with a drawn overlay, captions, text size and contrast, pacing, CTA and ending, audio and loudness, ad codes, claims), then direction's critique rubric as the ship bar and a short report for the user. Every UGC owner ends here. Load it before telling anyone an ad is finished./ai-presenterPutting a person on screen in an ad when there is no footage: the user's own clip first, or a generated portrait driven by a lipsync model. Covers when not to use a face at all, the lipsync input spec (portrait, audio, neutral mouth), framing and headroom for 9:16, one take length (four seconds), lip-sync tolerance in frames, matching voice to face, the uncanny tells and the edit patterns that hide them, the seek-safe build on each engine, and the line between a synthetic presenter and a fabricated customer. Load it alongside a UGC owner, never instead of one.Other plugins' skills for the same job
/announce-featureThe 15 to 45 second feature announcement or changelog video, in the manner of Linear, Notion and Slack: what changed, why it matters, show it, where to find it. Covers naming the feature in the first six words, frame-budgeted beat sheets for 15, 20, 30 and 45 seconds with VO word budgets, the cursor, before-and-after and focus-push patterns with house timings, the CTA that points at the toggle, sound per interaction, and recuts for an in-app loop, a changelog embed and a vertical social clip. Load it for one feature or a small set, not a whole-product launch.npx claudepluginhub haxzie/genmotion --plugin genmotion