motion-ui

motion-ui is a cursor rule for Cursor from VoTruongDanh/Skills-Agent. It costs 85 tokens per session (3,753 once invoked), scanned A, original, MIT.

A set of interface-design rules for modern screens with subtle Framer Motion animations, clear interaction states, and shared design values. Framer Motion is a library for animating web interfaces.

In plain words
What is it for?
Use it when creating or updating motion-rich React interfaces, buttons, forms, and other interactive components.
Why use it?
It helps make loading, success, error, disabled, and other states understandable while keeping animations restrained and accessible.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when creating or updating motion-rich React interfaces, buttons, forms, and…

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/votruongdanh/skills-agent/motion-ui
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.

Clone the repo
git clone --depth 1 https://github.com/VoTruongDanh/Skills-Agent

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for motion-ui

README.md
[![agentmods](https://agentmods.dev/badge/rules/votruongdanh/skills-agent/motion-ui.svg)](https://agentmods.dev/rules/votruongdanh/skills-agent/motion-ui)
Your own site
<a href="https://agentmods.dev/rules/votruongdanh/skills-agent/motion-ui"><img src="https://agentmods.dev/badge/rules/votruongdanh/skills-agent/motion-ui.svg" alt="Measured on agentmods" height="20"></a>
Per session 85 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,753 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00085 $0.03753
Opus 5 $0.00043 $0.01877
Sonnet 5 $0.00017 $0.00751
Haiku 4.5 $0.00009 $0.00375

Measured yesterday against content hash 73250d1c399e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

motion-ui 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 yesterday.

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.

.cursor/rules/motion-ui.mdc · 500 lines

How it starts

The opening of the file, as written. The whole thing — 500 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Memory Protocol

START: Read .ai-memory.md from project root. Check design tokens, motion patterns, component library, animation conventions, and accessibility settings (prefers-reduced-motion). END: Update .ai-memory.md using Memory Compaction Rules with: motion patterns used, components created, animation decisions, and accessibility notes.

Goal

Create a clean, modern UI with subtle Framer Motion micro-interactions, clear states (idle/loading/success/error), and consistent styling via CSS variables/tokens. Motion should be purposeful, smooth, and enhance user experience without being distracting.

Design Philosophy (AMUI Principles)

1. Clarity-First

  • States are always clear: idle / hover / active / loading / success / error / disabled
  • Visual feedback for every interaction
  • No ambiguous UI states

2. Motion with Purpose

Animation is not decoration, but serves to:

  • Guide user attention
  • Show system response
  • Reduce jarring/abrupt UI changes
  • Provide feedback and context

3. Subtle Micro-Interactions

  • Hover: scale 1.01–1.02
  • Tap/Active: scale 0.97–0.98
  • No excessive bounce or dramatic effects
  • Keep it elegant and professional

4. Immediate Feedback

  • Validation shows instantly
  • Submit actions show loading state
  • Success shows with green check animation
  • Errors show with alert animation

5. Brand Ambient Layer (Optional)

  • Gradient backgrounds with blur orbs
  • Dot grid patterns
  • Subtle noise textures
  • Use sparingly for auth/landing/empty states

Technical Stack

Required

  • Framer Motion (motion, AnimatePresence) for smooth transitions
  • CSS Variables for design tokens (colors, spacing, timing)
  • Tailwind CSS or global CSS for styling

Recommended

  • Lucide Icons for clean, consistent iconography
  • TypeScript for type-safe components

Design Tokens System

Surface Colors

--c-bg: /* main background */
--c-surface: /* card/panel background */
--c-surface-2: /* hover surface */

Read the full file on GitHub · 500 lines

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. yesterday Changed · +3 lines 73250d1c399e
  2. 6d ago First seen · 497 lines · 85 tokens per session scan A da3fe07d1a95

Subscribe to this mod's changes

motion-ui is a cursor rule published in the GitHub repository VoTruongDanh/Skills-Agent (2 stars, last pushed 2d ago), licensed MIT. It adds 85 tokens to every session and 3,753 once invoked, about $0.0004 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-31.