/remotion-director:createfrom remotion-director
Generates a finished motion piece (vertical 1080x1920, landscape, or square) from a brief using the jia-yi-huan critic-loop pipeline. Remotion-based design+build agent drafts and renders, then an aesthetic critic judges pixels iteratively.
Ships in remotion-director. 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.
None: SKILL.md is the whole skill.
Turn a brief into a finished motion piece (default 1080×1920 vertical; landscape/square also available) through the 甲乙环 (critic-loop) pipeline. Quality is produced by a unified design-and-build agent working in one continuous context — each draw seeded with its own idea-level direction, judged on its actual rendered frames, picked at its r1 preview (by the user, or by a blind selector), self-checked, then polished — by the critic loop, or by the user's own eye — with the user's eyes as the final gate.
You (the agent reading this skill) are the orchestrator. You spawn the sub-agents, run the render tooling, and ferry critic verdicts verbatim — you do NOT design, and you do NOT judge aesthetics. Every role prompt and protocol reaches the sub-agents by them Reading the verbatim definition/protocol files — never by you paraphrasing them.
The one rule that protects everything: do not summarize any role definition or protocol (the builder, the direction lister, 甲, the blind selector) in your own words. Wording only binds an agent when that agent has the literal text in its context. Always delegate by Read (
${CLAUDE_PLUGIN_ROOT}/…), never by retelling.
The pipeline needs a brief and a spec before any draw. Collect both in Step 0 (below); for any you can't get, propose a sensible default and let the user accept it in one line.
remotion-best-practices skill's remotion-markup node (audio.md / sfx.md — <Audio>, remotion.media remote SFX) for what the engine supports, and source CC0 assets yourself — the plugin ships a small pack of recorded CC0 sounds (assets/sfx/, listed in its index.json; the builder's definition says where), and the pipeline validates no audio. (Note: sfx.md uses @remotion/sfx, which is deliberately NOT in the base dep set — audio being experimental, the builder installs it on demand with npx remotion add @remotion/sfx, which resolves the version matching the prepared engine.)three / @remotion/media installed up front. The workspace automatically prepares the latest stable Remotion + three before drawing; an older/leaner target can drift on API, so knowing the target version before drawing avoids a port-time surprise. (Porting is a user-side activity the pipeline doesn't itself verify.)COMMISSION.md and carry it in the brief, so the direction-lister and every builder receive it; the builder works out how, installing what it needs. If something truly can't be done in this environment, say so plainly and let the user decide — never refuse it only because the defaults don't mention it. Say what the pipeline can't check: sound, voice included, is judged only by the user's own ears. A credential the user provides (an API key) reaches the builder through the environment, never written into a file. Don't quiz the user for extras.blind-selector agent picks on the same previews. Either way the pick happens at r1, before any self-check../<piece-slug>/ in the user's CWD.The critic loop has no round knob — it runs until 甲 reports CONVERGED: YES, then the user's eyes are the final gate.
A real run starts from the user, not from a guess. Before scaffolding or drawing, confirm the commission — the brief, the spec, and the production knobs from Inputs. Do not start drawing until this is settled.
durationInFrames (the engine needs one), but that number is 乙's own internal decision, never aligned with the user — so it is not a promise, and 乙 may change it later. Same for any second-count 乙 writes into DESIGN.md: it's a one-shot draft value, not a constraint.Inputs). They may turn it off, or ask for more — voice-over, their own music (extra requests).<piece-slug>/ folder in the user's CWD. Offer to change it.Inputs) into the brief; don't quiz them for more.<WORKSPACE>/<piece-slug>/COMMISSION.md, together with the model ID you are running on and the model each sub-agent role runs on (they inherit yours unless their definition overrides it) — a run is only comparable to another if you know which model made it. If the user said "just go / your call", fill every blank with the defaults above, state what you chose (including N, that the user picks the base, that the critic loop polishes it, and that sound is on), and proceed — that statement is the confirm-back, with nothing to wait for. Note that "your call" on the duration means free: you did not put a number in front of them to accept.Carry the resolved spec forward: it sets the composition's width/height/durationInFrames/fps that the builder hard-wires into <Composition id="piece">, and it's part of the brief context every sub-agent receives.
The pipeline is validated at 1080×1920 and 1920×1080. Square uses the same harnesses but is not yet smoke-tested; if the user picks it, say so (it's a first-class option, just less-trodden) and watch the first render closely.
Engine and skill versions are engineering inputs owned by upstream, not design constraints imposed by this plugin. After the commission has resolved the workspace, run once before starting any builders:
node "${CLAUDE_PLUGIN_ROOT}/tools/check-env.mjs" --workspace "<WORKSPACE>"
This creates a missing workspace, resolves npm’s stable latest Remotion release, updates all declared remotion / @remotion/* packages together, and installs missing tooling. For RBP, it compares the full official upstream skill with an existing global installation and updates that installation in place only when contents differ; without a global installation it installs under the workspace’s .remotion-director/. Existing unrelated dependencies and manifest fields are preserved. Exact versions in the workspace manifest and lockfile record this run’s resolved environment; the next new piece queries upstream again. --fix remains an alias for this automatic preparation.
Use the printed RBP_SKILL_PATH (also recorded with the upstream revision in <WORKSPACE>/.remotion-director/environment.json) in every builder task. The builder reads that exact synchronized installation, including when it is global. Upstream owns the skill layout and its release schedule; an RBP/engine version difference is informational, and actual installed exports determine API availability.
Node.js, npm, Git and a full ffmpeg build must be available. The check exercises ffmpeg rawvideo, scale and crop support. Install missing host tools as needed under the host’s permission policy. Engineering preparation includes updating an existing global RBP installation; follow host filesystem permissions, with no separate design approval. If network access, install or verification fails, repair the engineering problem and rerun; do not claim the environment is current or start drawing after a failed preparation.
Prepare the environment before parallel draws; a global RBP update is shared by other projects using it. During a run, use check-env.mjs --workspace "<WORKSPACE>" --check for a read-only check without updating. If an engineering issue requires another upgrade, coordinate it through the orchestrator while affected builders are stopped, then re-render affected outputs. This prevents parallel dependency writes; it is not a fixed-version design policy.
Each draw is <workspace>/<piece-slug>/draw-i/, holding index.tsx, DESIGN.md, FIXES.md and out/. ⟨RUN_DIR⟩ is that draw’s absolute directory; ⟨WORKDIR⟩ / <WORKSPACE> is the absolute project root holding package.json and node_modules (pass it explicitly; it need not be the draw’s immediate parent).
Left alone, independent draws tend to converge on the same idea, and then the pick has nothing real to choose between. So before any builder exists, one separate concept call lists the directions the draws will take — different at the idea level (the core conveying mechanism and the key action relation; a different subject or palette alone is the same idea).
Spawn ONE direction-lister agent — fresh context, one-shot. Give it only the brief, the resolved spec from Step 0 (aspect/resolution, duration, fps, on-screen copy, audio intent) and N. Nothing else: no workspace paths, no earlier draws or directions, and no wording of your own about how the directions should differ — its definition is the verbatim prompt (Delegate by Read). Wait for its explicit message: exactly N directions, === 方向 1 === … === 方向 N ===, one or two sentences each, ranked by its own judgment of potential. If the list is malformed (not exactly N numbered directions), ask the same lister to resend it in its format — a format fix, not a content request.
Every direction is dealt, the lister's own 方向 1 always among them. You never drop, merge, re-rank, reword or judge a direction (you never judge design). Write the list verbatim to <WORKSPACE>/<piece-slug>/DIRECTIONS.md under a batch heading that also records the deal (batch 1: 方向 1 → draw-1, 方向 2 → draw-2, …). The file is pipeline-internal: no builder, judge or pick material ever includes it.
Spawn N builder agents (one per draw), each with: its one direction from Step 1.5, verbatim (the batch's i-th draw takes 方向 i of that batch's list — never the other directions or DIRECTIONS.md), the brief, the resolved spec from Step 0 (aspect/resolution, duration, fps, copy + audio intent), its absolute <RUN_DIR> (…/draw-i), the duration authority (locked ⟨N⟩s or free, verbatim from Step 0), the absolute <WORKSPACE> root (the dir holding node_modules + package.json; the builder needs it for the NODE_PATH prefix on every render command, without which the first render crashes Cannot find module '@remotion/bundler'), the prepared RBP_SKILL_PATH, and the product contract (register <Composition id="piece"> with the spec's width/height/durationInFrames/fps). Its definition is its prompt (you do not restate it). Each designs the whole piece from its direction — the direction is a seed; the design is the builder's own — then builds and renders its preview (render-arm, which also writes the preview's review/) to out/r1 — the draw's first successful, non-white full render (throwaway frame checks of its own before it are fine). Then the builder reports draw-i preview ready and stops — no self-check yet; that belongs to the picked draw only (Step 3.5).
review/overview-1.png; this is your engineering check, not something you show the user).draw-i preview ready report naming its preview output dir (normally out/r1; if an earlier render attempt crashed or came out white, the builder names the later unused dir it actually rendered to). Do not read disk to guess whether a draw finished or which render is its preview. Hold Step 3 until all N have reported preview ready.Precondition: all N builders have reported preview ready (Step 2). Only then pick. The user or the blind selector picks, as recorded at Step 0 — you, the orchestrator, never pick. Nobody has self-checked yet: the pick is for the idea and direction that can go furthest, not for the fewest current flaws. Both modes choose among the same dealt draws on their previews alone — the directions behind them are never shown.
Default — the user picks. Do not spawn the selector. Give the user only each draw's preview video.mp4 — no overviews, no frames, no DESIGN.md, no directions, no code, no builder notes. Use neutral labels (A, B, C…) assigned in a random order, copy each video to a neutral file name (e.g. <piece-slug>/pick/A.mp4; a fresh folder after a redraw) so its path does not reveal the draw, and keep the label → draw mapping to yourself. Add exactly one line of guidance, in the user's language: this is a first version, not yet self-checked or polished — pick the one whose idea and direction can go furthest, not the one with the fewest flaws right now. Take their answer as given (any draw, with or without a reason), append it to COMMISSION.md (label, draw, the reason if given), and continue with that draw as the winner. Don't argue for or against a draw.
The user's words at the pick (they saw your draw as "⟨label⟩"):. The builder takes them into its self-check. Record them in COMMISSION.md with the pick. They are not a polish round: in 亲自打磨, Step 4b still starts by showing the user the settled video.COMMISSION.md (the user's words as given, and the updated brief), then run Step 1.5 again: a fresh direction-lister on the current brief and a fresh, independent list for the N new draws. Do not hand it the earlier directions — "avoid what was already tried" would turn the list into a novelty objective. Append the new list to DIRECTIONS.md as the next batch (its 方向 1 → the first new draw, and so on), then run Step 2 on the current brief and the same commission with N fresh builders in new draw dirs (continue the numbering: draw-(N+1)…; leave the earlier draws on disk untouched), and pick again at their previews.交给 AI 挑 — blind select (chosen at Step 0, or handed over at pick time). Invoke the critic-loop skill's selection step: spawn the blind-selector agent with the brief + the N candidate dirs — each draw's preview dir as the builder reported it (…/draw-i/out/r1/ with its video.mp4 and review/, or the later dir the builder named), and never the directions. It returns { winner, reason } selecting for potential (highest ceiling after self-check and polishing), not fewest current flaws. Append the winner and reason to COMMISSION.md.
Tell the picked draw's builder (its SAME instance) that it was picked: it now self-checks per its definition. If the user said anything about this draw at the pick, it goes in this message under the fixed line from Step 3. Tell every other builder its draw is not picked and end it — losing draws do not self-check or render further.
Wait for the picked builder's explicit draw-i settled report naming its canonical out dir — it is NOT always the preview dir; self-check may have re-rendered to r2/r3/…. Verify that output's video.mp4 and review/ before Step 4. The preview is never handed to 甲 unless the builder's settled report names it as canonical.
The default polish (skip to Step 4b if the commission chose 亲自打磨). Run the critic-loop skill's loop, ferrying verbatim. Apply the 版本交接 rules in CRITIC-PROTOCOL.md: keep the review round separate from the render version, take canonical from explicit completion reports, and allocate unused output directories for re-renders.
aesthetic-critic (甲) instance, design-blind, with the brief + the winner's canonical review materials as the builder reported them when it settled (Step 3.5) — no DESIGN.md, no code. Fill the protocol slots: ⟨BRIEF⟩, ⟨RUN_DIR⟩ (the winner draw dir, absolute), ⟨WORKDIR⟩ (workspace root), ⟨REVIEW_DIR⟩ (the canonical output's review/, absolute) and ⟨VIDEO⟩ (its video.mp4, absolute). This is review round 1 even if the builder self-checked through render r3. Verify the reported video and review dir exist before dispatch; missing or conflicting paths require a corrected handoff, never a fallback to r1 or the highest directory number.⟨RUN_DIR⟩/CRITIC-VERDICTS.md with the review round and reviewed output path. Fill the ferry message's ⟨REVIEW_ROUND⟩, ⟨CANONICAL_OUT_DIR⟩, ⟨REVIEW_DIR⟩ and unused ⟨NEXT_OUT_DIR⟩ explicitly. The builder handles the verdict per its definition (fix, or a pixel-grounded rebuttal), re-renders there, and SendMessages an explicit round ⟨REVIEW_ROUND⟩ done naming its actual final output dir after verification (again: not idle — wait for the message). It can advance beyond the assigned initial output. Verify that reported output's video.mp4 and review/, then update canonical and ferry that exact review dir and video with the next review round number to 甲. (A persistent 甲 fed stale materials will file already-fixed defects as live ones and carry that poison into every later round; if you realize 甲 was fed a stale or wrong version, the only clean fix is to shut that 甲 down and respawn a fresh one on the correct materials.)duration blocked (a locked total can't hold the content), surface its report to the user and let them decide — relax the lock (then tell the builder the length is now free) or keep it (tell the builder to make it fit as it stands). Do not decide this yourself, and never let a locked total be silently overrun.CONVERGED: YES — there is no round cap. 甲 is a persistent instance with cross-round memory, which is exactly what makes it converge fast (typically a few rounds); do not impose an artificial ceiling that stops it while it still has high-/med-severity items. The converged result is the canonical output 甲 actually reviewed and marked converged.Throughout: you only orchestrate + ferry verbatim + verify pixels landed. You report neutral pixel phenomena if asked, never aesthetic conclusions — all visual judgment lives in the design-blind 甲乙环.
No 甲 is spawned. First show the user the settled canonical video.mp4 (Step 5's presentation); nothing goes to the builder in this step before they have seen it. Whatever they volunteer about it — a phenomenon, a wish, a single word — goes verbatim to the picked builder's conversation (the same continuous-context 乙), with the revision number K (1, 2, …) and an unused absolute ⟨NEXT_OUT_DIR⟩ allocated by the 版本交接 rules. Archive each comment verbatim to ⟨RUN_DIR⟩/USER-NOTES.md with its revision number.
revision ⟨K⟩ done naming its actual final output dir; if it thinks an item should not change, it says why with pixel evidence. Verify the reported video.mp4 and review/, update canonical, and show the user the new video, together with any such explanation verbatim.duration blocked report is handled as in Step 4.4.Present the canonical piece for the user's own eyes, the final gate, outranking every VLM judge: the video ⟨CANONICAL_OUT_DIR⟩/video.mp4. The user only watches the video; don't add overviews, frames or notes. The version the user judges must be the version that ships. If the duration authority was free, say how long the piece came out (X seconds) — the user picked "leave it to the designer", not "surprise me".
Do not declare the piece shipped on 甲's CONVERGED: YES alone. The user's verdict is final. If after the critic loop the user voices what they don't like, that switches the piece to 亲自打磨: continue with Step 4b from that comment.
duration blocked, and the user decides. Only an explicit "don't constrain it" makes the length 乙's own (and therefore movable).CONVERGED: YES is necessary, not sufficient.direction-lister lists N idea-level directions (Step 1.5). Each builder gets exactly one, verbatim, and never sees the others; the lister's own 方向 1 is always dealt. You add no diversity or novelty wording of your own, and never edit, re-rank or judge a direction. Directions never reach the user's pick materials, the blind selector or 甲.preview ready + their preview dir after r1, then wait. Hold the pick until all N report preview ready; never pick on a draw that is still building or rendering.settled + its canonical out dir after its self-check (self-check may have moved it past the preview). Hold Step 4 / 4b until it does; never hand 甲 or the user a preview the builder has not settled on, or a mid-self-check snapshot. Then it reports round ⟨R⟩ done (critic loop) or revision ⟨K⟩ done (亲自打磨) with its actual output dir, or duration blocked.{winner,reason} back to you by message before idling — if a one-shot judge ends its turn without sending the result, ask it for the result; don't go fishing on disk.<RUN_DIR>/REPORTS.md, 甲 saves every verdict as <RUN_DIR>/critic-crops/round-⟨R⟩-verdict.md — and take the report from that file. The agent wrote it, so it counts as its report, not as an inference from disk.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
2 skills in this plugin
npx claudepluginhub zane-0x5a/remotion-director --plugin remotion-director2 plugins in one repository ship this exact skill · first indexed Oct 19, 2026
Other plugins' skills for the same job