agentleFS
C-JerilC-Jeril/framer-motion-skills/.github/copilot-instructions.md

framer-motion-skills

Copilot instructions8 starsChanged 8 months agoMITView on GitHub

This repository contains AI skills for Framer Motion - the React animation library. When generating or reviewing Framer Motion code in a React project, apply the relevant skill based on the feature being implemented.

The file

We split this copilot-instructions.md into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When generating or reviewing Framer Motion code in a React project, apply the relevant skill based on the feature being implemented.

    line 16
  2. Distinctive:

    Use framer-motion-core for basic motion components and animation props

    line 20
  3. Distinctive:

    Use framer-motion-react for AnimatePresence and SSR considerations

    line 21
  4. Distinctive:

    Use framer-motion-variants for coordinated multi-element animations

    line 22
  5. Distinctive:

    Use framer-motion-scroll for scroll-linked animations

    line 23
  6. Distinctive:

    Use framer-motion-gestures for drag, tap, and hover interactions

    line 24
  7. Distinctive:

    Use framer-motion-layout for shared element transitions

    line 25

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Framer Motion AI Skills

This repository contains AI skills for Framer Motion - the React animation library.

Available Skills

  • framer-motion-core: Motion components, useMotionValue, useTransform, useSpring
  • framer-motion-react: AnimatePresence, layout animations, SSR
  • framer-motion-variants: Animation variants, stagger, repeat
  • framer-motion-scroll: useScroll, useTransform, parallax
  • framer-motion-gestures: Drag, tap, hover, focus
  • framer-motion-layout: Shared layout transitions, layoutId

Usage

When generating or reviewing Framer Motion code in a React project, apply the relevant skill based on the feature being implemented.

Recommendations

  • Use framer-motion-core for basic motion components and animation props
  • Use framer-motion-react for AnimatePresence and SSR considerations
  • Use framer-motion-variants for coordinated multi-element animations
  • Use framer-motion-scroll for scroll-linked animations
  • Use framer-motion-gestures for drag, tap, and hover interactions
  • Use framer-motion-layout for shared element transitions

Code Examples

Basic Animation

import { motion } from "framer-motion";

<motion.div
  initial={{ opacity: 0, y: 20 }}
  animate={{ opacity: 1, y: 0 }}
  transition={{ duration: 0.5 }}
/>

Variants

const variants = {
  hidden: { opacity: 0 },
  visible: { opacity: 1, transition: { staggerChildren: 0.1 } }
};

AnimatePresence

import { AnimatePresence } from "framer-motion";

<AnimatePresence>
  {condition && <motion.div key="item" exit={{ opacity: 0 }} />}
</AnimatePresence>

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.