/motion-reel:motion-reelfrom Motion Reel
Creates motion graphics videos (showreels, product reels, promos, music videos) rendered from code using canvas and three.js. Handles asset gathering, beat grids, lyric alignment, shot lists, GPU render, SFX, voice-over, and multi-format delivery.
Ships in Motion Reel. 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.
A reel here is a directory in the project folder (<film>/) holding a canvas film whose every frame
is window.seek(t), rendered frame-exact by <skill>/scripts/render.mjs. <skill> is the folder
this SKILL.md lives in (e.g. ~/.claude/skills/motion-reel). Run every command from the project
folder: the scripts read and write <film>/ and out/<film>/ relative to it. The studio rules at
the end apply throughout; if the project's own CLAUDE.md sets different rules, the project wins.
<film>/film.json title, duration, formats (first = primary), poster time
<film>/index.html fonts + canvas; film.js the film; lib/motion.js harness + springs
<film>/lib/gl.js, sets/ three.js sets composited into the film (scaffold --3d; references/3d.md)
<film>/assets/ real screenshots, logo, fonts, brand.json, copy.md (gather.mjs)
<film>/docs/ style_guide.md, shotlist.md, critique.md, reference/, lyrics.txt (music videos)
<film>/audio/ music.wav, sfx.wav, vo.wav (optional), mix.wav, stems/ (vocal separation)
<film>/beats.json the measured grid everything is timed against
<film>/lyrics.json word-aligned lyrics + lipsync.json (music videos; align.py)
out/<film>/ contact sheets + phone sheets, strips, hits.json, video_<fmt>.mp4, final*.mp4, poster.png
Never overwrite another film's directory; start new work with scaffold.mjs.
scaffold.mjs checks the toolchain and prints anything missing. The project needs Playwright:
npm i -D playwright && npx playwright install chromium (add a package.json first if there is none).
ffmpeg/ffprobe and uv come from the system (brew install ffmpeg uv). The Python scripts declare their
own dependencies inline, so uv run <skill>/scripts/<script>.py works in any folder.
Product + URL, duration, formats (9:16 / 1:1 / 16:9), brand colors + fonts, a reference (frame, video or image folder), music (file or "synthesize"), and whether there is a voice-over.
A song the user supplies can be the whole film (a music or lyric video): the track is the
soundtrack and the clock, the film runs its full length, every lyric lands on its sung word, and a
singer can lip-sync to the vocal. Read references/lyrics.md before the grid step. There is no
product URL then: the "brand" is the song's world (palette, two faces, a character) agreed with the user.
Ask for everything missing in one AskUserQuestion round and offer defaults (15 s, 16:9, synthesize, no VO). Brand colors and fonts come from the site in step 1, so ask only whether to override them.
Voice-over is optional, and no VO is the default. Most reels don't need one: kinetic type,
music and SFX carry the message, and the whole pipeline runs with no accounts or keys. Offer a voice
only when the brief calls for one (a narrator, a talking character). Then there are two sources, and
references/voiceover.md covers both:
mcp__plugin_motion-reel-voice_elevenlabs__*, from the
optional motion-reel-voice plugin). If they aren't and the user wants a generated voice, tell them
about that add-on; never ask for an API key in chat, and carry on without a voice if they'd rather.Gather real assets.
node <skill>/scripts/scaffold.mjs <film> --title "..." --duration 15 --formats 16x9,9x16, then
node <skill>/scripts/gather.mjs <url> <film> [--pages /pricing,/features].
It writes desktop + mobile screenshots, one PNG per page section, the logo, the brand's font files,
brand.json (hex colours ranked by use, font families, the wordmark's own styling) and copy.md
(the brand's own words). Print the list and look at the key shots. Confirm the palette and the
two faces with the user. Copy the chosen font files to <film>/fonts/display.* and ui.*, or point
the @font-face rules in index.html at them.
Style guide from the reference. Skip this step if there is no reference.
node <skill>/scripts/reference.mjs <path> <film> extracts one frame per shot, a 1 fps sheet and
the cut rhythm (cuts.json). Look at them, then write docs/style_guide.md using
references/style_guide.md. Take the reference's motion and composition; the brand keeps its
colours and type.
Music and the beat grid. Use one of:
uv run <skill>/scripts/beats.py <film> --track song.mp3: measures the supplied track and cuts
the loudest window that fits, starting on a downbeat.uv run <skill>/scripts/beats.py <film> --track song.mp3 --full: the whole song (music/lyric
videos); film.json's duration becomes the track's. Then lyrics.py and align.py for the words
(references/lyrics.md). It prints how it picked the downbeat; --downbeat SECONDS overrides.uv run <skill>/scripts/beats.py <film> --synth --flavor house|tabla|lofi --mode ... --tonic ...:
synthesizes a bed.Either way you get audio/music.wav and beats.json (grid, sections, energy per bar).
<film>/audio/score.py on top of <skill>/scripts/dsp.py
(instruments, Bus, measure_beats; references/examples/score_vo.py is a full example with a
beat-locked voice-over). It must still write music.wav + beats.json. Run it as
MOTION_REEL_SKILL=<skill> uv run <film>/audio/score.py so it finds dsp.py.references/voiceover.md now, since the VO edit is placed
on this grid. Without one, skip it; mix.mjs masters music + SFX alone.Shot list, then stop. Write docs/shotlist.md on the beat grid using references/shotlist.md
(one row per shot: beats, asset used, motion, transition, sounds, per-format notes). Show it and
wait for the user's OK. Changing a table is cheap and re-animating a scene is not. If the film has a
character, show a model sheet (poses and expressions) with it: the character is the thing the user
most wants to approve before it moves.
Build film.js. Start from the scaffolded template.
lib/motion.js and time everything in beats (u).springU / springKeys / SPRING presets: closed-form springs that stay pure
functions of time. Use kf for eased keys, wobble for squash-and-settle, shake for impacts.FORMAT.pick({...}) and FORMAT.safe so each format is composed for its own
shape.layout / glyph handle per-glyph type, and cover / crop place the real screenshots.--3d,
npm i three opentype.js, build sets with lib/gl.js and read references/3d.md first.references/examples/vector_rig.js (2.5-D head, hair locks, eyes,
visemes) and performance.js (lip sync, blinks, follow-through). A raster portrait: the cut-out
rig in references/voiceover.md.post(ctx, u, t) in M.film() runs after the motion-blur accumulation: grain and glitch go
there, or the sub-frame average erases them. samples can be a function of t.HITS as [beat, label, sfx, opts]. sfx.mjs voices them, so sound
can't drift from picture (node <skill>/scripts/sfx.mjs --list shows the palette).Critique loop: 3 rounds minimum. Each round:
node <skill>/scripts/render.mjs --film <film> --contact [--format f] for every format
(long films: --every 2, or --from/--to for a section). Look at the contact_pN.png pages and
the half-size phone_pN.png pages (a phone at arm's length).--strip a:b:8 --name <cut> across each transition, plus --at for detail, and
--range a:b for a short video of a section when motion can't be judged from stills.node <skill>/scripts/sfx.mjs <film> && node <skill>/scripts/mix.mjs <film> --no-mux,
then node <skill>/scripts/render.mjs --film <film> --hits && uv run <skill>/scripts/sync.py <film>.prompts/critique-pass.txt: score, find the worst three, append the round
to docs/critique.md.Render and deliver the audio. Run each step in order:
node <skill>/scripts/render.mjs --film <film> --format <f> --video-only for each format in film.json.
Frames stream straight into the encoder (no disk wall on long films). On macOS WebGL runs on the
GPU; the renderer prints which ("SwiftShader" = software, ~80x slower for 3-D).node <skill>/scripts/sfx.mjs <film>node <skill>/scripts/mix.mjs <film>. This masters to -14 LUFS / -1 dBTP and muxes
out/<film>/final.mp4 (primary format) plus final_<fmt>.mp4 for the others.node <skill>/scripts/render.mjs --film <film> --poster [t] (and --format <f> for each other format)Check each final with ffprobe (duration, 60 fps, yuv420p, audio present), and pull a frame from the encoded file to confirm the encode itself.
Deliver. Give the paths to final.mp4 (and the other formats), contact.png and
poster.png, plus the last round's scores. Then say what you'd improve next: the critique's
remaining issues, named concretely, not a generic wishlist.
Render contract. Every film is a pure function of time: window.seek(t) paints frame t. No CSS
transitions, no setTimeout, no requestAnimationFrame in render mode, no state carried between frames,
and seeded noise only (lib/motion.js, mulberry32), never Math.random. The renderer seeks frames out
of order across parallel pages, so any hidden state or wall-clock dependency makes frames disagree.
render.mjs encodes H.264 yuv420p, CRF 16, 60 fps with sub-frame motion blur.
Real product only. Never invent screens. Viewers and the client know the product, and a fake screen reads as a lie. Crop, frame, mask and move the gathered screenshots and the brand's own art. If a shot needs a screen that doesn't exist, change the shot.
Look. Banned defaults: centered title on gradient, everything fading in, corner labels and frame borders, glow on UI chrome, generic particle bursts. They are the signature of template video; entrances need direction, weight and a reason. One display face, one UI face. One accent colour unless the brief says otherwise. Something new happens on screen every 2 to 4 seconds.
Cuts. The frame on the downbeat is the hit: a cut's first frame shows the new image, never a blank
or a full-frame flash. Budget full flashes to one or two structural moments (the drop, the end card);
a flash on every cut reads as template video. A whip is a pan with both shots on screen (A slides out
as B slides in), never two half-moves with empty frames between. Zooms run in log space
(s = a * (b / a) ** p), which reads as a constant-rate dolly; a linear scale lerp lingers big.
Type. Every word the viewer must read survives the phone sheets. Before using any character
outside basic Latin (CJK, arrows, check marks, superscripts), check both faces contain it (opentype.js
charToGlyphIndex): a fallback glyph breaks the two-face rule and looks broken.
Sound. Score and SFX are synthesized in code unless a track is supplied. Hits sit on the measured
beat grid (beats.json). Master to -14 LUFS integrated, -1 dBTP (mix.mjs).
Look before you show. Nothing goes to the user (beyond the shot list) until the critique loop in step 6 has run: contact sheet per beat, looked at, scored 1-10 on hook, readability at phone size, motion quality, variety, brand accuracy and sound sync, the three worst problems fixed, until every score is 8+.
assets/lib/gl.js (opens in a new tab)assets/lib/motion.js (opens in a new tab)assets/template/film.js (opens in a new tab)assets/template/film.json (opens in a new tab)assets/template/index.html (opens in a new tab)prompts/critique-pass.txt (opens in a new tab)references/3d.md (opens in a new tab)references/examples/lipsync_rig.js (opens in a new tab)references/examples/performance.js (opens in a new tab)references/examples/rig_split.py (opens in a new tab)references/examples/score_vo.py (opens in a new tab)references/examples/vector_rig.js (opens in a new tab)references/lyrics.md (opens in a new tab)references/shotlist.md (opens in a new tab)references/style_guide.md (opens in a new tab)references/voiceover.md (opens in a new tab)scripts/align.py (opens in a new tab)scripts/beats.py (opens in a new tab)scripts/dsp.py (opens in a new tab)scripts/gather.mjs (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
motion-graphics, video-production, canvas-film, showreel, music-video
Other plugins' skills for the same job
npx claudepluginhub aries-spring/motion-reel --plugin motion-reel