Skip to content
Back to skills

Motion Reel

ASecurity

Make a product or showreel motion video rendered from code (canvas film that is a pure function of time, 2-D and three.js 3-D, synthesized score + SFX, frame-exact render). Use whenever the user asks for a launch video, showreel, product reel, promo, animated explainer, motion ad, social cut (9:16, 1:1), music video or lyric video for a song they supply, or "a video about" some product or URL, even if they never say "motion graphics". Covers gathering real assets from the product URL, a style...

  • 5 stars
  • 0 votes
  • 1 copy
  • 4 views
  • Added October 6, 2026
ai-agentspythongoswiftshellnodeexpressspringapiperformance

Works with

  • claude code
  • cli
  • api
  • mcp

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add Aries-Spring/motion-reel --skill motion-reel --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Motion Reel?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Motion Reel
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aries-spring-motion-reel/badge)](https://www.skillsdirectory.com/skills/aries-spring-motion-reel)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: motion-reel
description: Make a product or showreel motion video rendered from code (canvas film that is a pure function of time, 2-D and three.js 3-D, synthesized score + SFX, frame-exact render). Use whenever the user asks for a launch video, showreel, product reel, promo, animated explainer, motion ad, social cut (9:16, 1:1), music video or lyric video for a song they supply, or "a video about" some product or URL, even if they never say "motion graphics". Covers gathering real assets from the product URL, a style guide from a reference, the beat grid, lyric transcription and word alignment, a shot list the user signs off, the build, a critique loop on contact sheets, GPU render, SFX, voice-over or a singer lip-synced to the vocal, -14 LUFS mix and multi-format delivery.
compatibility: Claude Code or any agent with a shell. Needs node 18+, ffmpeg + ffprobe, uv (Python deps install themselves on first run), and Playwright + Chromium in the project folder. No accounts or API keys. Optional voice-over from the user's own recording, or ElevenLabs via the motion-reel-voice add-on.
---

# Motion reel

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`.

## Setup (once per project)

`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.

## Inputs to collect first

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:
- **A recording the user supplies** (any language, any voice), placed and lip-synced from its audio.
- **ElevenLabs**, if its tools are available (`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.

## Pipeline

1. **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.
   - If a cookie wall or login blocks the page, say so and ask for screenshots rather than inventing UI.

2. **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.

3. **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).
   - For a hero piece, write a bespoke `<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`.
   - Only if there is a voice-over: read `references/voiceover.md` now, since the VO edit is placed
     on this grid. Without one, skip it; `mix.mjs` masters music + SFX alone.

4. **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.

5. **Build `film.js`.** Start from the scaffolded template.
   - Import `lib/motion.js` and time everything in beats (`u`).
   - For motion, use `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.
   - For layout, use `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.
   - **3-D** (a camera through a space, lit objects, instanced crowds, shaders): scaffold with `--3d`,
     `npm i three opentype.js`, build sets with `lib/gl.js` and read `references/3d.md` first.
   - **A character drawn in code**: `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.
   - List every accent in `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).
   - Follow the studio rules below throughout.

6. **Critique loop: 3 rounds minimum.** Each round:
   - Run `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).
   - Run `--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.
   - Run `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>`.
   - Run the review in `prompts/critique-pass.txt`: score, find the worst three, append the round
     to `docs/critique.md`.
   - Fix those three and go again. Stop only when every score is >= 8 and at least 3 rounds are done.

7. **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.

8. **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.

## Studio rules

**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+.

Files in this skill

  • SKILL.md9.9 KB
  • assets/lib/motion.js14.6 KB
  • assets/template/film.js4.8 KB
  • assets/template/film.json82 B
  • assets/template/index.html1 KB
  • prompts/critique-pass.txt3.4 KB
  • references/examples/lipsync_rig.js5.2 KB
  • references/examples/rig_split.py3.3 KB
  • references/examples/score_vo.py16.1 KB
  • references/shotlist.md2.1 KB
  • references/style_guide.md1.7 KB
  • references/voiceover.md4.9 KB
  • scripts/beats.py10.6 KB
  • scripts/dsp.py15.3 KB
  • scripts/gather.mjs12.6 KB
  • scripts/mix.mjs4.9 KB
  • scripts/pw.mjs862 B
  • scripts/reference.mjs4.7 KB
  • scripts/render.mjs11.2 KB
  • scripts/scaffold.mjs3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.