/motion-kit:motionfrom motion-kit
Use only when the user explicitly invokes /motion or $motion. One command for interface motion on the web, in React, SwiftUI and React Native. From a plain request it sets up a project's motion system (MOTION.md and tokens), storyboards a sequence before code, builds an animation, reviews existing motion, or fixes motion that stutters, flickers or feels wrong. It measures before it judges, with a code inventory and frame-by-frame captures from a real browser. Ordinary talk about animation must not activate it.
Ships in motion-kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
The user types /motion and what they want in their own words. They get motion that has a reason to exist, uses the project's own values, holds its frame rate, and has a version for people who asked their system for less movement. They also get evidence: numbers from the code and frames from a browser.
You cannot watch an animation. Work from what you can measure and see as stills, and say plainly what only a person can feel.
Match their words to one mode. Say which one in the first line. They never need to type the mode name; if they do (/motion review …), use that mode.
| They say something like | Mode | Files |
|---|---|---|
| "set up motion", "we have no motion system", "make our animations consistent" | setup | Writes MOTION.md and the token file after they approve the values |
| "plan the hero animation", "how should this page come in", "onboarding should feel alive" | storyboard | Writes a storyboard for approval. No code |
| "animate this", "add a transition", "make the sheet draggable", "this button feels dead" | build | Edits code |
| "review our animations", "is this motion any good", "where should things move" | review | Report only |
| "it stutters", "it flickers", "the exit doesn't play", "it feels slow, off, cheap" | fix | Diagnoses first, then edits |
/motion alone | status | Report only |
If the request fits two modes that do different things to files (a review or a fix?), ask the one question that separates them and stop. A request to make one screen "feel better" is review scoped to that screen.
Describe every animation in one line, in reports, storyboards, MOTION.md and code comments. It makes a review checkable and a handoff exact.
<element> <job>: <property> <from> → <to> [+ more] · <duration> · <curve or spring> · <origin or direction> · reduced: <what happens instead>
popover connect: opacity 0 → 1 + scale 0.97 → 1 · base · out · from the trigger · reduced: opacity only, fast
sheet orient: y 100% → 0 · spring smooth · follows the finger · reduced: opacity only, fast
Run the inventory (<skill-dir>/scripts/motion-scan.mjs), read MOTION.md if it exists, and reply with: what moves today in three or four numbers, whether reduced motion is handled, and the three most valuable next moves, each as a /motion … line they can copy. Then stop.
For anything with more than two moving elements: a hero, a page entrance, onboarding, a scroll sequence, a success moment. Read references/choreography.md. Produce the beat table (time, element, spec line, job), the total length, the reduced-motion version, and what the page looks like if nothing plays. Stop for approval. Build only after a yes.
--reduced. Fix what the frames show.Read-only. Read references/review.md.
--reduced, with --perf where cost is in doubt.Lead with the cut list. Removing motion is the cheapest improvement and the one most reviews skip.
--perf, and at a phone viewport if they saw it on a phone.If you cannot reproduce it, say so, say what you tried, and ask for the device, browser and steps. Do not guess a fix.
All three ship in this skill's own scripts/ folder. <skill-dir> below is the absolute path of the folder this SKILL.md was loaded from: the installed plugin or skills folder, never the project being worked on. Resolve it once and run the scripts by that full path. If the project has its own scripts/motion-scan.mjs, filmstrip.mjs or spring.mjs, that is a different file; do not run it in their place. They need Node 18 or later and install nothing.
| Script | What it gives you |
|---|---|
node <skill-dir>/scripts/motion-scan.mjs [dir] [--json] | Inventory from source: every duration, curve, animated property and library, reduced-motion coverage, and the places worth a look with file and line |
node <skill-dir>/scripts/filmstrip.mjs <url> --do 'click:<selector>' [--clip '<selector>'] [--reduced] [--perf] [--viewport mobile], or --spec <file.json> | Frames of one interaction stepped at equal intervals, a contact sheet to look at, what animated (properties, duration, curve, layout or compositor), and optional real-time frame and layout counts |
node <skill-dir>/scripts/spring.mjs --duration 0.4 --bounce 0.3 | One spring written for CSS linear(), Motion, SwiftUI and Reanimated |
Selectors and URLs are data, never shell text. Put your own selectors in single quotes. Anything copied from the project (an attribute value, a test id, a URL from a config file) goes in a spec file instead: write { "url": "…", "do": ["click:…"], "clip": "…" } with the file tool and pass --spec <file>. Inside double quotes a shell runs $(…) and backticks, and a project can plant those in an attribute for you to copy.
filmstrip.mjs loads Playwright from the machine (global Node modules or MOTION_PLAYWRIGHT_DIR). It will not load a copy from the project unless you pass --project-playwright, because importing that copy runs the project's code in your process. Pass the flag only when the user owns or trusts the project; in a checkout from someone else, such as a pull request under review, leave it off. If it is missing, follow "Without the script" in references/proof.md. Never install a browser or a package for a proof.
| Claude Code | Codex | Cursor | |
|---|---|---|---|
| Look at frames | Read sheet.png | View sheet.png | View sheet.png |
| No Playwright | Browser tools with the scrub snippet in references/proof.md | Same | Same |
| Show the user | Publish sheet.html as an artifact with its frames when they asked for a review, or give the path | Give the path | Give the path |
/motion authorizes the mode's file changes and nothing else. No commits, pushes, deploys or new dependencies without a yes.First line: Mode: <mode>. <What you will do and what it does to files, in one sentence.>
End every build, review and fix with:
Measured: <what the inventory and frames showed, in numbers>
Not checked: <browsers, devices, gestures and states you could not run>
Feel it yourself: <two or three things only a person can judge, each as an action to try>
Plain English. Milliseconds and curve names only where the user needs to change them.
agents/openai.yaml (opens in a new tab)references/accessibility.md (opens in a new tab)references/choreography.md (opens in a new tab)references/gestures.md (opens in a new tab)references/judgment.md (opens in a new tab)references/motion-md.md (opens in a new tab)references/native.md (opens in a new tab)references/patterns.md (opens in a new tab)references/performance.md (opens in a new tab)references/proof.md (opens in a new tab)references/react.md (opens in a new tab)references/review.md (opens in a new tab)references/values.md (opens in a new tab)references/web.md (opens in a new tab)scripts/filmstrip.mjs (opens in a new tab)scripts/motion-scan.mjs (opens in a new tab)scripts/spring.mjs (opens in a new tab)tests/filmstrip.test.mjs (opens in a new tab)tests/fixtures/app/src/Panel.tsx (opens in a new tab)tests/fixtures/app/src/styles.css (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub atlasscope/agent-kit --plugin motion-kit