The PR adds a fade or a sheet transition by installing a second animation library. The repo already standardized on one — CSS transitions plus a small helper, Motion, or another wrapper already in the bundle. The new dependency brings its own presence API, a different reduced-motion path, and a lockfile change for a single enter/exit.
I've started treating a new animation library in a feature PR as out of scope. The transition may look fine in the preview. Two motion runtimes are why the existing library is supposed to be the default.
Why the second library shows up
The model's preferred example may use a different library than your repo. If the prompt says "animate this panel" and does not name the existing helper, the agent installs what the tutorial used. CSS-only motion is also easy to skip when the example starts with npm install.
You also get two reduced-motion stories: the existing helper already respects prefers-reduced-motion, and the new library needs a second setup that often ships unset.
A simple animation-library policy
- New motion uses the existing animation helper or CSS already in the repo
- Do not add a second animation library in a feature PR
- If the current helper cannot do this motion, that is a dedicated dependency PR, with a reason
- Reduced motion follows the existing helper, not a new default
A one-line CSS transition is still allowed when that is the repo's simple path. A new runtime is not a shortcut.
What to put in the prompt
Use the existing animation helper (or CSS transitions already used in this repo) for this motion. Do not install a new animation library in this PR. Keep the existing reduced-motion behavior. If the current helper cannot do this, stop and say so; do not add a dependency. Paste one existing animated component. In review, search the diff for package.json, new motion imports, and a reduced-motion path that does not match the helper.
Reject / send back
Reject
- A feature PR that adds a second animation dependency
- Motion that ignores the existing reduced-motion helper
- A wrapper around a new library "just for this sheet"
- A lockfile change whose only purpose is one fade
Accept
- A transition built with the existing helper or the repo's CSS motion
- A dedicated PR that proposes a new library, with a migration note
- A CSS-only animation that matches nearby patterns

