Motion choreographer

From event4u-app/agent-config · View interactive version

Motion choreographer is an AI agent skill from the GitHub repository event4u-app/agent-config. Locked still + blueprint → provider motion prompt: camera, motion, physics, audio sync, for Veo/Kling/Sora. Code film → code-film.

How to use this skill

Skill file

motion-choreographer

Turn an approved still + the 12-block scene blueprint into a

provider-tuned motion prompt that the target video adapter

consumes. Camera choreography, primary subject motion, secondary

environment motion, physics constraints, and — when the adapter

declares audio: native — a synchronized audio direction block.

Reads adapter capabilities from

CODE0;

never speaks to a network API.

When to use

operator-pick.sh) and the next step is motion + audio direction

for the video adapter.

motion prompt has not been emitted yet.

same scene retuned for the new adapter's capability profile.

Do NOT use when:

CODE0 → parse-blueprint.sh

first.

must complete first.

Procedure

Step 0: Inspect

  1. Read scenes/<id>/blueprint.json — fail loud if missing.
  2. Read scenes/<id>/selection.json — fail loud if missing; the

locked image path is required as the motion anchor.

  1. Read the target adapter's capability via

scripts/ai-video/adapters/<id>.sh capability. Cache audio=*

for Step 3.

  1. If a character.json lock exists, load it verbatim — identity

tokens are immutable.

  1. Continuous take or connector asked for? Read the model's

start_frame / end_frame first —

scripts/ai-video/adapters/<id>.sh capability --model <m>. null is

unknown, never true. A model that cannot frame-lock is **declined

with a one-line why**, never substituted in

(CODE0).

Step 1: Camera choreography

Emit a CAMERA MOTION block with the move type, distance, speed

in seconds, and start-end framing.

pedestal, push, pull, handheld, gimbal-glide, crane, whip.

Blueprint intent-class decoding — the blueprint CAMERA block names

one of six provider-agnostic intent classes; map it to the move types

above before encoding:

| Intent class | Move-type mapping |

|---|---|

| static hold | lock-off |

| push-in | push / dolly-in |

| pull-back | pull / dolly-out |

| lateral track | truck / pan |

| handheld drift | handheld / gimbal-glide |

| orbit | crane / arc via truck+pan |

Adapter quirks (per-provider encoding of the mapped move). These are undated

and unverified against provider documentation — check the model-capabilities

entry (verified, recheck_by) before trusting one:

move; record the preset id in the motion prompt.

provider's nearest lens / FOV idiom; never forward raw mm to a

provider that lacks lens grammar.

provider ceiling here and record the clamp in review.md (a

silent clamp is a drift bug).

Step 2: Primary + secondary motion

Two blocks:

  1. PRIMARY MOTION — what the subject does, beat-counted, with

physics anchors (mass, contact points, momentum). Reuse ACTION

from the blueprint; refine for the adapter's preferred verb

density.

  1. SECONDARY MOTION — what the world does (hair, fabric,

foliage, water, dust, particles, breath). One layer per line.

  1. TIMED SEGMENTS (optional, when the clip has more than one

beat) — 0–3 s: …, 3–7 s: …, covering the whole duration

without gaps; each segment names what changes, never a mood.

Step 3: Audio direction (conditional)

If adapter capability is audio: native AND the blueprint's

audio.enable_native_audio is true:

Emit an AUDIO DIRECTION block with:

The prompt itself is English; every spoken line stays verbatim in

its own language and script, tagged ([de] "…"). Never translate

a line the user wrote.

(footstep @ 1.2s, door close @ 2.1s).

If adapter capability is audio: none:

blueprint's audio paths queued for stitch-time mux.

lines. Emit a mandatory AUDIO DOWNGRADE warning block in

motion-prompt.txt AND adapter-notes.md listing every dialogue

line that will not render. The decision whether that is acceptable

belongs to the orchestrator gate (adapter-contract § Audio

ownership) — this skill translates, it never validates, and it

NEVER silently strips dialogue.

Step 4: Physics constraints

Emit PHYSICS — a short list of what the model must respect:

gravity direction, contact friction, fluid behavior, hair / cloth

inertia, lens parallax. Single line per constraint.

Then NEGATIVE LOCKS — what must not happen, one line each:

identity drift, readable text the blueprint did not ask for, extra

limbs or fingers, a cut the shot list does not contain, a logo that

is not the user's. Only locks the blueprint gives reason for.

Step 5: Emit motion-prompt JSON

Write scenes/<id>/motion-prompt.json with the adapter-contract

stdin shape. The orchestrator pipes this into the video adapter's

submit subcommand.

Step 6: Validate

  1. JSON parses (jq .).
  2. requires.audio_native is consistent with the chosen adapter's

capability.

  1. Duration in the motion prompt matches blueprint duration ±0.
  2. Identity tokens (if character.json exists) are verbatim.

Output format

  1. scenes/<id>/motion-prompt.json — adapter-contract stdin.
  2. scenes/<id>/motion-prompt.txt — labeled prose blocks

(CAMERA MOTION · PRIMARY MOTION · SECONDARY MOTION · AUDIO

DIRECTION · PHYSICS) for operator review.

  1. scenes/<id>/adapter-notes.md — which adapter, which

capability, which preset / model, with rationale.

Gotcha

identity tokens are immutable; refuse the temptation.

produces silent video — always read capability first, never

guess from the adapter name.

drifts to whichever preset the model picks on the next call.

limit; surface the clamp to the operator.

Do NOT

did not query this turn.

anchored image diverges on every call.

prose only.

Policies

Paths, enforcement model, and the full set: the

media policy preamble.

Motion prompts inherit every constraint the upstream blueprint carries. Before emitting provider-tuned prose:

Refuse-and-surface; the motion prompt cannot launder a policy gap upstream skills should have caught.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.