ui-review
A Claude Code skill that reviews any web page or app for UI/UX defects using the agent-browser CLI.
It checks every common breakpoint (mobile 360, tablet 768, laptop 1366, desktop 1920) for:
- Text overflow, clipping, and truncation without ellipsis
- Awkward wrapping (multi-line buttons, orphan words)
- Horizontal scroll and the elements causing it
- Overlapping elements
- Tap targets smaller than 24px (WCAG 2.5.8)
- Broken, stretched, or container-overflowing images
- Placeholder leakage (
undefined, NaN, [object Object], lorem ipsum)
- Missing viewport meta, tiny font sizes
- Console errors and failed network requests
- Dark-mode regressions (screenshot diff)
Programmatic checks run in-page via eval; screenshots are then visually inspected by the model for things JS can't judge (misalignment, bad truncation, contrast). When reviewing a local dev server with the source code present, findings are mapped back to file:line and can be fixed in place.
Thorough mode (/ui-review thorough): three deep scenario packs beyond the standard sweep — interaction/state QA (focus indicators, modal focus traps, silent network failures, double-submit, empty/loading states), content stress (long-string and i18n injection, 200% zoom / 320px reflow per WCAG 1.4.4/1.4.10, 0/1/1000-item lists), and rendering environments (dark-mode contrast, reduced motion, sticky-header occlusion, hi-DPI blur, font loading).
Regression mode: /ui-review baseline stores per-breakpoint screenshots + defect JSON in .ui-review/ (commit it). Later runs pixel-diff and JSON-diff against the baseline and only spend vision tokens on breakpoints that actually changed — unchanged pages cost near zero.
🚀 Install
-
Install agent-browser (once):
npm i -g agent-browser && agent-browser install
-
In any Claude Code session, run:
/plugin marketplace add cdmx-in/ui-review
/plugin install ui-review@ui-review
Or with the skills CLI:
npx skills add cdmx-in/ui-review
That's it. No tokens or accounts needed — it installs straight from this public GitHub repo.
Alternative: manual install via git clone
git clone https://github.com/cdmx-in/ui-review /tmp/ui-review
cp -r /tmp/ui-review/skills/ui-review ~/.claude/skills/ui-review
Windows (PowerShell):
git clone https://github.com/cdmx-in/ui-review "$env:TEMP\ui-review"
Copy-Item -Recurse "$env:TEMP\ui-review\skills\ui-review" "$env:USERPROFILE\.claude\skills\ui-review"
Claude Code auto-discovers skills in ~/.claude/skills/.
🔍 Use
In any Claude Code session:
/ui-review http://localhost:3000
or just say "review the UI", "check responsiveness of my app", "find layout bugs on staging.example.com". With no URL, it probes common local dev ports (3000, 5173, 8080, 4200). Ask for fixes ("review the UI and fix what you find") and it will patch the source, hot-reload, and re-verify.
🧭 Modes
| Mode | Invoke | What it does |
|---|
| Standard | /ui-review [url] | Sweep 4 breakpoints: in-page defect detection + full-page screenshots + console/network errors, then visual inspection. Writes .ui-review/<page>/REPORT.md. |
| Baseline | /ui-review baseline [url] | Store per-breakpoint screenshots + defect JSON in .ui-review/ (commit it). Known defects go in KNOWN.md so they aren't re-reported. |
| Compare | /ui-review [url] (baseline exists) | Pixel-diff + JSON-diff against the baseline; only inspects breakpoints that changed. Reports regressed / fixed / unchanged. |
| Thorough | /ui-review thorough [url] | Standard sweep + deep scenario packs: interaction/state QA, content & i18n stress injection, rendering environments. |
📋 Example output