/ai-editor:motionfrom cooked.
Builds bespoke motion graphics for video edits, one animated clip per beat using HyperFrames and GSAP. Picks beats needing motion, writes briefs, runs parallel clip-builders, and gates each clip through lint/layout/render checks.
Ships in cooked.. 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; scripts run unread.
Paths: ${CLAUDE_SKILL_DIR} means the folder containing this SKILL.md, and ${CLAUDE_PLUGIN_ROOT} the plugin folder two levels above it.
Every question goes in the question box: the AskUserQuestion tool (2-4 options, recommended first).
One clip per beat, built for that line, never a template filled in. The template card is the fallback.
M="${CLAUDE_SKILL_DIR}/scripts/motion.py"; paths are relative to the library, like style-edit's. Run the
scripts with python3 on Mac and Linux, py on Windows.
visuals.json (style-edit step 3) -> motion.py pick -> motion/<id>/{index.html, brief.md, beat.json}
-> one clip-builder agent per clip -> motion.py check (gates + render) -> motion.py place
-> visuals.json video_card beats -> plan.py -> stills -> render (the clip plays on its word)
python3 "${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/setup.py" doctor shows motion clips ok. Setup installs
them by default; an install from before the motion step has none, so pick installs them itself (a few seconds,
once). If that install fails, pick prints Animations fell back: ... once and makes no clip folders: say that line
to the user once. The visual templates stay, and a beat whose template is only words gets no card (plan.py).
python3 "$M" pick edits/<name>
Reads visuals.json (written by style-edit step 3 or the visual-prep agent) and style.json's motion block:
{"engine": "clips" | "templates", "amount": 0-1, "kinds": {"counter", "list", "flow", "before_after", "ui_demo", "curve", "logo": true|false}, "look": "default"}. Every beat routed to a moving template
(likes, notes, flow, side_by_side, progress, terminal, chat, toasts, curve,
logo_cluster) with at least 1 s of room becomes a clip, up to amount of them. So does a beat routed anywhere
else (a card, a capture, a sticker) whose sentence is a natural list (four or more items: notes), a number
(likes), steps (first... then...: flow) or a before and after (side_by_side), one per sentence with no
animation in it already, if that kind is on; a clip that fails its checks falls back to the original beat. Each gets
edits/<name>/motion/<id>/: the template with its size, duration, look and the said words' times filled,
beat.json (cut clock) and brief.md. The look: references/looks.md (default, or the style's palette
and font). A user asking in chat ("animate the part where I say X"): add or change that beat in
visuals.json first (style-edit references/shapes.md), then pick.
For each motion/<id>/brief.md pick printed, launch the clip-builder agent
(${CLAUDE_PLUGIN_ROOT}/agents/clip-builder.md, opus, background) with that brief's full path, every
clip in ONE message. Each reads only its brief and references/clip-brief-card.md, builds index.html,
and runs motion.py check at most 3 times. Never build the clips in the main session.
During a whole edit the cut skill launches them as soon as visual-prep returns, while the user is still reviewing the cut, so the clips are ready when the cut is approved.
python3 "${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/run.py" "$M" check edits/<name>/motion/<id>
In order: check_clip.py (source gotchas, free), hyperframes lint, hyperframes check --at-transitions,
render, check_motion.py (no stall, no spike, no frame-0 flash), check_composition.py (advisory),
measure_ink.py, then renders/sheet.png (1 fps) and renders/strip.png (10 fps over the first 1.2 s).
Writes gates.json. Thresholds: references/clip-brief-card.md. Why each gotcha bites:
references/build-loop.md. The full rules: references/visual-system.md; several ideas in one clip:
references/scenes.md.
When the agents return, read each renders/sheet.png yourself against its line (a fresh reader who was not
told the beat is better: does it say the line?). A clip that reads wrong: send its agent the note, one more
round. Then:
python3 "$M" place edits/<name>
A passed clip becomes a video_card beat with the render (images/motion-<id>.mp4); clip_motion.py
sets start_s so its motion finishes 0.25 s before the card leaves. A clip that did not pass after its
rounds keeps its template beat (kept under fallback, restored by place). Then style-edit carries on
from step 4 (plan, stills, render). Re-run place after any rebuild.
Stills hide flicker. After the render, strips round at least four clip entrances, with the safe zone drawn:
python3 "$M" strips edits/<name>/render.mp4 --at <t1>,<t2>,<t3>,<t4> --out edits/<name>/stills/motion-strips.png --safe
Each row runs 0.4 s before to 1.1 s after its time at 10 fps. Look for a part on one frame and gone, a blank frame between cards, a part that never moves while held, anything over the face, anything outside the box.
A clip is a video item the user moves, scales and trims (lib/ai_editor/SCENE.md "Animations are elements"). Make
its page background: transparent (html, body and #root) when it sits over the footage, render it with alpha, and
add it at its word, as wait's SCENE: block says:
npx hyperframes render edits/<name>/motion/<id> --format webm -o edits/<name>/motion/<id>/renders/clip.webm
python3 "${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/scene.py" add edits/<name> video --src edits/<name>/motion/<id>/renders/clip.webm \
--start <word time - 0.1> --x <centre x> --y <centre y> --w <width> --why "<the line it shows>"
VP9 WebM keeps the alpha in the page's player and in the export; an MP4 is an opaque box. A clip on its own card
ground can stay MP4 (place, plan, then scene.py cards --at <t>). Never patch-render a scene draft.
A review-page note at a moment a clip is up ("make the counter bigger", "use blue"):
python3 "$M" note edits/<name> "make the counter bigger" --at <note time>
It writes the note into that clip's notes.md and prints the clip. Give one clip-builder its brief.md
(up to 2 more checks), then place, plan, and edit.py patch (style-edit): only that clip is rebuilt and only its
span re-rendered (each placed render has its own file name, so the patch sees the change).
When the user approves the render: python3 "$M" save edits/<name>. Each placed clip goes to
$AI_EDITOR_HOME/motion-library/<id>/ (composition, brief, thumbnail, the style it came from). pick gives a beat
of the same kind the newest one (or the one marked "use again") as start.html: a starting point the agent
re-times and changes, never a copy (check fails an unchanged one). Archived clips are never used. The
window's style page lists them (Archive, Delete, Use again); in chat: python3 "$M" library [archive|unarchive|use <id>].
style.json motion (the style page's Motion section writes it through the user's corrections): amount (0
none, 0.5 some, 1 lots; unset, a measured style's animation share), kinds (each on or off), look
(default, editorial, editorial-dark, mono, poster-red, poster-green, poster-blue). engine: "templates" keeps the template cards.
A split-layout style (style.json layout.mode: "split", the sample 50/50): every clip is built for the panel's
art box on the panel's ground and plays edge to edge; the panel gate (ground at the corners, ink over 55%) and
the four proofs (verify.mjs) block. Variants, rules and the cutout: references/fifty-fifty.md.
A board-layout style (style.json layout.mode: "board", the sample Motion design, 16:9): clips are overlays
beside the speaker, 1200x964 in the board look (near-black ground, silver-white ink). Logos are not clips: they
land as tiles on the canvas. The rules: references/board.md.
A user's own style skill gets bespoke animations with one line: "Animations: use the motion skill".
| message | do |
|---|---|
the motion tools are not installed / Animations fell back | setup.py motion, then the same command; it fails again: say the line once and carry on without clips |
a clip still FAIL after its checks (3 to build, 2 more per note) | leave it: place restores its template |
no frames read (strips) | the render path is wrong or the render failed: style-edit step 7 |
scripts/motion.py (pick, check, place, status, strips), check_clip.py, check_motion.py,
check_composition.py, measure_ink.py, clip_motion.py: each with a demo self-check.template/: the HyperFrames composition every clip starts from.scripts/verify.mjs: the four proofs (clipped, rails, neighbour, reading), frame by frame in Chrome.references/: clip-brief-card.md (the core every agent reads), visual-system.md, build-loop.md,
scenes.md, looks.md, fifty-fifty.md, board.md.references/board.md (opens in a new tab)references/build-loop.md (opens in a new tab)references/clip-brief-card.md (opens in a new tab)references/fifty-fifty.md (opens in a new tab)references/looks.md (opens in a new tab)references/scenes.md (opens in a new tab)references/visual-system.md (opens in a new tab)scripts/check_clip.py (opens in a new tab)scripts/check_composition.py (opens in a new tab)scripts/check_motion.py (opens in a new tab)scripts/clip_motion.py (opens in a new tab)scripts/ground.py (opens in a new tab)scripts/measure_ink.py (opens in a new tab)scripts/motion.py (opens in a new tab)scripts/verify.mjs (opens in a new tab)template/hyperframes.json (opens in a new tab)template/index.html (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nextwork-projects/ai-video-editor-cooked --plugin ai-editor18 skills in this plugin
/broll-reelCopies a reference reel onto the user's own b-roll. Reads the reel's cut times, its on-screen words (place, size, colour) and its sound, picks one clip from the user's b-roll folders (Google Drive or local, broll.py) for every shot, rebuilds the reel at 9:16 with the same words over the new clips and the reel's audio, renders it and opens it in the editor so the user changes anything with notes. No talking head, no script. Use when a home page job says `mode=broll-reel`, or the user says "copy this reel with my b-roll", "make this reel with my clips", "same text, my b-roll", "redo this reel with my footage". Not for editing the user's own talking take (that is start, cut and style-edit) and not for measuring a creator's style (that is creator-teardown)./clipsTurns one long video or podcast (a local file or a YouTube link) into the best 3-5 short vertical clips, each cut and styled in the user's profile style. Transcribes once, splits the talk into candidate clips at sentence boundaries inside the chosen length, scores every candidate in code (speech rate, loudness, laughter, numbers and names said), shows the shortlist on one page with a preview of each, then trims, cuts and style-edits each pick as its own edit. Use when the user says "clip this video", "make shorts from my podcast", "find the best clips", "cut this into TikToks", "turn this YouTube video into reels", "repurpose this long video", or drops a long video (over about 3 minutes) or a YouTube link and wants short clips. Not for editing one short take (that is start or cut), and not for measuring someone else's style (that is creator-teardown)./cutCuts raw talking-head footage into a clean jump cut. Takes one take or several joined (mp4 or mov, any aspect, 4K phone footage is fine), transcribes it word by word, removes retakes, false starts, fillers and dead pauses, and renders cut.mp4 at the source resolution plus words.json timed to the cut. The user approves the cut on a page with the whole transcript and every removed word struck through. Use when the user says "cut my video", "just cut it", "remove my mistakes", "cut out the retakes", "remove the pauses", "clean up this take", "jump cut this", "tighten this clip", or asks only for the cut of a raw take; start calls it for a full edit. Runs before style-edit. Not for a general request to edit a video or to make it look like a creator (that is start), not for adding captions, zooms or cards (style-edit), and not for analysing someone else's videos (creator-teardown)./improveFor the editor's maintainers. Turns what users corrected into lasting fixes in this repo, for every user, enforced by code and tests rather than notes. Reads the suggestions users marked "would help everyone" (~/.ai-video-editor/suggestions.jsonl), taste rules said twice (taste.py report), preview corrections (edits/*/corrections.jsonl), review-page notes (*/review.json) and open GitHub issues labelled feedback; groups repeats; for each item the maintainer accepts, writes the general rule into PRINCIPLES.md and the skill that owns it, adds or tightens the check that enforces it, adds a test that fails before and passes after, runs the full test set and leaves a CHANGELOG.md entry to commit. Use when the maintainer says "improve the editor", "turn feedback into fixes", "process suggestions", "what are users complaining about", "go through the feedback issues". Not for one user's own preferences (that is taste), and not for editing a video./logo-packBuilds clean brand-colour logos for every company, app or tool named in a video. Lists the names from the edit's transcript, fetches each brand's own logo (SVG first, else a large PNG) with the editor's logo code, trims it, makes a transparent 512 px PNG beside the SVG, checks each one (official, transparent, sharp, brand colours) and fixes the failures, then notes the logos named together so the edit shows them side by side. Writes the files style-edit already reads (images/logo-<brand>.svg|png) plus logos.json. Use when the user says "make a logo pack", "get the logos for this video", "official logos for the apps I mention", "the logos look fake" or "logos in their real colours", or before style-edit on a video that names two or more products. Not for moving or swapping one card in a rendered edit (overlays), and not for screenshots of a page (style-edit captures)./motion-designApplies motion design principles to create emotionally-driven, technically sound animations and transitions. Provides timing, easing, choreography, and Disney animation principles adapted for UI. Use when creating animations, transitions, micro-interactions, loading states, page transitions, scroll-triggered effects, or any motion work. Works with CSS, Framer Motion, GSAP, Lottie, Spring, or any animation system.
Other plugins' skills for the same job