UI rules checked line by line
Point Claude at your code and it checks animation, timing, sound, laws of UX and type, naming the exact line.
See it work
You give it
Use userinterface-wiki to review BagDrawer.tsx, the slide-out bag on my Chicago coffee roastery's store (Next.js + Motion). It feels sluggish and cheap:
{open && (
<motion.aside
initial={{ x: 400 }}
animate={{ x: 0 }}
transition={{ duration: 0.6, ease: "linear" }}
style={{ boxShadow: "0 8px 30px rgba(0,0,0,0.5)" }}>
<button onClick={close} className="w-4 h-4"><X /></button>
<motion.ul transition={{ staggerChildren: 0.15 }}>
{items.map((item, i) => (
<motion.li key={i} exit={{ opacity: 0 }}>
{item.name} <span>${item.price}</span>
</motion.li>
))}
</motion.ul>
</motion.aside>
)}
You get back
The "sluggish" comes from lines 5 and 8: a 600ms linear slide, then a 150ms wait per item. The "cheap" comes from lines 1, 6 and 7: the drawer blinks out instead of leaving, the shadow is half-opacity black, and the close button is a 16px target that doesn't react when pressed.
Findings
BagDrawer.tsx:1 - [exit-requires-wrapper] Conditional motion.aside has no AnimatePresence, so closing the bag unmounts it instantly
BagDrawer.tsx:2 - [exit-prop-required] No exit prop, so even once wrapped there is nothing to animate on close
BagDrawer.tsx:3 - [exit-matches-initial] Enters from x: 400; the exit should mirror it and leave to x: 400
BagDrawer.tsx:5 - [timing-under-300ms] duration: 0.6 is 600ms for a user-opened drawer, twice the 300ms limit
BagDrawer.tsx:5 - [easing-no-linear-motion] ease: "linear" on a moving panel feels mechanical; linear is for progress indicators only
BagDrawer.tsx:5 - [spring-for-interruptible] Close is live while the drawer is still opening, so the motion can be interrupted and needs a spring
BagDrawer.tsx:6 - [visual-no-pure-black-shadow] rgba(0,0,0,0.5) is pure black at 50%, which reads harsh
BagDrawer.tsx:6 - [visual-layered-shadows] A single shadow looks flat; layer a tight one and a soft one
BagDrawer.tsx:7 - [ux-fitts-target-size] w-4 h-4 makes the close button 16px, under the 32px minimum
BagDrawer.tsx:7 - [physics-active-state] Close button has no :active scale, so a press gives no feedback
BagDrawer.tsx:8 - [physics-no-excessive-stagger] staggerChildren: 0.15 is 150ms per item, so a 6th bag of coffee starts 750ms in. Limit is 50ms
Part of a run in Claude (Opus 5.5), Nov 2026
What it does
- Ranks rules by how much they matter.
- Covers Fitts's and Hick's laws of UX.
- Points to the file and line for each issue.
What's inside
userinterface-wiki/AGENTS.mduserinterface-wiki/CREDITS.mduserinterface-wiki/SKILL.mduserinterface-wiki/license.mduserinterface-wiki/metadata.jsonuserinterface-wiki/rules/_sections.mduserinterface-wiki/rules/_template.mduserinterface-wiki/rules/a11y-reduced-motion-check.md- and 151 more files
How you use it
- Get the skill: one zip file. It comes with every paid plan.
- Add it to Claude. In Claude, open Customize (Plugins on newer screens), then Skills. Press +, then Create skill, then Upload a skill. In Claude Code, unzip it into ~/.claude/skills/ instead.
- Start a new chat and tell Claude what you need, the way the example above does. The skill takes it from there.
- Then ask for the work. Claude reaches for the skill when it fits, or name it: "use userinterface-wiki".
Get this skill with a paid plan
The download comes with every paid plan, along with all 204 Claude skills and the rest of the AI toolkit. “Sites that don't look templated” in this folder is free, so you can try one first.