/motion-films:claude-motionfrom Claude Motion
Directs short films in code using DOM + Three.js, exporting frame-exact MP4 with original score. For product launches, UI walkthroughs, explainers, kinetic typography, and 3D scenes.
Ships in Claude Motion. 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.
You are directing a short film, written in code. A film here is film.js: an init that builds a
stage once and a render(t) that sets everything on it as a pure function of time. The stage is
real DOM (crisp type, real UI), with Three.js when the subject needs depth. scripts/ renders exact
stills, checks, scores and exports.
The bar is the kind of film a product team puts in a launch: a camera that travels through one world, a subject that something happens to in every shot, transitions that carry the eye, type that moves with meaning, and sound timed to the picture. The usual failure is an animated slideshow: a title card, then a panel that fades in, then another panel, each with a little entrance animation. It can have perfect type and still fail. This skill exists to prevent that.
The slideshow test. Take a still every 2 s. If they look like different slides (new layout, new heading, same static framing), it's a slideshow. If they look like frames from one continuous camera move over one world, with the subject visibly changing state, it's a film.
references/upstream/motion.md: the original craft rules and the numbers that review taught.
Read all of it. Skip what's specific to its private player (Artifact, kit.module, check.ts).
The reference film for this genre. Copy its techniques, never its look, story or words. Each has a
BEATS.md: read the sheet, then the code. Pick by the brief:
| The brief | Read | What it shows |
|---|---|---|
| product launch, feature film, UI walkthrough | examples/launch/ (34 s) | app → chart → push into a 3D city → replay, with score |
| an idea, a process, "what it's like to be…" | examples/journey/ (22 s) | one physical subject, finger scale → map scale → back, almost no words |
| sizzle, showreel, brand sting, "what this can do" | examples/reel/ (13.6 s) | 3D letters, squash and stretch, editor reveal, flood, whips, motion blur |
| kinetic typography, poster/Swiss look, music-driven | examples/poster/ (12.5 s) | scrolling type walls, slammed type, chrome 3D, particles that form a word, a block field |
| 3D product scene, mascot or character, "made with" | examples/tabletop/ (11 s) | real UI as plates on a desk in CSS 3D, a box character that walks, depth of field |
| app promo, App Store / mobile launch | examples/app-promo/ (12.6 s) | icon → store page → field → home screen tap → glossy word pills → logo |
| brand promo, fintech / web3 / SaaS hype | examples/brand-promo/ (14 s) | glossy 3D coins, rays, icons inside sentences, tilted dashboard, ✕ pills, URL end |
For a mix (most briefs), read the two closest. The genre changes the pace and the toolkit, not the method.
references/intake.md (the opening questions), references/recipes.md (the specific moves you'll use),
references/kit-api.md (the API) and, if a preset is picked, references/styles.md.
Strong models rarely make frozen slideshows any more. They make animated decks: every beat is a label ("02 / CONTEXT"), a headline in the same place, and a diagram or card centred on an empty ground. Something small moves inside it, then it dissolves into the next one. Each frame looks designed, but the whole reads as a presentation. The signals:
The fix is the method above, not more animation: one world the camera travels through, one
subject that carries from beat to beat, framing that changes (wide, working, close-up, full-bleed),
words that arrive and leave instead of a headline per beat, and transitions made by the subject
moving. scripts/review.mjs measures the deck signals on any MP4, so use it on your own export.
For an abstract story (an idea, a process, "what it's like to be…"), the same rules apply. Turn the
idea into one physical subject in one world, the way examples/journey/ turns a message into an
object that travels. Then let the camera follow it. Don't turn each idea into a titled panel.
A motion-design reel (a sizzle, a showreel, a brand sting, a "what this can do" opener) is a different
genre from a launch film: there's no story to follow, and the pleasure is the craft of the moves and how
each one turns into the next. The deck trap still applies, so a reel is never a run of titled cards.
Its own rules (all used in examples/reel/):
kit.morph).kit.bouncer), overshoot on
arrivals, springs on UI, letters that fly in from depth with rotation (kit.letters + kit.extrude).motionBlur: { samples: 8, shutter: 0.5 } on the film, and list whip pans and smash
moves in fast (16–32 samples) so they smear instead of ghosting. Stills and exports both include it.kit.focus), grain
(kit.grain), a gradient studio ground. Still one accent colour.kit.odometer).thud, pop), a swipe under every whip, a riser
into a flood or smash, an impact on the cut it lands, a groove under the fastest section.The same rules carry the other fast genres:
examples/poster/): type is the picture. Walls of scrolling rows (kit.marquee), letters
slammed in with overshoot (TextFx.in mode chars, eob), hard cuts on the beat, one acid accent, chrome or
glass objects (three-kit.js). Small HUD labels (corners, a frame counter) are allowed here as the poster's
texture, never as slide headers.examples/app-promo/, examples/brand-promo/): one object carries the film (the app icon, the brand
coin) and becomes each next thing. Sentences can carry icons inside them (<span class="kit-unit"> animates as
a word). Claims come as pills (✕ for what it isn't, ✓ for what it is), numbers flip or roll, and it ends on a URL
or store badge, then the logo.examples/tabletop/): put real UI on planes in CSS 3D (kit.space), so it
stays sharp and stays the real UI; build a character from boxes (kit.box3d, kit.gait), and use depth of field.
Use Three.js (three-kit.js) for what DOM can't do: chrome, glass, particles, thousands of instances.<skill> below means this file's folder. Run node <skill>/scripts/doctor.mjs once: it checks Node ≥ 22,
Playwright + Chromium, WebGL and FFmpeg, and prints the exact fix for anything missing (usually
npm i -D playwright && npx playwright install chromium, plus FFmpeg). Without a browser you can still write
the film, but say you couldn't look at it.
Take the story, product, copy and facts from the request and the user's material. Never invent claims about a real product. If the subject is missing, ask for it and stop.
Then, for a new film, ask Style, Colours and Length once, together, before the beat sheet. These
are the choices people most regret leaving vague. Follow references/intake.md:
AskUserQuestion in Claude Code), all three in one call, your pick first
in each row. Without such a tool, send one short message with numbered options and wait.references/styles.md: sketch, bubbles, editorial, bold, midnight, showcase) as the
last option.scripts/palette.mjs.Whatever look you end up with:
Inter, Inter Tight,
Fraunces (+italic), Instrument Serif (+italic), Space Grotesk, Manrope, Bricolage Grotesque,
Shantell Sans (hand-drawn), JetBrains Mono, DM Mono. Usually a display face over a text face that
differs in kind. Their own font files go in assets/ with an @font-face.This is where films are won. Write it as a table and keep it in BEATS.md beside the film:
| t | subject | action (a verb that changes it) | framing (scale, where it sits) | words on screen | carries into next by | sound |
|---|---|---|---|---|---|---|
| 0–2.4 | the question | words rise, creep | wide, centred line | "Where do the bikes go at 8 a.m.?" | the line shrinks into the app's field | pad, one mallet note |
| 2.4–5 | composer | cursor arrives, clicks Ask | 1.6× on the field, lower third | (UI only) | answer streams where the eye is | click; groove starts on the bar |
| 7–11 | Harbor's line | still drawing as we arrive; dips | 2.3× close-up, line fills the frame | "Harbor is empty by 8:40" | we push through the dip | ding on the circle |
| … |
Rules for the sheet:
If they asked for a storyboard first, deliver the sheet (and a few key stills, if you've built them) and stop.
node <skill>/scripts/new.mjs <film-dir> scaffolds the starter (templates/starter, a 14 s film
showing the grammar). Add --style <preset> [--palette <id>] to start on a preset (templates/preset), and
--portrait or --square for other sizes. Or start from a copy of the example. Then:
TT cascade of named times (TT.click = 4.5; TT.result = TT.click + .3). A retime moves
everything after it, and the score reads the same constants.Camera on the world layer,
cam.apply(t) first in render.init builds and measures once; render only sets. Everything from t: no
requestAnimationFrame, timers, CSS transitions/animations, accumulated state or Math.random
(use kit.rng(seed)). render(t) must give the same picture whatever order it's called in.render sets every element, every frame, including hiding what isn't in this beat. An element
you only touch inside an if (inThisBeat) keeps whatever state the last visited beat left it in,
so a scrub or a parallel export shows stray things. check.mjs catches this as non-determinism.TT.title = -0.6).eob 1.6–1.9) or spring. Product UI only eases and never bounces. Things travel on arcs.
Type enters word by word from ONE direction (~110 ms stagger, 24–34 px), and exits quicker the other way.upstream/recreate-ui.md). Use fictional names and data. Label anything speculative ("Concept film ·
fictional data") on the end card.recipes.md §11. Project DOM labels from 3D anchors. Drive geometry
from the same data functions as any 2D chart, and give the camera a rig with distinct framings.node <skill>/scripts/frames.mjs <film-dir> --at 0,<every beat start>,<every beat +0.8>,end --sheet --out <dir>
node <skill>/scripts/check.mjs <film-dir>
After export, node <skill>/scripts/review.mjs <film.mp4> --sheet sheet.jpg runs the same smells on the
encoded file (sound, loudness, frozen time, the animated-deck signals) and works on any video.
Open the contact sheet and the full-size stills you're unsure of, and actually look. For each frame ask:
check.mjs flags errors (non-deterministic frames, a blank first frame, console errors) and
warnings (frozen spans, a film that is mostly frozen, tiny text). It can't judge taste. Fix, re-render
the stills you changed, and look again. Do at least two look-fix passes before exporting. The first
render always has problems.
Sound is half the film. A film with no score() is unfinished: never deliver a silent export unless
they asked for silence, and if you do, say so in your reply. Write score(S, kit) from the same TT
(upstream/sound.md has the method): pick a tempo so bar lines land on the big moments. Start with a
near-silent pad under the title, bring the groove in when the action starts, put foley on the exact
frames of visible events (clicks, keystrokes via S.ticks(kit.typing.times), pops when things land,
a whoosh under a whip), drop to a pad for a transform, build into the end card, then hit on it and let
the chord ring. Write your own melody (no recognisable songs). Then
node <skill>/scripts/score.mjs <film-dir> --levels: nothing between title and sign-off should sit
below about −30 dB.
node <skill>/scripts/export.mjs <film-dir> --out <film-dir>/film.mp4 (renders the score, encodes
H.264 + AAC; --fps 60 for the smoothest UI, --gif too if asked; --draft makes a quick half-size cut for
checking timing, without motion blur). Motion blur multiplies render time by its sample count, so check
timing with --draft first. DOM frames take ~0.05 s each; 3D frames
~1–2 s each without a GPU, so a 34 s film with 18 s of 3D takes about 15 minutes. Run it in the background. Then pull a few stills from the MP4
itself (ffmpeg -ss 12 -i film.mp4 -frames:v 1 x.png) and look. Report truthfully: what you made, its
length and size, the look you chose, and anything you couldn't do.
A note pinned to a moment ("0:12, the button") is about that moment. Map it to the beat in TT, change
only that, and re-render the stills before and after it. Keep everything else exactly as it is unless
they ask for a redesign. If you think a bigger change would help, do what they asked and suggest the rest.
kit/ runtime (motion-kit.js, player.html, kit.css, bundled fonts, Three.js) · scripts/
(doctor, new, preview, frames, check, review, score, export) · templates/starter/ ·
examples/ (launch, journey, reel, poster, tabletop, app-promo, brand-promo, styles) · kit/three-kit.js (3D) ·
kit/ui/devices.js (phone, icons, store page, input, browser, pills) ·
references/intake.md, references/styles.md (+ kit/styles/, examples/styles/), references/kit-api.md,
references/recipes.md, scripts/palette.mjs · references/upstream/ (the original Motion
reference set, verbatim and read-only; its private-player commands don't exist here. Use this kit's
equivalents in kit-api.md).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub theonlyfusioncube/claude-motion --plugin motion-films