Agent skill

Framer Motion Skill: Performance Rules for React Animation

The framer-motion skill in pproenca/dot-skills ranks animation performance rules by impact, starting with LazyMotion bundle savings and motion value re-render prevention, for agents writing or reviewing React animations.

Install
git clone https://github.com/pproenca/dot-skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the framer-motion skill?

The framer-motion skill is an experimental folder in pproenca/dot-skills that gives an AI agent performance guidelines for React animation. Rules span nine prioritized categories, from bundle size and re-render prevention to layout, scroll, gesture, spring, SVG and exit animations, each backed by its own reference file.

Bundle size gets the top priority here. The first rule category is rated CRITICAL and begins with using LazyMotion and the m component in place of the full motion component, ahead of any advice about easing or timing.

The folder sits under the experimental section of pproenca/dot-skills, a collection the README describes as skills in the Agent Skills open format. Its SKILL.md is titled Community Framer Motion Best Practices.

Nine categories, ranked by impact

  1. Bundle optimization, rated critical, with LazyMotion, dynamic feature imports and strict mode.
  2. Re-render prevention, also critical, built around useMotionValue and useTransform.
  3. Animation properties, rated high: transforms, opacity, filter and independent transforms.
  4. Layout animations, rated high, including layoutId and layoutDependency.
  5. Scroll animations, gesture optimization and spring physics in the middle tiers.
  6. SVG path animation and exit animation at the bottom of the list.

How the rules are organized

Each rule has an ID with a category prefix, such as bundle-lazy-motion or rerender-motion-value, and a matching file in the references folder. The SKILL.md is only the index, so the agent reads detailed examples on demand.

The trigger description covers motion components, gestures, layout transitions, scroll-linked effects and SVG animation, whether the agent is writing new code, reviewing existing animation or refactoring it.

Who the framer-motion skill suits

Best for

  • React apps that animate heavily and need to watch bundle weight.
  • Reviewing animation code for avoidable re-renders caused by state driven motion values.
  • Agents that default to animating many properties at once or mounting too many motion components.

Not for

Use it with UiChemy

These rules apply to React code, not to a WordPress theme. Use the skill on a React prototype or app, then bring the finished build into WordPress with UiChemy AI to WordPress. Click Get Started on uichemy.com.

For motion that stays inside WordPress, UiChemy Composer works from plain-language prompts instead. To check performance afterwards, read fixing-motion-performance and review-animations.