A motion design toolkit for coding agents.
JavaScript
Add README, gallery, contributing guide and MIT license
whaley402a253e2993
diff --git a/.github/ISSUE_TEMPLATE/showcase.yml b/.github/ISSUE_TEMPLATE/showcase.ymlnew file mode 100644index 0000000..05d6478--- /dev/null+++ b/.github/ISSUE_TEMPLATE/showcase.yml@@ -0,0 +1,34 @@+name: Showcase+description: Share a video you made with this repo+title: "[showcase] "+labels: [showcase]+body:+ - type: textarea+ id: video+ attributes:+ label: Video+ description: Drag your MP4 or GIF here.+ validations:+ required: true+ - type: textarea+ id: prompt+ attributes:+ label: Prompt+ description: The exact prompt(s) you gave the agent, including revisions.+ render: text+ validations:+ required: true+ - type: input+ id: agent+ attributes:+ label: Agent, model and effort+ placeholder: Claude Code · Opus 5.5 · medium+ - type: input+ id: time+ attributes:+ label: How long did it take?+ placeholder: ~30 min, 2 revisions+ - type: input+ id: link+ attributes:+ label: Link to your post (optional)diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdnew file mode 100644index 0000000..1bbe202--- /dev/null+++ b/CONTRIBUTING.md@@ -0,0 +1,19 @@+# Contributing++## Add your video to the gallery++Made something with this repo? Add it.++1. Put your composition in `src/` (its own folder is fine) and register it in `src/Root.tsx`.+2. Create `examples/NN-short-name/README.md` using [`examples/01-effort`](examples/01-effort/) as the template: preview GIF, the exact prompt(s) you gave, how long it took, model and effort level.+3. Add a row to the Gallery table in the main README.+4. Open a PR. Prefer to just show it off? Open a [Showcase issue](../../issues/new?template=showcase.yml).++Keep GIFs under ~4 MB (`npm run gif` settings are a good start).++## Improve the rules++The skills in `.claude/skills/` are the heart of this repo. If you found a rule that made Claude's output noticeably better, open a PR with:++- the rule, with a number wherever possible (not "smoother", but which curve or duration),+- a before/after contact sheet from `npm run sheet`.diff --git a/LICENSE b/LICENSEnew file mode 100644index 0000000..d900ec3--- /dev/null+++ b/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026 whaleyxbt++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.diff --git a/README.md b/README.mdnew file mode 100644index 0000000..a11fa11--- /dev/null+++ b/README.md@@ -0,0 +1,113 @@+# claude-motion++**Remotion skills teach Claude the API. This repo teaches it taste.**++<p align="center">+ <img src="media/preview.gif" width="480" alt="22-second motion graphic made by Claude with this repo" />+</p>++<!-- For the version with sound: open this README in the GitHub editor, drag out/effort.mp4 in, and GitHub will turn it into an inline player. -->++The video above was made by Claude from one prompt: *"make a dynamic 15-second motion graphics video that shows what an incredible motion designer you are"*, plus one revision. No After Effects, no timeline editor, no stock sounds. [How it was made →](examples/01-effort/)++## What's inside++- **Motion design rules with numbers.** Easing curves, spring presets, stagger, reading holds, type scale, one-accent color, texture, motivated transitions. Not "make it smooth": `bezier(0.16, 1, 0.3, 1)` for entrances, exits at half the duration, 0.09 s word stagger.+- **A visual self-review loop.** Claude renders a draft, builds contact sheets at every beat, looks at them, checks a list (collisions, clipping, holds, safe area, phone readability) and fixes what it finds before telling you it's done.+- **Sound design synced to every cut.** One `timeline.json` drives both picture and audio. All sound is procedural (no samples, no licensing), mastered to −14 LUFS, with a waveform check that shows every hit landing on its beat.+- **A finished reference piece** with reusable components: masked text reveals, rolling numbers, prompt bar with typing, a spring-loaded slider, film grain, hand-drawn line boil.++Works with Claude Code and Cursor out of the box (skills in `.claude/skills/`), and with Codex / OpenCode / anything that reads `AGENTS.md`.++## Quick start++**Let your agent do it.** Paste this into Claude Code, Cursor, Codex or OpenCode:++```text+Clone https://github.com/YOUR_USERNAME/claude-motion and cd into it.+Check that Node 20+, Python 3 and ffmpeg are installed; install whatever is missing.+Run `npm install` and `npm run build`, then show me out/effort.mp4.+Then read AGENTS.md and the skills in .claude/skills/, and ask me what video I want to make next.+```++**Or by hand:**++```bash+git clone https://github.com/YOUR_USERNAME/claude-motion && cd claude-motion+npm install+npm run build # → out/effort.mp4+npm run studio # live preview+```++Then ask your agent for a video. It will pick up the skills on its own.++## The pipeline++```+ idea ─► timeline.json ─┬─► React scenes ─► npm run draft ─► npm run sheet ─► look, fix ─┐+ (every beat) │ │+ │ ◄─────────────── repeat ────────────────┘+ └─► scripts/sfx.py ─► npm run wave (sync + loudness)+ │+ npm run build ─► out/effort.mp4+```++| Command | |+|---|---|+| `npm run studio` | live preview |+| `npm run draft` | fast half-res render |+| `npm run sheet` | contact sheets at every beat (`-- --from 3 --to 5 --every 0.2` to scrub a transition) |+| `npm run sfx` | regenerate sound from the timeline |+| `npm run wave` | waveform with beat markers + LUFS / true peak |+| `npm run build` | final render with sound |+| `npm run gif` | README preview |+| `npm run cover` | 5:2 cover for an X Article, drawn from the same timeline |++<p align="center">+ <img src="media/sheet.png" width="720" alt="Contact sheet Claude reviews: one frame per timeline beat" /><br/>+ <sub>What Claude looks at: one tile per beat, labelled with its timestamp.</sub>+</p>++<p align="center">+ <img src="media/wave.png" width="720" alt="Waveform with timeline beats in coral" /><br/>+ <sub>Sound check: every coral line is a beat from timeline.json.</sub>+</p>++## Effort levels for motion work++What I use with Opus 5.5 (`/effort` in Claude Code):++| Stage | Effort | Why |+|---|---|---|+| Storyboard, message, hook | `low` | fast back-and-forth, you're in the loop |+| Building scenes | `medium` | the default, good enough for most component work |+| Review loop, retiming, final polish | `high` | this is where checking every frame pays off |+| "Make the whole thing, I'm going for coffee" | `xhigh` / `max` | autonomous end to end, slower and pricier |++## Optional MCP servers++Nothing here needs MCP. These add real capabilities; copy `.mcp.json.example` to `.mcp.json` and keep what you want.++| Server | Adds |+|---|---|+| [`@remotion/mcp`](https://www.remotion.dev/docs/ai/mcp) | searchable Remotion docs, fewer API hallucinations |+| [ElevenLabs](https://github.com/elevenlabs/elevenlabs-mcp) | voiceover and sounds you can't synthesize |+| [Playwright](https://github.com/microsoft/playwright-mcp) | screenshots of a real product UI to animate |+| [Figma](https://help.figma.com/hc/en-us/articles/32132100833559) | pull frames and design tokens straight from your file |++Pair it with the official [Remotion agent skills](https://www.remotion.dev/docs/ai/skills) for API coverage; this repo is about the design layer on top.++## Gallery++| | |+|---|---|+| [**01 · Spending your effort**](examples/01-effort/) | Claude Code `/effort` explained. 22 s, one prompt + one revision. |+| *yours?* | [Add it →](CONTRIBUTING.md) |++## Requirements++Node 20+, Python 3, ffmpeg. A system Chromium at `/usr/bin/chromium` (or `$REMOTION_BROWSER`) is used if present; otherwise Remotion downloads one on first render.++## License++Code in this repo: [MIT](LICENSE). Remotion itself has its own license: free for individuals and small teams, companies above the threshold need a [company license](https://www.remotion.dev/license).diff --git a/examples/01-effort/README.md b/examples/01-effort/README.mdnew file mode 100644index 0000000..e6efdc4--- /dev/null+++ b/examples/01-effort/README.md@@ -0,0 +1,31 @@+# 01 · Spending your effort++++22 s · 1080×1080 · 60 fps · stereo, −14 LUFS · source: [`src/EffortVideo.tsx`](../../src/EffortVideo.tsx)++A motion graphic explaining Claude Code's `/effort` levels: same prompt, low vs max, a sketch that turns into a polished mockup, and an HTML-sanitizer benchmark climbing from 1/5 to 5/5.++## Prompt++The agent first got the full text of the "Spending your effort" post, then:++> make a dynamic 15-second motion graphics video that shows what an incredible motion designer you are++One revision afterwards:++> can you slow down the scene transitions a bit? stretch the video to 20–25 seconds so it's more readable++## Process++| Step | Time |+|---|---|+| Prompt → first cut (15 s, sound included) | ~34 min |+| Revision → final cut (22 s) | ~8 min |+| Model | Claude Opus 5.5 |++What the agent did on its own: storyboard into `timeline.json`, scene components, procedural sound from the same timeline, contact-sheet review of every beat, a loudness pass to −14 LUFS, and a re-check of the transition that started colliding after the retime (the prompt bar hitting the outgoing title at 3.7 s).++## Data++Numbers on screen (1 min vs 28 min, 1/5 at low vs 5/5 at xhigh on Terminal-Bench's HTML filter task) come from the "Spending your effort" post on claude.dev.diff --git a/media/preview.gif b/media/preview.gifnew file mode 100644index 0000000..384ed01Binary files /dev/null and b/media/preview.gif differdiff --git a/media/sheet.png b/media/sheet.pngnew file mode 100644index 0000000..36fbab4Binary files /dev/null and b/media/sheet.png differdiff --git a/media/wave.png b/media/wave.pngnew file mode 100644index 0000000..403cf15Binary files /dev/null and b/media/wave.png differ