Audit, review, and polish existing frontend UI, CSS/Tailwind/React/Vue/Taro components, interaction feel, animation physics, and edge-case resilience. Activate whenever the user asks to review or critique a UI, polish visual craft, remove AI slop, audit or fix animations, run a pre-ship UI check, or stress-test edge cases (Break UI) — e.g. "review this page", "audit animations", "polish UI", "UI 评审", "检查交互手感", "交付前自检", "去掉 AI 味".
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Motion Kit Review?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/wangjian-damon-motion-kit-review)
---
name: motion-kit-review
description: >-
Audit, review, and polish existing frontend UI, CSS/Tailwind/React/Vue/Taro
components, interaction feel, animation physics, and edge-case resilience.
Activate whenever the user asks to review or critique a UI, polish visual craft,
remove AI slop, audit or fix animations, run a pre-ship UI check, or stress-test
edge cases (Break UI) — e.g. "review this page", "audit animations", "polish UI",
"UI 评审", "检查交互手感", "交付前自检", "去掉 AI 味".
---
# MotionKit · UI Craft & Motion Audit (Review)
A practical, evidence-first review workflow for **existing** pages and components. Find real defects, rank them by user impact, and make surgical fixes without hijacking the project's design system.
---
## Step 1 · Run Deterministic Static Lint First
Before giving subjective feedback, run the zero-dependency 12-rule static auditor (supports CSS, SCSS, WXSS, ACSS, HTML, Vue, JSX/TSX, Svelte & Tailwind) to get a 0–100 Craft Score and exact `file:line` evidence:
- If `motion-kit` is installed or available locally:
```bash
npx -y github:wangjian-damon/motion-kit lint <target-file-or-dir>
# Or emit a surgical fix prompt directly:
npx -y github:wangjian-damon/motion-kit lint <target-file-or-dir> --prompt
```
(Inside a repo that already has `motion-kit`, run `node bin/cli.mjs lint <target>`.)
- If the `motion-kit` MCP server is connected, call `audit_ui_code` (with optional `asFixPrompt: true`) on the target code/stylesheets.
- If neither CLI nor MCP can be invoked in the current environment, run the equivalent checks manually in Step 2.
---
## Step 2 · Severity-Ranked Audit + Break-UI Stress Test
Inspect the code and classify **only real, verified issues** into three tiers:
### P0 · Blockers (Fix Immediately)
- **Layout breakage**: horizontal overflow, overlapping/clipped controls, fixed dimensions that crush content on 390px viewports.
- **Accessibility & keyboard**: controls unreachable via `Tab`/`Enter`/`Esc`, missing `:focus-visible` indicator, unreadable text contrast.
- **Touch & gesture bugs**: interactive hit targets `< 44×44px` on mobile/touch screens; `pointercancel`/`touchcancel` mistakenly triggering dismiss/submit; duplicate `view-transition-name` held simultaneously by two elements.
- **Motion safety**: looping, parallax, or large-displacement animations with zero `prefers-reduced-motion` handling.
### P1 · Interaction, Forms & Physics (High-Impact Feel)
- **Missing states & form friction**: interactive controls missing `hover`, `focus-visible`, `active`, `disabled`, `loading`, or `empty` states; placeholder-only inputs with no persistent label; competing high-emphasis primary CTAs in the same modal/toolbar or destructive action flush against confirm with equal weight.
- **Performance & broken transitions**: `transition: all` / `transition-all`; transitioning layout properties (`width`, `height`, `top`, `left`, `margin`, `padding`); animations that cannot be interrupted mid-flight.
- **Wrong physics**: popovers/modals/menus entering from `scale(0)` instead of `~0.95` anchored to the trigger; entrances using `ease-in` instead of `ease-out`; UI transitions using `linear`; entrance `transition-delay` never cleared after mount (delaying subsequent presses).
- **Mobile & truncation pitfalls**: bare `:hover` rules not wrapped in `@media (hover: hover)` (causing sticky hover on iOS); `truncate` / `text-ellipsis` inside flex/grid children missing `min-w-0` (silently breaking truncation).
### P2 · Visual Hierarchy, Craft & Anti-AI-Slop (Polish)
- **Typography & numbers**: flat text contrast lacking Primary / Secondary / Muted hierarchy; dynamic numbers or numeric table columns missing `font-variant-numeric: tabular-nums` or right alignment; skipped semantic heading levels (`h1` → `h4`).
- **Spacing & visual hierarchy**: violated proximity rhythm (inner group spacing ≥ outer section spacing), cramped card padding (`<16px`), nested cards-inside-cards, heavy high-contrast solid borders where subtle hairlines (`rgba` / `ring-black/5`) belong; routine interactive transitions exceeding `400ms`.
- **AI template tropes** (flag unless explicitly requested by brand/user): purple-to-blue cliché gradients, meaningless `blur-3xl` glow blobs, gratuitous glassmorphism on plain cards, generic 3-column circular-icon filler grids, decorative badge/emoji clutter.
### Break-UI Edge-Case Checklist
Check how the component behaves under worst-case inputs:
1. **30+ character names/titles** (CJK + long unbroken Latin/URLs) — does it wrap/truncate cleanly without pushing sibling buttons off-screen?
2. **Empty state (0 items)** and **dense state (100+ items)** — is scrolling contained and non-janky?
3. **Narrow mobile width (390px)** and **wide desktop (1440px+)** — does the layout stay balanced?
4. **`prefers-reduced-motion: reduce`** — does core motion reduce smoothly, decorative/3D shut off, and glass stay visually intact?
---
## Step 3 · Real Browser Verification (Strict Honesty Rule)
- **When browser tools are available** (built-in browser, Chrome DevTools, or Playwright): inspect live rendered output at mobile (`390px`) and desktop (`1280px+`) to verify actual overflow, clipping, contrast, and interactive states.
- **When no live browser is available**: explicitly report *"Code-level static & logic review only — visual overflow, occlusion, and rendered contrast were not verified in a browser."* **Never claim a visual check passed by guessing from source code.**
---
## Step 4 · Report & Surgical Fix
1. Present findings grouped by `P0 / P1 / P2` with exact `file:line`, concrete user impact, and one-line fix rationale. Skip empty tiers and skip nitpicks that don't visibly improve quality.
2. When asked to fix, apply minimal, targeted patches that preserve the project's existing design tokens, framework conventions, and component APIs — then re-run `motion-kit lint` (and browser check if available) to confirm all reported defects are resolved.