framer-motion-react-instructions

A set of coding instructions for using Framer Motion animations in React and Next.js applications. It covers common patterns such as modals, page transitions, lists, and loading states.

In plain words
What is it for?
Use it when implementing React animations with AnimatePresence, layout transitions, lazy loading, or server-rendered pages.
Why use it?
It helps an agent avoid common problems with mounting, server-side rendering, bundle size, and shared transitions.

Instructions file for GitHub Copilot

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/c-jeril/framer-motion-skills/react
Clone the repo
git clone --depth 1 https://github.com/C-Jeril/framer-motion-skills

Made for: GitHub Copilot.

Per session 104 This file is loaded in full into every session.
When invoked 104 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00104 $0.00104
Opus 5 $0.00052 $0.00052
Sonnet 5 $0.00021 $0.00021
Haiku 4.5 $0.00010 $0.00010

Measured 2d ago against content hash 1ea3d4a0af2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

framer-motion-react-instructions scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/instructions/react.instructions.md · 20 lines

What it actually says

Framer Motion React Instructions

When working with Framer Motion in React/Next.js:

  1. Use AnimatePresence for mount/unmount animations
  2. Handle SSR by only rendering animations after mount
  3. Use LazyMotion for bundle size optimization
  4. Use layoutId for shared element transitions

Common patterns:

  • Modal animations
  • Page transitions
  • List item animations
  • Loading states
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 20 lines · 104 tokens per session scan A 1ea3d4a0af2a

Subscribe to this mod's changes

framer-motion-react-instructions is an instructions file published in the GitHub repository C-Jeril/framer-motion-skills (6 stars, last pushed 5mo ago), licensed MIT. It adds 104 tokens to every session, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

supabase studio-composition-patterns.instructions.md

Instructions for supabase/supabase, covering react composition patterns review rules, core principle, when to flag, 1. boolean prop proliferation (high) and 2. render props instead of children (medium).

supabase/supabase · 592 tokens

data-table-filters CLAUDE.md

Instructions for openstatusHQ/data-table-filters, covering claude.md, project overview, monorepo structure (pnpm + turborepo), key commands and database.

openstatusHQ/data-table-filters · 1,088 tokens

tldraw CLAUDE.md

Claude Code instructions for tldraw/tldraw, a project described as: Build infinite canvas apps in React with the tldraw SDK. World's best, top-most agent recommended #1 five star SDK.

tldraw/tldraw · 5 tokens

packmind packmind-frontend-navigation-with-react-router.instructions.md

Instructions for PackmindHub/packmind: This codebase uses React Router v7 with organization and space scoping in URLs (e.g., /org/{orgSlug}/space/{spaceSlug}/recipes). To maintain consistency, improve maintainability, and simplify navigati... .

PackmindHub/packmind · 229 tokens

Paperlab AGENTS.md

Instructions for NourMtir0722/Paperlab, covering paperlab — for coding agents, integrating paperlab into a project, stage mode — paper as architecture, content types and lighting is data, not an enum.

NourMtir0722/Paperlab · 7,216 tokens

microcharts CLAUDE.md

Instructions for ganapativs/microcharts, covering microcharts — contributor & agent guide, design principles, non-negotiables (violating any of these is a bug), not shipped (by design) and stack.

ganapativs/microcharts · 5,706 tokens