ui-review
What it does
This tool reviews user interface (UI) code to ensure it follows design rules, is accessible to everyone, and adheres to programming best practices.
When to use it
- βWhen you want to check if interface code follows the defined visual standard.
- βWhen you need to ensure the interface works well for people with disabilities.
- βWhen you want to be sure the code follows good development practices.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-review/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βReview the UI code in this file: ui-code.jsβ
5 new skills a week. 1 minute to read.
How it works
The tool compares your code against a list of rules about colors, sizes, accessibility, and other best practices. It points out what deviates from the standard and suggests how to fix it.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
UI Design Review
When to Use
Use this skill when you need review UI code for design system compliance, accessibility, and best practices.
When NOT to use
- For accessibility-only issues β use
/ss-a11y - For Nielsen UX heuristics β use
/ss-audit - For a quick automated check β use
/ss-lint - For non-UI code (data fetching, business rules)
Review the file: $ARGUMENTS
Checklist
1. Design Token Compliance
- No hardcoded hex colors (use semantic tokens:
text-foreground,bg-brand, etc.) - No hardcoded px spacing in Tailwind (use
p-6notp-[24px]) - Shadows use CSS variables (
shadow-[var(--shadow-card)]) - Border radius follows the scale (
rounded-md,rounded-lg,rounded-2xl)
2. Component Conventions
- Uses
data-slotattribute - Uses
cn()for className merging - Props typed with
React.ComponentProps<> - Supports
classNameprop override - Named export (not default export for components)
- No wrapper components that only add a className
3. Accessibility (a11y)
- Touch targets >= 44x44px for interactive elements
-
focus-visiblestyles on all interactive elements - Proper
aria-*attributes where needed - Color contrast meets WCAG AA (4.5:1 for text, 3:1 for large text)
- Animations respect
prefers-reduced-motion - Images have
alttext - Form inputs have associated labels
4. Mobile Best Practices
- No horizontal overflow
- Touch-friendly spacing between interactive elements
- Safe area insets handled for notched devices
- Text sizes >= 12px for readability
- Scrollable containers have
-webkit-overflow-scrolling: touch
5. Performance
- No unnecessary re-renders (stable references, memoization where needed)
- Images are lazy-loaded
- Heavy components are code-split
6. Typography
- Uses the Pretendard/Inter font stack
- Font sizes from the 14-step scale (10-48px, see CLAUDE.md)
- Proper font weights (400, 500, 600, 700)
- Display text (36-48px):
leading-none+tracking-[-0.02em] - Heading text (18-24px):
leading-snug+tracking-[-0.01em] - Body text (14-17px):
leading-normal(no custom tracking) - Caption uppercase (10-13px):
tracking-[0.05em]ortracking-wide - No
line-height: 1.5on display/heading text (too loose)
7. Spacing Consistency
- All spacing values are multiples of 6px (p-1.5, p-3, p-6, etc.)
- No arbitrary spacing (p-5=20px, gap-3.5=14px are violations)
- Uses
size-*shorthand instead ofw-* h-* - Uses
ms-*/me-*instead ofml-*/mr-*(logical properties) - Motion transitions use design tokens (
duration-[var(--duration-fast)])
8. Coherence (VISUAL-CRAFT.md Β§C0 β the "one choice per axis" laws)
The biggest reason a UI reads as "AI-generated" isn't ugly parts β it's mixed parts. Check that each axis below uses ONE value system-wide; flag a mix as a real issue, not a nitpick.
- One radius personality β sharp (0-4px) OR soft (8-12px) OR pill, applied to every card/button/input/modal. No mixing (e.g. a
rounded-nonepanel withrounded-fullbuttons). - One accent color for interactive emphasis (+ semantic red/green/amber only) β not two+ competing accents.
- No emoji as UI icons (ππ§Ίβ as list/nav/status/category markers) β they inject many uncontrolled hues; use one line-icon set in
currentColor. - Status color = severity, not decoration β a normal/OK/"보ν΅" state is neutral grey (not colored); color marks only the minority of rows that need attention; same value β same color.
- No decorative hues β favorite stars, category dots, avatars use the accent or grey, not a new color each.
- One shadow language β same light direction, same scale/tint; not some black + some tinted, some up-lit + some down-lit.
- One icon family / fill mode / stroke weight across the file.
- Nested-radius law β an element inside a rounded container uses
inner = outer β padding, not the same radius (which bulges). - Consistent control heights β buttons, inputs, selects share a height set (e.g. 40px).
- Errors/states never rely on color alone (icon + text too).
Output Format
Provide:
- Score: Pass / Needs Improvement / Fail
- Issues: List each violation with file:line reference
- Fixes: Concrete code changes for each issue
Example
User request:
β¦
FAQ
What are 'design tokens'?
They are like predefined building blocks for colors, spacing, and other visual elements, ensuring design consistency.
What is 'accessibility (a11y)'?
It's about ensuring the interface can be used by all people, including those with visual, auditory, or motor impairments.
What does 'hardcoded' mean?
It means a value (like a color or size) was written directly into the code, instead of using a defined rule or variable.
Details
Original description by the author
Review UI code for design system compliance, accessibility, and best practices
Popularity
- GitHub stars
- 48k
- Ranking position
- #6042
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
canvas
394kLets your agent show a hosted visual widget on a connected Mac panel, then hide the panel or move it to another page.
control-ui
394kHelps your agent organize and troubleshoot the OpenClaw Control UI, including sessions, dashboards, and connected Gateways.
diagram-maker
394kHelps your agent create clear diagrams as SVG, HTML, or editable Excalidraw files for processes, system architecture, and whiteboard sketches.