ui-review

Review UI code for design token compliance, accessibility, and visual consistency.

3|Updated Jul 17, 2026
One-click install
npx skills add https://github.com/Javeria-Javaid/Alkhidmat_foundation_lahore --skill ui-review-javeria-javaid
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ui-review
Source: https://github.com/Javeria-Javaid/Alkhidmat_foundation_lahore/tree/main/.agent/skills/ui-review
Command: npx skills add https://github.com/Javeria-Javaid/Alkhidmat_foundation_lahore --skill ui-review-javeria-javaid

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? UI code often drifts from design system rules through hardcoded colors, inconsistent spacing, missing accessibility attributes, and mixed visual styles. This Skill provides a structured checklist-based review that catches these violations before they reach production. ## Core Features & Use Cases - Design Token Compliance: Detects hardcoded hex colors, arbitrary pixel spacing, and non-standard shadows or border radii in Tailwind-based components. - Accessibility Auditing: Checks touch target sizes, focus-visible styles, ARIA attributes, color contrast ratios, and reduced-motion support against WCAG AA. - Visual Coherence Analysis: Enforces one-choice-per-axis rules for radius, accent color, icon family, shadows, and control heights to eliminate the mixed-style look. - Use Case: A developer finishes a new settings page in React and Tailwind. Running this review flags a hardcoded #3B82F6 color, a 20px padding violation, and missing aria-labels, returning concrete fixes with file and line references. ## Quick Start Review the UI code in src/components/SettingsPanel.tsx for design system compliance, accessibility, and visual consistency.

Frequently Asked Questions about ui-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review React components for design system compliance?▼

Run a checklist-based review that checks for hardcoded hex colors, arbitrary Tailwind spacing values, and non-standard shadows or radii. Each violation is reported with a file and line reference plus a concrete code fix using semantic design tokens.

How to check Tailwind CSS code for accessibility issues?▼

Verify touch targets are at least 44x44px, interactive elements have focus-visible styles, color contrast meets WCAG AA ratios of 4.5:1 for text, and animations respect prefers-reduced-motion. Form inputs need associated labels and images need alt text.

When should I not use a full UI design review?▼

Skip the full review for accessibility-only checks, quick automated linting, or Nielsen heuristic evaluations, which have dedicated lighter-weight tools. It also does not apply to non-UI code such as data fetching or business logic.

What makes UI code look inconsistent or AI-generated?▼

Mixed visual choices are the main cause: combining sharp and pill radii, using multiple accent colors, mixing icon families or stroke weights, and pairing different shadow styles. A coherence review enforces one value per visual axis across the entire file.

Does this review work with component libraries using cn() and data-slot?▼

Yes, the component conventions checklist specifically verifies data-slot attributes, cn() className merging, React.ComponentProps typing, className override support, and named exports, matching shadcn-style component patterns.