/ai-editor:style-editfrom cooked.
Takes an approved cut.mp4 and style.json, then plans captions, zooms, and real visuals timed to speech, renders 9:16 or 16:9 via Remotion, and exports to Final Cut, Premiere, Resolve, or CapCut.
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.
Read ${CLAUDE_PLUGIN_ROOT}/PRINCIPLES.md first: the rules every video follows (where, asking, looking real, motion, story, privacy, cost).
Every question goes in the question box: the AskUserQuestion tool (2-4 options, recommended first). Only in an agent without it, ask numbered questions in text. Attached images: <paths> in an answer: Read each first.
An approved cut and a creator's style in (a skill= job runs that skill: start step 3).
The finished video out: captions, zooms, real captures and motion scenes timed to the words, in the
creator's look and the user's brand. The user approves the stills on the review page (step 5) and picks the render (step 6).
Paths are relative to the library (PRINCIPLES.md). Run the scripts with python3 on Mac
and Linux, py on Windows. S="${CLAUDE_SKILL_DIR}/scripts",
VPY="${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/run.py"; python3 "$VPY" is the venv Python.
edits/<name>/cut.mp4 + cut.transcript.json + words.json (cut)
edits/<name>/style.json (start: the profile's creators blended)
or creator-teardowns/<handle>/style.json (one creator, from creator-teardown)
~/.ai-video-editor/profile.json (start: brand kit, names, assets, avoid, sound)
captions.json -> beats.json -> visuals.json -> images/ + images.json -> plan.json -> stills/sheet.png -> render.mp4
References, read only when a step says: references/visuals.md (each format in detail),
references/plan.md (plan.py, cutout, sound, music, checks), references/motion.md (templates,
transitions, marks), references/render.md (targets, live preview, export), references/review.md
(the review page), references/ai-tells.md (the banned AI looks). references/contracts.md is for people: never read it.
python3 "${CLAUDE_PLUGIN_ROOT}/skills/taste/scripts/taste.py" show --edit edits/<name>
python3 "${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/profile.py" show
Follow every taste rule; the scripts read the settings themselves. When the user reacts to a result ("too slow", "captions too small"), save it with the taste skill before redoing the edit.
prep-decisions.json? The
visual-prep agent did steps 1-3 and the sheet: references/plan.md "Prepared while the cut was reviewed".wait): STYLE: is the style picked there (style.json is written: keep it). INSTRUCTIONS: is what the user typed for the edit, also in EDIT/instructions.md: follow it in every step, over the style; redo anything prepared against it.python3 "${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/profile.py" style edits/<name>.
With no creators in the profile (or no profile) it writes the default style: a smooth zoom move
at least every 5 s, 3-word captions (references/plan.md "No creator"). If it stops with
no creator style.json found, run creator-teardown quick mode for the profile's creators, then again. plan.py also plans with the default style when style.json is missing, and says so.assets_dir that fits a line, plus anything
they hand over, goes in edits/<name>/images/ and images.json:
[{"src": "images/dashboard.png", "word": "dashboard", "nth": 1}] (optional layout, hold_s,
entrance; transparent PNG and Lottie .json work).EDIT/broll.json ("auto": true = Claude decides: use the
libraries this video fits; false: only those listed; no file: none; "clips": every one goes in first). Asked in chat with no page job, the profile's
broll (python3 "${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/broll.py" list): pick the one that fits from the transcript
(the user named one: that one; none fits: skip; two fit equally: ask in the question box). EDIT/instructions.md
(Additional instructions for Claude) can say which folder goes where: follow it. broll.py sheet <name> prints numbered contact sheets: look at
every sheet, copy the clips that show what a line says into images/ (paths in its index.json) and use
each as a video_card on that line. Never a clip that does not match the words.assets.json, review.py wait's assets: line: videos, images and links): first, before any search,
each on its say words, as agents/visual-prep.md step 2 says. One not in images.json or visuals.json yet is new.python3 "${CLAUDE_PLUGIN_ROOT}/skills/cut/scripts/retakes.py" captions edits/<name>
Writes captions.json and captions.txt: the words heard in the finished cut (the verify step's
cut.transcript.json), timed to it, with every word that pass heard differently ("Jeff" for "Jev")
spelled as the approved cut text has it, names spelled as the profile's names, and every earlier
retakes.py fix applied. It prints each word it changed. Never read either JSON: proofread
captions.txt, the file captions are built from. A word still wrong is one command, which fixes
captions.json in place, timings untouched, and is kept in fixes.json for every later captions run:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/cut/scripts/retakes.py" fix edits/<name> cloud=Claude jiv=Jev
Use captions.json from here on.
Read references/shapes.md and references/motion-design.md first: each pick's shape and plan.py's
rules, then the default look and motion (built animations over captures, big in the band, one capture a page).
python3 "$S/route.py" beats edits/<name> splits captions.json into sentences,
marks the named things (profile, logo-pack) into beats.json. Pick one route per sentence yourself
(none, capture:shot|browser|sticker, post, logo, logo_cluster, chat, terminal,
toasts, side_by_side, video_card).visuals.json (references/shapes.md): a named product
or doc becomes a capture (with marks found by text), a quoted post a post, an app an app,
a video a youtube, a repo a github, a brand in passing a logo, an expert's words a clip (references/visuals.md "Sourced proof").references/shapes.md). Hand it to the template-filler agent (haiku) with the full path of references/shapes.md when available, else write them. Only
words and numbers the speaker said. There are no type cards.node "$S/capture.mjs" edits/<name> fetches captures, logos, posts into images/, marks measured.Pacing: a copied creator's rate wins. route.py prints her cards a minute, kinds and place in the frame,
and marks that many sentences want (named ones first). Give each a card of her kind with a box at her
place, clear of the head: the user's own photo, else a capture of the real thing the line is about (page,
profile, post), else their own clip as a video_card. Never a made-up or stock picture: a want with
nothing real stays empty. Never ask what to show: pick the real capture (their own product's too). No creator: a card only where a line names something real. Never two at once; no
stretch without a card over card_gap_s (plan.py adds zooms there, references/plan.md "Pacing").
Vertical captures need a find to read on a phone. Card edit: shapes.md.
Find the speaker's head first, so no box covers the face, then plan with step 1's style.json:
python3 "$VPY" "$S/face.py" edits/<name>
python3 "$S/plan.py" edits/<name>/style.json edits/<name>/captions.json [--aspect 9:16|16:9] [--layout overlay|split|letterbox]
Writes edits/<name>/plan.json. Read every warning. It ends with the style check (style_check.py):
each style: line is a way the plan differs from the creator. Fix each (style.json, visuals.json,
images.json) and plan again before the stills; what the user changed is already the target.
references/plan.md "Music"; plan.py lays the creator's bed itself), then plan.py again. Sound cues need nothing: plan.py adds them."behind": true, run matte.py after the last plan.py run and
again after any later one (it cuts only new frames); say its --estimate first (references/plan.md).python3 "$S/check.py" plan edits/<name> [--plan plan.json] [--style edits/<name>/style.json]
Fix every FAIL and plan again. What it FAILs: references/plan.md.
The user approved the cut: that approve means make the edit. Never put the stills on the review page and never wait for a second approve (Max, 2026-10-15: users did not like the frames step).
python3 "$S/edit.py" stills edits/<name>
The first run installs the renderer (a few minutes, once; say so first). Writes one still per beat and stills/sheet.png
(beat, time, card kind). Review it yourself; open a single still only to zoom in. Fix before rendering: a box on the face,
a zoom cutting the head, the wrong part of a capture, text too small for a phone, a default AI look (stills-critic can
check). With recipe.json: lib/ai_editor/references.py compare edits/<name>, Read each draft-over-reference sheet and
fix what differs. Then step 6 and render; the user's notes come on the rendered edit. Moving cards by hand only when the user asks: references/render.md "The live preview".
python3 "$S/edit.py" estimate edits/<name>
Prints Laptop:, Modal: and two Other: lines (GitHub Actions, Lambda) with this video's time and cost, then Recommended:: Modal once it is connected, the video is over a minute and Modal is quicker; the
laptop otherwise. render in the profile, or Recommended: Laptop: render there with no question, one line
with the time ("Rendering on your laptop, about 14 s. Say 'render on Modal' to change"). Not set and
Recommended: Modal: ask once, three options in this order with the printed numbers, Modal marked (Recommended), then profile.py set render='"laptop|modal|github|lambda"'.
setup.py modal-connect in the background (the setup skill's Modal step), then render on Modal.Other: lines in the description. On this pick, ask
a second question with the two. GitHub Actions: free, needs gh logged in, the footage goes into
a private repo in their account; ask before creating the repo. Lambda: their own AWS account.
No cloud_cleanup in the profile: ask once "Delete the uploaded footage from <GitHub|AWS> after
rendering?" (Yes (Recommended) / No, keep it there), then profile.py set cloud_cleanup=true|false.Modal picked but not connected: setup.py modal-connect first (above). Lambda picked and
aws sts get-caller-identity fails: the setup skill's Lambda section first.
Write elements, not pixels. After the stills the draft is the scene: skip step 6 and the render, run python3 "${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/scene.py" from-plan edits/<name> once, hand over with round --stage edit --scene (references/review.md "A scene draft"). Render as below only when from-plan refuses (split, board, cover, cutouts) or the user wants the MP4 now.
python3 "$S/edit.py" render edits/<name> # laptop
python3 "$S/edit.py" render edits/<name> --modal # Modal
python3 "$S/edit.py" render edits/<name> --lambda # AWS Lambda
python3 "$S/edit.py" render edits/<name> --draft # laptop, 2/3 size, quick look: render-draft.mp4
All but --draft write edits/<name>/render.mp4. GitHub Actions (--github, then github-push
and github-fetch) and every target's detail: references/render.md. Then, before the user sees it:
python3 "$VPY" "$S/check.py" render edits/<name> [--plan plan.json] [--style edits/<name>/style.json]
FAILs go back to the plan or the cut; at most two fix rounds, then show the render with what is
still listed. A caption contrast FAIL: plan again, then render (plan.py reads the check and steps
those pages up). The full list: references/plan.md.
A loudness ... LUFS or take's own true peak WARN is the take's level, not a fault in the edit. loudness
in the profile: do that, no question. Not set: ask once, then profile.py set loudness='"leave|normalize"':
Your video is quieter than most reels. Make it as loud as Instagram and TikTok expect? (louder: "...louder than most reels. Bring it down to what they expect?") Details: LUFS; the apps play speech at about -14.
- Leave my audio as it is (Recommended). Nothing is touched.
- Make it as loud as the apps expect (or Bring it down). One volume change, never past a -1 dB peak.
Numbers only on the Details line. Check output (FAIL, WARN, "2 frames short") never reaches the user.
Only on the second answer: python3 "$S/quality.py" normalize edits/<name>/render.mp4. It writes
render-normalized.mp4 beside it; hand over that file.
Hand over on the review page (references/review.md), serve and wait in the background: the scene with round --stage edit --scene (step 7), or a render with
python3 "${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/review.py" edits/<name> round --stage edit --video edits/<name>/render.mp4
(no page: start, same flags). A draft that fails one of gate.py's seven checks is refused: fix, render, round again (references/review.md "Draft checks"). On APPROVE: motion skill save, then one AskUserQuestion: Post it / Not now (the post skill). Card and visual changes later: overlays skill (a motion clip: motion skill note); caption, zoom: plan, stills, render, round; cut: cut skill.
Only when the user asks to finish it by hand ("open it in Final Cut", "send it to Premiere"):
python3 "$S/export_nle.py" edits/<name> --to fcpxml|premiere|resolve|capcut|edl|srt|all
Writes edits/<name>/export/. Moving cards render with alpha first (about 0.7 s a card frame; say so).
Which file to open, YouTube chapters for 16:9: references/render.md "Export to another editor".
| message | do |
|---|---|
no cut.mp4 in ... (plan.py, face.py) or cut.mp4 missing (edit.py) | run the cut skill first |
no creator style.json found for the profile's creators | creator-teardown quick mode, then profile.py style again |
note: ... style.json not found; planning with the default style | fine with no creator; profile.py style edits/<name> keeps it with the edit |
no cut.transcript.json (retakes.py captions) | run the cut skill's verify step |
the split layout is vertical only | plan again with --layout overlay |
check.py plan found a FAIL (edit.py stills) | fix the FAIL in the plan, plan again |
... missing (run matte.py) | run matte.py, then stills or render again |
... missing (run sfx.py build, then plan.py) | do exactly that |
no Chrome Headless Shell (capture.mjs) | python3 "${CLAUDE_PLUGIN_ROOT}/skills/setup/scripts/setup.py" remotion, then capture again |
capture.mjs failed <kind> '<word>' | drop that visual or give it another URL; the rest were saved |
Modal is not set up on this computer | the setup skill's Modal step |
the GitHub CLI (gh) is missing / ... is public | setup's GitHub CLI section / a private repo only |
the laptop render failed | references/render.md "If a render stops" |
the Modal render failed / the render failed. Open <url> | say so, offer the laptop render |
scripts/: one script per step above, each with a demo self-check.${CLAUDE_PLUGIN_ROOT}/agents/template-filler.md (haiku), stills-critic.md (sonnet): the helpers.${CLAUDE_PLUGIN_ROOT}/remotion/: the renderer, copied to ~/.ai-video-editor/remotion on every run.references/ai-tells.md (opens in a new tab)references/contracts.md (opens in a new tab)references/motion-design.md (opens in a new tab)references/motion.md (opens in a new tab)references/plan.md (opens in a new tab)references/render.md (opens in a new tab)references/review.md (opens in a new tab)references/shapes.md (opens in a new tab)references/visuals.md (opens in a new tab)scripts/ai_tells.py (opens in a new tab)scripts/capture.mjs (opens in a new tab)scripts/chapters.py (opens in a new tab)scripts/check.py (opens in a new tab)scripts/edit.py (opens in a new tab)scripts/export_nle.py (opens in a new tab)scripts/face.py (opens in a new tab)scripts/gate.py (opens in a new tab)scripts/matte.py (opens in a new tab)scripts/modal_render.py (opens in a new tab)scripts/plan.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
video-editing, remotion, captions, video-rendering, video-export
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)./motionBuilds bespoke motion graphics for an edit, one animated clip per beat (HyperFrames + GSAP), each designed for its line and landing on the spoken word, then lays them on the footage through the style-edit render. Picks the beats that need motion (a count, a list, a flow, a before and after, a run, a mechanism), writes a brief per clip, runs one clip-builder agent per clip at once, gates every clip (lint, layout, render, a frame-to-frame motion check, contact sheets), and falls back to the template card for a clip that fails. Use when the user says "animation", "motion graphic", "animate this", "animate the part where I say X", "make a clip for", "build the animations", or when style-edit or visual-prep reaches the beats that need motion. Not for captions or zooms (style-edit), not for real screenshots and logos alone (overlays), not for a product demo film (product-video).Other plugins' skills for the same job