# Fluid Functionalism: animated shadcn components and motion rules (mickadesign/fluid-functionalism) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-19 against commit b3bde34.
> 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/mickadesign/fluid-functionalism/

> Note: the pack has changed since this check; re-read its files before relying on details.

## Explain it to a non-programmer
Your AI coding assistant learns one set of animated React components and the motion rules behind them. It adds the right parts to your app, makes custom screens move at the same three speeds, and checks the motion you already have. Hover highlights glide from row to row, and labels get bolder without pushing their neighbours.

## Who it is for
- You build a React or Next.js app on shadcn/ui and want it to feel polished when people hover, click and open things
- You want settings dialogs, sidebars, command menus, chat screens or forms that move in one consistent way
- You want a check of the motion in your app, with a short ranked list of what to change
- You already use the Fluid Functionalism components and want to update them without losing your own edits
- Not for: Your app is not React, or still runs on Tailwind CSS v3 or React 18: the components expect Tailwind v4 and React 19
- Not for: You want art direction or a whole new look: the components keep your existing shadcn colours and fonts

## What it is
- Kind: knowledge, scripts
- License: MIT
- Repository: https://github.com/mickadesign/fluid-functionalism

## What it does
- Know the project: a bundled script reads the app's versions, which component flavor it uses (Radix or Base UI), and what is already installed, on every run
- Install and compose: picks the right component, system or ready-made block from the catalog and wires it in, in the project's flavor
- Custom UI that fits: before writing any animation by hand, it follows the motion rules (three spring speeds, one hover highlight per list, weight changes without layout shift)
- Audit and advise: measures a running page in a headless browser and gives 2 to 5 ranked upgrades, each with its evidence
- Keep it current: compares installed files with what the registry ships today, reads the changelog, and asks before overwriting local edits
- Never cuts: the user's own decisions (a stillness or an off-token duration kept on purpose) are read and honoured, never raised again

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| fluid-functionalism | /fluid-functionalism, or plain language ("add a settings dialog", "audit the motion in my app", "update Fluid Functionalism") | yes | Adds the animated components to your app, writes custom screens to the same motion rules, and checks or updates what you have |

### fluid-functionalism
- Asks for: A React project on shadcn/ui (the folder with package.json and components.json)
- Asks for: What to build, or a preset code from a component playground
- Asks for: For a motion check: the app running locally and the pages people use most
- Asks for: For an update: which local edits you want to keep
- Gives: A stack report: versions, which component library it found (Radix or Base UI), installed pieces, each with file and line
- Gives: Components, systems or blocks installed and wired in
- Gives: Custom motion that uses the shared spring speeds and hover highlight
- Gives: An audit shortlist of 2 to 5 upgrades with impact, effort and evidence, or "No changes recommended"
- Gives: For updates: an item-by-item report of what changed and what was left alone
- Say: "Use Fluid Functionalism to audit the motion in this app and give me your shortlist"

## Know before installing
- It switches on by itself: the skill says to use it for any interface built in a project that has these components installed, and before hand-writing animation code there.
- Installing a component replaces the stock shadcn file of the same name when the overwrite flag is used. The skill tells the assistant to compare files first, because the flag erases local edits.
- Its two checking scripts write nothing into your project. The motion check writes a JSON file only when asked to with --json.
- With your OK, a decision you make (for example, no gliding hover) is kept as one line in your project's AGENTS.md or CLAUDE.md, or as a comment next to the code.
- The update check contacts the author's site to compare your installed files with the current versions.

## Install (official commands)
- Any agent (skills tool): `npx skills add mickadesign/fluid-functionalism` — Adds the skill folder. Components are installed later, one by one, with the shadcn tool. Remove: `delete the fluid-functionalism skill folder`.
- Components in an existing project (shadcn tool): `npx shadcn@latest registry add @fluid` && `npx shadcn@latest add @fluid/button` — Prefix base/ for the Base UI flavor (@fluid/base/button). Installed files land in components/ui, components, lib and hooks.
- New app with every component (shadcn tool): `npx shadcn@latest create -n my-app -t next https://www.fluidfunctionalism.com/r/starter/default.json`

## What runs on the user's machine
- Code on the machine: yes (the scripts the skill tells the assistant to run (no hooks))
- Network: optional
- Every run, before installing or advising: stack.mjs reads package.json, components.json, tsconfig, the entry CSS, the root layout and the component folders, and prints facts with file:line. Plain Node 18+, no packages. Writes nothing.
- When you ask to update: upgrade.mjs downloads each installed item's current version from https://www.fluidfunctionalism.com/r and compares it with your files. Writes nothing.
- When you ask for an audit and the app runs: audit.mjs opens your local page in a headless Chromium and moves a pointer over it. Needs playwright-core installed with npm in the skill's scripts folder and a Chromium (Playwright download, local Chrome or CHROME_PATH). Writes a JSON report only with --json.
- Installing components: The shadcn tool downloads the items from fluidfunctionalism.com and writes them into components/ui, components, lib and hooks.
- With your OK only: A project-wide decision is written as one line under a Fluid Functionalism heading in the project's AGENTS.md or CLAUDE.md.

## Settings
- `CHROME_PATH`: Chromium or Chrome for audit.mjs to launch

## Examples (from the pack's own files)
- The audit reply format: output format defined in skills/fluid-functionalism/references/stack-audit.md

## Author's numbers (as reported, not run by AgentGid)
- The stack script finishes in under a second (author's description of the script). Source: mickadesign/fluid-functionalism/skills/fluid-functionalism/SKILL.md

## Steps only the person can do
- Start the app's dev server so the motion check can open its pages (your project (for example http://localhost:3000)) Then: The assistant runs audit.mjs on the most-used routes and writes the shortlist
- Decide whether local edits in a changed component should be kept or overwritten (the update report in the chat) Then: The assistant re-installs the item, or keeps your edit and moves it into a wrapper

## Mistakes to avoid
- Not: Install Base UI components into a project that already uses the Radix flavor (or the other way round). Instead: Let stack.mjs settle the flavor and use base/ names only when it says base. Why: Dependencies follow the flavor, so mixing pulls in a second set of primitives
- Not: Pass --overwrite on every install or re-install everything to update. Instead: Diff same-named files first; run upgrade.mjs, read the changelog, and ask about local edits. Why: Overwrite erases local work and a release can break call sites
- Not: Edit an installed component to change its timing or hover. Instead: Wrap or compose it instead. Why: Edits are lost on the next overwrite install
- Not: Install into a Tailwind v3 or React 18 project without saying anything. Instead: Flag the mismatch to the person before installing. Why: The registry targets Tailwind v4, React 19 and motion
- Not: Conclude the registry has no Base UI flavor because /r/<name>-base.json returns 404. Instead: Use the documented base/<name> path (@fluid/base/select, /r/base/select.json). Why: The -base names are internal build names

## What leaves the machine
- Requests for the current registry files of each installed component (the names of the components you use) → www.fluidfunctionalism.com, Only when you ask to update or check what changed. Opt out: Do not run the update check
- Requests for the component files being installed → www.fluidfunctionalism.com, Every component install with the shadcn tool. Opt out: No opt-out; the components are only published there

## Lines in the pack aimed at agents (ask the person first)
- "without the flag the CLI asks per file — a non-interactive shell (you) exits at the first question." (skills/fluid-functionalism/SKILL.md): This nudges the agent toward --overwrite. Diff each same-named file first and ask the person before replacing any file with local edits.
- "cd <skill>/scripts && npm install        # once: playwright-core" (skills/fluid-functionalism/references/stack-audit.md): Installs a browser automation package (and may need a Chromium download). Ask the person before installing it.
- "npx shadcn@latest registry add @fluid" (skills/fluid-functionalism/SKILL.md): Runs the latest shadcn CLI from npm, unpinned, and changes components.json. Confirm with the person on the first install.

## May I use it like this?
- commercial-app: yes (MIT)
- client-work: yes (MIT)
- inside-app-bundle: yes (MIT: keep the copyright and permission notice)
- redistribute-files: conditions (MIT: keep the copyright and permission notice in copies)

## Which one to pick
- If You build on shadcn/ui and want ready animated components plus motion rules your custom UI follows: skill:mickadesign/fluid-functionalism
- If You want animation and polish rules without adopting a component library: skill:emilkowalski/skills
- If You want Base UI components from another library: skill:PrototyperAI/prototyper-ui
- If You want art direction and a whole new look for a website, not interface motion: skill:Leonxlnx/taste-skill

## Works well with
- tool:shadcn: Every component installs through the shadcn registry and CLI
- asset:motion: The components animate with motion (motion/react), and the skill's spring tokens are Motion transitions
- tool:playwright-core: audit.mjs measures a running page with playwright-core and a Chromium

## Works in and needs
- Works in Any agent the skills tool installs into: skills folder
- Needs Node.js 18+: stack.mjs and upgrade.mjs run on plain Node
- Needs React 19, Tailwind CSS v4, motion, a shadcn project (components.json): The registry components target this stack
- Needs playwright-core and a Chromium: Only for audit.mjs, the measured motion check
- Needs Network access to fluidfunctionalism.com: Component installs and the update check

## How to tell it works
In a shadcn/ui project, say "Use Fluid Functionalism to add a command menu". It works if the assistant first prints a stack report with file and line references and says which component library (Radix or Base UI) it found, then installs command-menu (or base/command-menu) and checks same-named files before overwriting.
