/ai-editor:product-videofrom cooked.
Generates a product launch, feature demo, or ad video from a website URL by crawling pages, recording real click-throughs, and cutting footage with synthesized music and UI sounds.
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 (story first, smooth before varied, nothing leaves the frame, privacy, no presses that write).
Every question to the user goes in the question box: call the AskUserQuestion tool (2-4 options, the recommended one first). Only in an agent without that tool, ask numbered questions in text.
A URL in. A product video out, made only of the site's real UI, real recorded click-throughs of it, its own
colours and type, and its own words, scored and mixed for this cut. S="${CLAUDE_SKILL_DIR}/scripts",
Run the scripts with python3 on Mac and Linux, py on Windows.
PY="${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/run.py"; python3 "$PY" below runs the editor's venv Python (py "$PY" on Windows).
Work in product/<name>/ in the library (PRINCIPLES.md "Where").
URL -> brief (questions) -> crawl.mjs -> site.json + pages/ (features, pricing, docs, changelog, customers...)
-> pages.md -> use-cases.md (ranked, quoted, sourced) -> the user picks 2-5, ordered as a journey
-> storyboard.md (the story first: hook, reveal, each use case as cause then effect, payoff, end)
-> flows.json (chained) -> record.mjs --states (+ --mobile) -> flows/*.states.json (3x stills of every UI state)
-> story.json beats -> plan (one camera, every frame checked, score + mix) -> animatic -> critic -> user approves
-> render (60 fps) -> check (framing, fill, names, smoothness meter)
Read references/story.md before writing storyboard.md or story.json, references/style.md before judging
the animatic sheet, references/sound.md before changing the sound and references/brief.md for
music rights and logging in.
No renderer yet (~/.ai-video-editor/remotion missing): run the setup skill's Remotion step first.
It installs the Chrome Headless Shell the crawl and the recordings drive. Read the user's taste:
python3 "${CLAUDE_PLUGIN_ROOT}/skills/taste/scripts/taste.py" show.
Start the crawl (step 2) in the background (Bash run_in_background), then python3 "$S/product.py" copy product/<name>:
it waits for the home page (about 50 s; the inner pages load while the questions are asked). Its tagline:
and nav: lines and the headings under them are the options, in the site's own words. Never read site.json (about 20 KB). Then two AskUserQuestion calls, the
recommended option first and marked "(Recommended)", "Other" always open for their own words.
Call 1, what gets built (four questions):
tagline: line of product.py copy / Other.product.py copy's headings
and nav: line, each in the site's words.Call 2, one question to confirm the defaults. List them in the question, then: Use these (Recommended) / Change some (ask only the ones they name, with the options below).
references/style.md, one line each).--fps 60 on request: smoother camera
moves, twice the render time.)product.py music (references/brief.md "Music").The first option of each is the default.
Write the answers to product/<name>/brief.json (shape: references/shapes.md). plan refuses without it. Example brief for nextwork.ai: must_show = the Create button (prompt your
own project), search other people's projects, roadmaps, step-by-step guides, the portfolio in Your Library.
Logging in (on "log in now"): follow references/brief.md "Logging in": say where the login is kept
first, then node "$S/login.mjs" login <url> opens a separate Chrome window they log in to by hand.
Recording stays read-only (no create, delete, pay, publish or invite without a yes in the question
box) and blurs personal data; show the user the flows/<id>-blurred.png sheets before rendering.
node "$S/crawl.mjs" <url> product/<name> [--include <brief urls>] [--pages 20] [--app <url> --cookies cookies.json]
Started in step 1; about a minute, product.py pages waits for it (a brief page it missed: rerun with --include).
The home page (2x tiles, element crops, brand from computed styles, logo, font files, the page's own videos),
then, four at a time beside it, up to 20 inner pages from the site's nav and sitemap.xml, ranked features >
pricing > customers > templates > docs > changelog > blog, the brief's URLs first. Each page: its headings and lines, its controls (tabs, buttons, inputs), its
videos and GIFs, a screenshot. Look at images/tile-0.jpg: a blank tile means the site blocked the
headless browser; say so and offer another URL.
python3 "$S/product.py" pages product/<name>
Writes pages.md: every page compact (never raw HTML), the brief on top. Read it and write use-cases.md: who it is for and
3-4 jobs ranked, each with the site's own words quoted, the source URL, and the flow that would show it.
Brief items first, marked [brief]. Ask in the question box which 2-3 to feature (recommended first).
Write storyboard.md first (references/story.md "Story first"): the beats in story order, each with its
job, its words (the site's, at most ~5), the capture it uses and how it hands off to the next. Order the use
cases as the user's journey, so each one leaves the screen where the next begins.
Then flows.json, one flow per use case in that order, chained: each flow's url is the page the last
one ended on. Steps as in record.mjs's header (text=<the site's words> or a CSS selector).
node "$S/record.mjs" product/<name> flows.json --states # every UI state as a 3x still
node "$S/record.mjs" product/<name> flows.json --states --mobile # the phone layout, for 9:16
Each flow writes flows/<id>.states.json and flows/states/*.jpg: the start, each step's after-state, the
focused field and the typed text with the caret measured per character, a tall still for each scroll. It
waits for each view to finish loading (pictures, skeletons) before taking it. Look at the states, not every
file: a loading page, a click that opened the wrong thing, a modal you did not want. Fix the flow and capture again
(--only <id>). Without --states it records screencasts (flows/*.mp4) for the shot film below.
{"write": "..."} types into whatever has focus (a search a button or shortcut opened); a link that opens
a new tab is followed in the same one; with a dialog open, a text= target is looked for in the dialog
first; a flow may carry "mobile": {"steps": [...]} where the phone layout's controls differ. Each take
also records the page's headline, so the opening never crops it.
Write story.json as beats from the storyboard (shape: references/shapes.md; rules: references/story.md): hook, action and result per use
case, payoff, end. Each beat's steps are its flow's step numbers.
python3 "$PY" "$S/product.py" plan product/<name> --story story.json --style linear --aspect 16:9 [--music generated|eleven|none|audio/<track>] [--sfx subtle|none] [--vo audio/vo.wav]
Length: about 8 s a use case (40 s for five), the hook, payoff and logo included, unless the user asked
for a length (--length, or "length" in the story). The plan paces the result, hook, payoff and travel
moments down to fit, never below reading time, and keeps the story, the steps and every per-frame check.
It stops shortening where the camera would get busier than the reference films (journey.py SPEED_BAR,
from the planned camera): smooth beats short, so a site with long pages can run a few seconds over.
A story of beats plans the rendered film (journey.py): the pages on one canvas left to right, one camera
on one easing, a drawn cursor, every change revealed in place, 60 fps. The plan checks every frame from the
camera path (the held focus in the safe frame and clear of the words, the cursor whole or hidden, every
line of text whole or out of frame, no capture past its own resolution), re-plans the camera when a frame fails, and exits 1 on what is left. A sparse
page is framed tighter on its detected content (references/story.md "Framing guarantee"). The score follows
the beats (a section per beat, the chord changing at each), effects land on the clicks, keys and new pages; -14 LUFS, -1 dBTP. A story of shots plans the
older shot film (screencasts and the shot library, each shot naming its job).
python3 "$PY" "$S/product.py" animatic product/<name> --plan plan-linear-16x9.json
Writes animatic-<tag>/sheet.png, the animatic sheet: the start, middle and end of every beat, captioned with its job, time
and words, in seconds. Run the storyboard-critic agent on the sheet; apply its fixes to the story (order,
steps, words, a capture) and plan again; two rounds at most. Then show the sheet and ask in the question
box: Approve (Recommended) / Change the order / Swap a shot / Redo a capture. Do not render
before Approve. On Approve, stamp it: python3 "$PY" "$S/product.py" approve product/<name> --plan plan-linear-16x9.json.
render refuses a plan with no stamp, or one whose plan or story changed after it (scripts/gates.py).
stills still makes the denser per-shot sheet for the shot film.
Only after step 6's Approve. "Just render it" on a plan with no stamp still goes through step 6 first: make the animatic and ask Approve.
python3 "$PY" "$S/product.py" render product/<name> --plan plan-linear-16x9.json [--draft | --modal | --lambda]
A 30 s video renders in about a minute on a laptop. The same renderer and render paths as style-edit
(edit.py): laptop by default; --modal or
--lambda once the setup skill has set those up. Writes render-<tag>.mp4.
python3 "$PY" "$S/product.py" check product/<name> --plan plan-linear-16x9.json
The camera: every zoom changes size in log space (the same scale factor every frame), takes 0.9-1.4 s,
eases in and out (sine.inOut; expo.inOut for arc), and zooms about the target. plan and check print
WARN for a zoom faster than 7x a second at its peak, a speed that jumps between frames, or a continued
camera that changes speed at the join.
FAIL: a render older than its plan or story, words not on the site or over 7 words, emoji, an AI tell the site's brand does not own (purple-blue, neon on black, a flat saturated ground, heading + subline
check also runs the framing on every frame, the
focus found by template match where the plan put it, the product filling the frame by detected content
(edges, not colour), OCR for the logged-in name, and the smoothness meter (meter.py: judder, dead stops,
jerk, carry across cuts) against the Linear bar in references/style.md. Also make a 2 fps strip and look at it:
ffmpeg -i render-<tag>.mp4 -vf "fps=2,scale=300:-1,tile=12x5" -frames:v 1 strip-<tag>.png.python3 "$S/product.py" share product/<name>
share.txt: the caption (checked: only the site's sentences and its domain), the URL, and alt text
that says what is shown. Hand the render over on the review page (../style-edit/references/review.md;
folder product/<name>, alt for a second tag), give the paths of the sheet and share.txt. Notes about taste go to the taste skill.
A logged-in run: say where the login is kept (node "$S/login.mjs" where <domain> prints the folder)
and that it stays logged in on this computer until removed. Once the video is approved, ask in the
question box "Log out of on this computer?" (Yes, delete the saved login (Recommended) / Keep
it for the next video); on yes, node "$S/login.mjs" logout <domain>.
| message | do |
|---|---|
no brief: ask the brief ... / brief.json has no ... | ask those in the question box (step 1), write brief.json |
plan-<tag> is not approved / changed after it was approved / no animatic-<tag>/sheet.png | step 6: animatic, show it, ask Approve, approve |
story names '...', which is not in site.json elements / click target ... not in site.json | product.py copy lists the elements; use one of them |
not the site's words: ... | replace those words with the site's own (pages.md) |
--rights is required | ask who holds the rights (references/brief.md "Music") |
LOGIN: the site wants a login (music) | ask before retrying with --cookies-from-browser <browser>, or offer the generated score |
No ElevenLabs key | offer on-screen words or their own recording |
Modal is not set up on this computer | the setup skill's Modal step, or render on the laptop |
a blank images/tile-0.jpg after the crawl | the site blocked the headless browser: say so, ask for another URL |
scripts/crawl.mjs: the crawl, home page and inner pages. Reuses style-edit/scripts/capture.mjs (Chrome binary, cookie banners).scripts/record.mjs: UI states as 3x stills (--states) or screencasts, desktop and --mobile; logged in via a profile, read-only deny-list, auto-blur (the logged-in account's own name and handle read from the session into flows/whoami.json, avatars, profile names, emails).scripts/journey.py: the rendered film's plan (canvas, camera, cursor per frame), the framing guarantee, the render checks. journey.py demo self-checks.scripts/meter.py: the smoothness meter. meter.py demo self-checks.scripts/login.mjs: login (a visible window on a dedicated profile), check, logout, where.scripts/product.py: pages, record, copy, plan, animatic, stills, approve, render, check, meter, share, tts. product.py demo self-checks.scripts/gates.py: what plan and render refuse without (brief, approval, music rights, story order). gates.py demo self-checks.scripts/sound.py: the score, the effects, the mix and the master. sound.py demo self-checks.audio/LICENSES.md: every sound's licence and evidence (all synthesised; what was evaluated and why not).references/story.md: story.json, the shot library, flows, the words rules, purposes, 9:16.references/style.md: what Apple, Linear, Stripe, Arc and Raycast films do, measured; how the styles borrow it; what to look for.references/sound.md: their sound, measured; what sound.py does with it.references/brief.md: music rights and logging in, for the brief.references/brag.md: what this takes from latent-spaces/brag (MIT) and what it does differently.../../remotion/src/product/: ProductVideo.tsx (the composition, page/lift/media/flow shots), Journey.tsx (the rendered film), Shots.tsx (the shot library), kit.tsx (styles, geometry, words, the logo).../../agents/storyboard-critic.md: reviews the animatic against the checklist.audio/LICENSES.md (opens in a new tab)references/brag.md (opens in a new tab)references/brief.md (opens in a new tab)references/shapes.md (opens in a new tab)references/sound.md (opens in a new tab)references/story.md (opens in a new tab)references/style.md (opens in a new tab)scripts/crawl.mjs (opens in a new tab)scripts/gates.py (opens in a new tab)scripts/journey.py (opens in a new tab)scripts/login.mjs (opens in a new tab)scripts/meter.py (opens in a new tab)scripts/product.py (opens in a new tab)scripts/record.mjs (opens in a new tab)scripts/sound.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
product-video, demo-video, ad-creation, website-to-video, remotion
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