agentleFS
UwayxtUwayxt/agent-skills/.agents/skills/kinematic-motion-choreography/SKILL.md

kinematic-motion-choreography

Skill4 starsChanged 3 months agoMITView on GitHub

Designs physics-based UI motion systems using harmonic spring oscillator equations (mass, stiffness, damping), asymmetric entrance/exit curves, staggered cascading delays, and mandatory reduced-motion fallbacks. Use when: spring animation, physics motion, cubic-bezier, enter exit animation, staggered list animation, modal transition, interactive gestures, agentway gen:spring.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    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:

    Never use the same timing curve for entrances and exits:

    line 52
  2. Distinctive:

    When animating collections (lists, grids, dashboard widgets): $$t_{\text{delay}}(n) = \min(n \times 35\text{ms}, 350\text{ms})$$ Cap total …

    line 62
  3. Distinctive:

    Ensure motion originates from the trigger element:

    line 68

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill 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
SKILL.md

🌊 Skill: Kinematic Motion Choreography

Purpose

Standard web transitions often feel robotic because they use arbitrary linear or symmetrical curves (ease-in-out). Real-world physical objects possess mass, friction, and momentum. This skill equips agents with harmonic oscillator physics and asymmetric choreography protocols to create natural, high-performance UI motion.


Trigger Phrases

PhraseActivation
"spring animation" / "spring physics"✅
"asymmetric motion" / "enter exit animation"✅
"staggered animation" / "choreography"✅
"modal animation" / "drawer physics"✅
"kinematic tokens" / "motion curves"✅
"agentway gen:spring"✅

Protocol: 5-Step Kinematic Motion Engine

STEP 1 — Physical Parameter Definition

Define the harmonic oscillator parameters for each UI element category:

  • Mass ($m$): Weight of the element ($0.5\text{kg}$ for tooltips, $1.0\text{kg}$ for cards, $2.0\text{kg}$ for dialog modals).
  • Stiffness ($k$): Spring tension/snap ($120\text{N/m}$ to $400\text{N/m}$).
  • Damping ($c$): Friction resisting motion ($10\text{Ns/m}$ to $35\text{Ns/m}$).

$$\text{Damping Ratio } \zeta = \frac{c}{2\sqrt{km}}$$

  • Snappy Spring ($\zeta \approx 0.65$): Micro-interactions, button presses, like animations.
  • Natural Smooth ($\zeta \approx 0.85$): Dropdowns, tooltips, toasts, tab indicators.
  • Critically Damped ($\zeta = 1.0$): Heavy modals, route transitions (Zero overshoot).

STEP 2 — Asymmetric Directional Choreography

Never use the same timing curve for entrances and exits:

  1. Entrances (High Energy Deceleration):
    • Duration: Fast ($150\text{ms}–220\text{ms}$).
    • Curve: cubic-bezier(0.16, 1, 0.3, 1) (Decelerates sharply as it snaps into place).
  2. Exits (Deliberate Acceleration):
    • Duration: Slightly slower ($250\text{ms}–320\text{ms}$).
    • Curve: cubic-bezier(0.7, 0, 0.84, 0) (Accelerates off-screen so user isn't kept waiting).

STEP 3 — Cascading Stagger Calculations

When animating collections (lists, grids, dashboard widgets): $$t_{\text{delay}}(n) = \min(n \times 35\text{ms}, 350\text{ms})$$ Cap total stagger at $350\text{ms}$ so large lists don't introduce perceived latency.

STEP 4 — Gestural Spatial Cohesion

Ensure motion originates from the trigger element:

  • Modals scale up from the click origin (transform-origin: var(--origin-x) var(--origin-y)).
  • Menus expand outward from the trigger button icon.

STEP 5 — Accessibility & Reduced Motion Gate

Mandate strict reduced-motion overrides:

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

Deliverables Generated

  1. spring-tokens.css — CSS Custom Properties with mathematical Bezier approximations.
  2. motion-choreography.js — Lightweight spring timing helper.
  3. CHOREOGRAPHY-TIMELINE.md — Visual timeline diagram of micro-interactions.

Companion Skills

SkillRelationship
micro-interaction-motion-designSets foundation duration tokens
touch-gesture-interactionConnects gesture velocity to spring release
perceived-performance-loadingCoordinates skeleton reveal transitions

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.