/ai-editor:setupfrom cooked.
Installs and verifies dependencies for the ai-editor plugin: Python, ffmpeg, Node, git, Remotion renderer, transcription models, and optional API keys (Gemini, ElevenLabs). Also sets up cloud renders on Modal and GitHub Actions.
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). Only in an agent without it, ask numbered questions in text.
The user may never have used a terminal. In the terminal flow, say what each tool is for in one sentence before installing it, and check after every step.
U="${CLAUDE_SKILL_DIR}/scripts/setup.py". Run it with python3 on Mac and Linux, py on Windows.
On a first run (no profile, or doctor not Ready.; the session-start line says "First run"), before
any install or question, and with no question box (the page is the setup; keys are typed there):
python3 "$H" serve and python3 "$H" wait, both run_in_background,
H="${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/home.py" (stdlib only: it needs nothing installed). Say one line: "The editor is open in your browser.
It is getting your computer ready; pick a creator there meanwhile."python3 "$U" install-all --report (run_in_background). It runs steps
3-4 in order, never asks, and shows each on the page's "Getting your computer ready" bar.${CLAUDE_PLUGIN_ROOT}/skills/start/references/home.md says. A teardown
job needs the Python packages step done first (it uses yt-dlp).Not ready. and one fix per line, also shown on the page: do each fix (step 2 for
ffmpeg, Node, git, Python), then run install-all --report again. Done steps take seconds.No browser, or the user wants the terminal: say the plan (Tools 2-10 min, required; Keys 5 min, optional; Cloud renders 3 min, optional; Your style 2 min), then steps 1-8 here.
Every step can be skipped and finished later: on a skip, run python3 "$U" later <step>
(gemini, elevenlabs, modal, style, matte) and say "Saved. Say finish setup
any time to add it." When the user says "finish setup" (or "add my key"), run
python3 "$U" todo and go to the steps it lists (every optional step not done yet).
Put a header on every step, e.g. Step 2 of 4, keys: Gemini (1 of 2), and say in one short line each what it is, why it helps, what it costs, what skipping means.
If a script prints an error, say its message in plain words. Never open or debug the setup scripts: their messages say what to do.
python3 "$U" doctor
Every line reads ok or FIX with the exact command for this computer. Ready. at the end means
the tools are done: skip to step 5 (keys). A FIX ... run: setup.py repair line means something
moved off the pinned versions (an update, or a package changed by hand): run python3 "$U" repair,
it puts back the exact pinned set. What is installed is recorded in ~/.ai-video-editor/env.json.
A saved login row is a browser profile product-video logged in to a site with: it stays logged in
on this computer. Say which sites and how long ago each was used, and ask in the question box
"Delete these saved logins?" (Keep them (Recommended) / Delete , one option a site); on a
delete, node "${CLAUDE_PLUGIN_ROOT}/skills/product-video/scripts/login.mjs" logout <domain>.
If python3 itself is missing:
brew install python. No Homebrew? See step 2.winget install -e --id Python.Python.3.12, then open a new terminal.sudo apt install -y python3 python3-venv (Fedora: sudo dnf install -y python3; Arch:
sudo pacman -S --needed python).Fix each FIX line top to bottom with the command doctor printed. What each one is for:
The user runs these themselves, in their own terminal, because they ask for a password or open a window:
brew is missing). Give them
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
and tell them to run the Next steps lines it prints at the end.sudo.xcode-select --install opens a window. Tell them to click Install and wait.On Windows, a winget install only shows up in a new terminal. Ask them to close and reopen
Claude Code after installing, then run doctor again.
Steps 3 and 4 are what install-all runs (step 0). Every step is safe to re-run: done work prints
up to date and downloads nothing. Without the user watching (CI), python3 "$U" bootstrap runs
them and ends with doctor.
python3 "$U" venv
python3 "$U" model
venv installs faster-whisper (free transcription on this computer), numpy, pillow and yt-dlp
into the venv in AI_EDITOR_HOME, at the exact versions in requirements/requirements.lock. model downloads the transcription model once, about 500 MB, and checks its sha256.
Python 3.10+ needed: go back to step 1's Python line. Run the venv step first.: run venv.
python3 "$U" remotion
Copies the renderer to ~/.ai-video-editor/remotion and installs exactly its package-lock.json
with npm ci (about 700 MB with Chrome's headless shell). This is the biggest download: say so
first. A creator teardown can run meanwhile: it does not need the renderer. npm missing: install Node (step 2) first.
Then the motion clip tools, for bespoke animations (the motion skill):
python3 "$U" motion
npm install of the pinned HyperFrames CLI and GSAP into ~/.ai-video-editor/motion (about 120 MB, 10-60 s),
and a headless Chrome for them (uses the installed Chrome, else downloads about 200 MB). Say the time first.
Skipped: animations fall back to the template cards.
Remotion is free for individuals and companies of up to 3 people. Bigger companies need a Remotion company licence (remotion.dev/license). Say this once.
Two keys, one at a time, each optional. Recommend Gemini. For each key, say what it is for
and what it costs (references/keys.md has both lines per key), walk the click path, save it, then
check it. If the user says no, the editor still works and Claude does that job instead.
The direct links (give them as clickable links and open them too):
Never ask for a key in the chat. Anything pasted here stays in the conversation. The key goes
from the clipboard straight into the key file. For each key: open its page (open <url> on Mac,
start <url> on Windows, xdg-open <url> on Linux), list the clicks, say what the key looks like
(a long line of letters and numbers), then ask in the question box: Copied (I save it from your
clipboard) (Recommended) / Skip. Tell them to copy only the key right before they pick Copied.
pbpaste | python3 "$U" setkey <name>.powershell -NoProfile -Command Get-Clipboard | py "$U" setkey <name>.python3 "<full path>/setup.py" setkey <name> to paste in; they paste the key when it asks (it
stays hidden).<name> is gemini or elevenlabs. setkey sends one free test request before saving
and never prints the key:
Tested: the <name> key works.: done.Nothing saved: ... (the clipboard held something else) or Not saved: the service rejected this key: they copied it wrong or only part of it; ask them to copy it again.python3 "$U" certs.Keys live in ~/.config/creator-teardown/.env, readable by the user only and shared with
creator-teardown ($AI_EDITOR_HOME/.env instead when AI_EDITOR_HOME is set). Check them all at the end:
python3 "$U" keys
Only to a user who skipped ElevenLabs and wants better cuts, offer CrisperWhisper
(references/keys.md, last section: non-commercial weights, 1 GB).
Offer it once, in the question box: "Set up cloud renders with Modal? (one login in the browser)" with
Later (Recommended) first and Connect Modal second. Also run it when the user picks Modal at
render time and doctor shows modal as not ready. Follow references/cloud.md "Modal": what it
is, what it costs, the card, then one step (setup.py modal-connect, or Connect Modal in the window).
Run doctor again until it prints Ready. Skipped keys show as --; that is fine. Then
python3 "$U" install-launcher: the nextwork-editor command opens the editor's window from any
terminal, with a listening Claude (--window-only: the window alone; uninstall-launcher takes it off).
Then say this line once: "Turn on auto-updates: type /plugin, open Marketplaces, pick nextwork,
choose Enable auto-update." Never write to their ~/.claude files for them.
Last, taste. Ask what is still missing:
python3 "${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/profile.py" missing --style
Ask those ids in the question box, at most four per call, using the wording, options and set
commands in ${CLAUDE_PLUGIN_ROOT}/skills/start/references/intake.md (the rows that are not
per video), in its three style calls: what to copy (platform, creators, what to take, liked videos),
what makes it yours (brand, own photos, avoid, captions; a brand file goes on the home page's Brand page or
through lib/ai_editor/brandkit.py import <file>, and a kit there answers brand), then sound, "Let graphics sit behind
you?" and "Have a raw take and the version you posted? I can learn how you cut." Every question has
a recommended first option. On yes to the last, run the taste skill's "Learn from a past edit".
On "use the defaults" (or once the three calls are done), run python3 "${CLAUDE_PLUGIN_ROOT}/lib/ai_editor/profile.py" defaults:
anything left unanswered is saved as its default, so start never asks these again.
On Yes to graphics behind you, install-all has already downloaded the matting model (15 MB). Run
this to test it (it downloads the model too if that step failed):
python3 "$U" matte
Check: it prints Tested: cutting the speaker out works. On No, skip it: the cutout step never runs.
Then offer, in one question box, to study those creators now so the first edit is quick: "Break down @handle's style now? (about a minute per creator)" with yes first. On yes, run the creator-teardown skill in quick mode for each creator and each liked video link. On no, start does it later. End with: "Ready. Type nextwork-editor in a terminal, or say edit my video."
Only when the user picks Other at render time, or asks:
references/cloud.md "The GitHub CLI".references/lambda.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Python, FFmpeg, Node, Git, Gemini, ElevenLabs, GitHub Actions, AWS
18 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).npx claudepluginhub nextwork-projects/ai-video-editor-cooked --plugin ai-editorOther plugins' skills for the same job