# Feel: UI motion built on physics, not durations (diip3sh/feel) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-23 against commit c9b22fa (version 0.2).
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/diip3sh/feel/

## Explain it to a non-programmer
Describe how a toggle, drawer, card or knob should feel ("heavy", "magnetic", "bouncy") and your assistant builds it so it moves like a real object with weight and a spring. It also builds a test page that draws the motion, so you can see the movement matches the words. No animation in the result has a fixed length in time.

## Who it is for
- You want a toggle, slider, bottom sheet, carousel or knob that feels heavy, snappy, magnetic or springy
- You can say how a motion should feel but not which numbers make it feel that way
- You use Claude Code or another assistant that reads skills, and build for the web, React, SwiftUI or Compose
- Not for: You want timed animations with set lengths and easing curves: the skill forbids them
- Not for: You need a whole product's motion system in one go: the skill proposes the 3 most important pieces first

## What it is
- Kind: knowledge, scripts, command
- License: MIT
- Repository: https://github.com/diip3sh/feel

## What it does
- Every motion comes from mass, stiffness, damping and forces; no hand-picked durations, easing curves or timers that move things
- Words to numbers: Feel.words("heavy, snappy") returns mass, frequency and damping; references/vocabulary.md lists every word
- Picks a model: a spring to a target (toggles), a field of magnets and friction (sheets, carousels), walls at the ends, a plane (thrown cards) or an angle (knobs)
- A drag pulls the object through a hand spring, so heavy things lag the finger; release keeps the real speed
- Builds the component and a test rig that plots position, speed and force with the prediction on top
- Keyboard reaches every state; reduced-motion settings jump straight to rest
- Checks with node scripts/audit.mjs, then a hands-on checklist (slow drag, hard flick, grab mid-motion, keyboard, reduced motion)
- Never cuts: keyboard access, reduced motion, interruption mid-motion
- Level interaction: One component, one body: 20 to 45 minutes, built without asking
- Level gesture system: Several bodies or a field: 1 to 3 hours, said first, then built
- Level motion system: A whole product: not started; the 3 most important interactions are proposed instead

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| feel | /feel <the interaction and how it should feel>, or plain language | yes | Builds a moving part of your interface from a feel you describe in words, plus a page to test it |

### feel
- Asks for: The interaction: toggle, drawer, bottom sheet, card, knob, slider, carousel
- Asks for: How it should feel, in words: heavy, snappy, magnetic, bouncy, sticky
- Asks for: Your stack, if not plain web: React, or a spring for Framer Motion, react-spring, SwiftUI, Compose or CSS
- Gives: The size of the job
- Gives: One sentence per number (frequency, damping, mass)
- Gives: The component, built on a body with mass
- Gives: A test rig with position, speed and force plots and the predicted path
- Gives: The same spring exported for your stack, when needed
- Gives: The audit result and one line per hands-on check
- Say: "/feel bottom sheet with three magnetic stops, slightly bouncy"

## Know before installing
- It switches on by itself: the skill says to use it for any animation, transition, gesture or micro-interaction, even when you never say physics.
- It overrides timed animation: CSS transitions with a length, easing curves and tween libraries fail its audit. A non-motion colour fade must be marked /* chrome */.
- Your app ships its script: when no library has an equivalent, the component uses runtime/feel.js (15 kB gzipped as reported by the author).
- Some exports are approximate: the Framer Motion export for magnets is an approximation, and points in a plane and detented knobs have no Framer equivalent.
- Your assistant runs a Node check script from the skill folder, and opens a local web server to show the demo page.

## Install (official commands)
- Any agent (skills CLI): `npx skills add diip3sh/feel` Remove: `delete the installed feel skill folder`.
- Claude Code: `git clone https://github.com/diip3sh/feel ~/.claude/skills/feel` — Restart the agent after installing, then type /feel with the interaction and how it should feel. Remove: `delete ~/.claude/skills/feel`.

## What runs on the user's machine
- Code on the machine: yes (when the assistant runs the audit or serves the demo page; the components run in your app's browser)
- Network: optional
- Install: One folder: SKILL.md, references, a browser script and stylesheet, a test rig, four example components, a React hook and a check script. No hooks, no install scripts.
- Verify step: node scripts/audit.mjs reads the files you name (or the components and demo page), loads runtime/feel.js and checks the physics. It only reads files and prints passed or failed; no network.
- Opening the demo: The skill tells the assistant to serve the folder with python3 -m http.server. The demo page loads the Inter font from Google Fonts in your browser.
- In your app: The component runs runtime/feel.js in the browser on one shared animation loop. The rig's copy buttons write to your clipboard when clicked.

## Examples (from the pack's own files)
- The numbers explained in words: output format defined in SKILL.md
- The model named before code: output format defined in SKILL.md

## Author's numbers (as reported, not run by AgentGid)
- The runtime is 15 kB gzipped, comments included (author's own figure). Source: diip3sh/feel/SKILL.md
- Solver error under 1e-4 px over a 100 px step (checked by the pack's own audit script). Source: diip3sh/feel/references/models.md

## Steps only the person can do
- Restart the agent after installing (README / index.html of the pack) Then: The assistant can use /feel
- Do the hands-on checks in the browser (slow drag, hard flick, grab mid-motion, keyboard only, reduced motion) (references/verify.md) Then: The assistant records one line per check

## Mistakes to avoid
- Not: Ask for a 300 ms ease-out transition and expect the skill to keep it. Instead: Describe the feel in words; the duration comes from the model, and CSS durations are computed and labelled. Why: The audit fails on hand-picked durations and easing curves
- Not: Show a weighty toggle with taps only. Instead: Include a drag in the demo when the feel is about weight. Why: Mass shows only when something pushes, such as a finger
- Not: Use the CSS linear() export for a flick or a magnetic sheet. Instead: Use Feel.handoff, which bakes each release into keyframes with its real speed. Why: linear() only replays a step from rest
- Not: Animate a custom property in CSS mode without registering it. Instead: Register it with @property and a <number> syntax. Why: Otherwise the browser flips the value instead of interpolating
- Not: Ask for a whole product's motion system in one request. Instead: Start with the 3 interactions that matter most. Why: The skill does not start a full motion system

## What leaves the machine
- A font request (the page address and your IP) when you open the demo page → Google Fonts (fonts.googleapis.com, fonts.gstatic.com), Only when index.html is opened in a browser. Opt out: Skip the demo page, or remove the font link from index.html

## Lines in the pack aimed at agents (ask the person first)
- "Build it without asking." (SKILL.md): Fine for one small component, but confirm with the person before editing files in a shared or production codebase.
- "Serve the folder (`python3 -m http.server`) and play with all four." (SKILL.md): This starts a local web server on all interfaces by default; ask the person first and bind it to 127.0.0.1.
- "Run `node scripts/audit.mjs <your files> --feel "<your words>"`. It must print `passed`." (SKILL.md): Runs code from the skill folder; it only reads files, but tell the person before running it.

## May I use it like this?
- commercial-app: yes (MIT)
- inside-app-bundle: conditions (MIT: keep the copyright and permission notice with runtime/feel.js in your bundle)
- client-work: yes (MIT)
- redistribute-files: conditions (MIT: include the copyright and permission notice)

## Which one to pick
- If You want interactions tuned from words into mass, stiffness and damping, with a test rig and no fixed durations: skill:diip3sh/feel
- If You want motion rules built on timing and easing curves, plus reviews of animation code: skill:emilkowalski/skills
- If You want timing, easing and choreography principles for motion design in general: skill:LottieFiles/motion-design-skill
- If You want GSAP, SVG, Lottie and page-transition animations on the web: skill:iart-ai/web-animation-skills

## Works well with
- tool:framer-motion: The rig exports the same spring to Framer Motion
- tool:react-spring-npm: The rig exports the same spring to react-spring

## Works in and needs
- Works in Claude Code: skills folder
- Works in Any agent the skills CLI supports: skills CLI
- Needs Node.js: Only to run the audit script
- Needs Python 3: Only to serve the demo page locally
- Needs React: Only for the optional React hook

## How to tell it works
Say "/feel a toggle that feels heavy, React". It works if the assistant first names the size of the job, writes one sentence per number, and the toggle lags your finger when you drag it slowly.
