agentleFS
dafaalzdafaalz/agent-skills/skills/ui-ux-review/SKILL.md

ui-ux-review

Skill2 starsChanged 2 months agoMITView on GitHub

Use when auditing user interfaces and user experience, web accessibility standards, CSS layout architecture, cognitive friction, or design token compliance. Don't use for backend logic review, database schema auditing, or build pipeline debugging.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

21 rules. 0 are common, 6 are distinctive, and 15 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 15

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Component implementation audits: When inspecting frontend controls like buttons, comboboxes, dialogs, or inputs, read …

    line 18
  2. Very specific:

    Screen and layout surface audits: When inspecting an entire view, page route, or dashboard, read references/layout-and-space.md, …

    line 19
  3. Very specific:

    Task flows and journey audits: When inspecting multi-step workflows like onboarding, checkout, registration, or wizards, read …

    line 20
  4. Very specific:

    Pull request and git diff reviews: When reviewing git commits or pull requests, read references/scope-and-diff.md.

    line 21
  5. Very specific:

    Enforce visible focus rings: Never accept outline: none or outline: 0 without a verified replacement.

    line 27
  6. Very specific:

    WCAG 2.2 AA accessibility: Verify W3C WAI-ARIA APG patterns, semantic HTML elements, roving tabindex, focus traps, and AccName 1.2 rules.

    line 40
  7. Very specific:

    Visible focus rings: Never accept stripped focus rings.

    line 41
  8. Distinctive:

    Concentric border radii: Ensure nested card shells, buttons, and inner badges maintain concentric curvature.

    line 42
  9. Distinctive:

    APCA and contrast compliance: Verify APCA and WCAG contrast thresholds across text and interactive controls.

    line 44
  10. Very specific:

    Container queries and layout stability: Use CSS Container Queries (@container) for modular components instead of binding solely to viewport …

    line 45
  11. Very specific:

    Component mechanics: Verify Popover API usage, CSS Anchor Positioning, @starting-style transitions, and relational :has() selectors.

    line 46
  12. Very specific:

    Typography mechanics: Verify reading measure between 45 and 75 characters per line, fluid clamp formulas, unitless line heights, and …

    line 47
  13. Very specific:

    Mobile thumb zones: Place primary mobile actions and navigation triggers inside the Natural Thumb Zone along the screen bottom.

    line 59
  14. Very specific:

    Usability heuristics and principles: Check NN/g 10 heuristics, Norman signifiers and constraints, Shneiderman golden rules, and ISO …

    line 62
  15. Very specific:

    Interface copy clarity: Ensure action verbs are clear, avoid developer jargon, and provide concrete recovery steps in error copy.

    line 63
  16. Very specific:

    Check for existing design guidelines (AGENTS.md, DESIGN.md, Storybook rules).

    line 76
  17. Very specific:

    Write or load references/operate-brief.md for operate and read routes before inspecting code.

    line 79
  18. Distinctive:

    Run finish review in fresh context with request, answers, artifact path, screenshots, direction contract, and hook findings as inputs.

    line 120
  19. Distinctive:

    When evaluating visual polish and aesthetics beyond mechanical accessibility, apply these five dimensions:

    line 126
  20. Distinctive:

    Philosophy alignment: Verify whether every visual detail traces directly back to declared design tokens rather than generic AI defaults.

    line 128
  21. Distinctive:

    Run this check before completing any review:

    line 170

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

UI and UX review

Audit user interfaces and user experiences with empirical rigor.

Overview

Audit frontend implementations and user journeys across visual mechanics and cognitive ergonomics. Evaluate code and interfaces against objective browser standards, accessibility specifications, and cognitive psychology research. Disregard subjective taste or generic AI design tropes. Focus on measurable defects, interaction friction, working memory overload, and recovery failures. Consult reference documents in references/ on demand.

Workflow router

Identify user intent and route execution immediately:

  1. Component implementation audits. When inspecting frontend controls like buttons, comboboxes, dialogs, or inputs, read references/accessibility.md and references/component-mechanics.md. Inspect ARIA state patterns, focus visibility, keyboard navigation, concentric radii geometry, and touch target bounds.
  2. Screen and layout surface audits. When inspecting an entire view, page route, or dashboard, read references/layout-and-space.md, references/typography.md, and references/color-and-contrast.md. Inspect 8pt spatial scales, CSS Subgrid alignment, container query boundaries, fluid typography clamps, color token tiering, and Cumulative Layout Shift mitigation.
  3. Task flows and journey audits. When inspecting multi-step workflows like onboarding, checkout, registration, or wizards, read references/task-flows-and-ia.md. Inspect step branching, progress indicators, drop-off risks, and the Lostness Metric.
  4. Pull request and git diff reviews. When reviewing git commits or pull requests, read references/scope-and-diff.md. Inspect modified files for visual regressions, broken keyboard flows, stripped focus rings, hardcoded hex values, and premature validation triggers.

Execution invariants

Enforce these foundational invariants across all audits:

  1. Enforce visible focus rings. Never accept outline: none or outline: 0 without a verified replacement. Require :focus-visible rings with at least a 3:1 contrast ratio, 2px solid thickness, and 2px offset.
  2. Apply concentric border radii geometry. Enforce the concentric corner formula on nested containers R_inner = max(0, R_outer - (padding + border)) to eliminate pinched corners. Never permit identical inner and outer radii on nested containers.
  3. Use discrete surface tokens for elevation. Demand semantic surface tokens based on lightness steps instead of semi-transparent white overlays.
  4. Audit interaction friction over styling. Focus on task completion time, cognitive load, error rates, and mental model mismatches before fine-tuning aesthetics.
  5. Enforce exact cognitive thresholds. Apply Nelson Cowan 4-chunk limits, Doherty 400ms feedback bounds, and Fitts's Law 48px touch targets without inventing arbitrary thresholds.
  6. Use undo for reversible actions. Prescribe instant execution paired with a 5 to 10 second undo toast. Avoid modal confirmation dialogs because habituation renders repeated confirmation prompts ineffective against slips.
  7. Prevent unrecoverable data loss. Flag any form or workflow that wipes user input on network drops, session expiries, or back navigation as an automatic blocker.
  8. Enforce CSS logical properties. Require logical properties such as margin-inline-start and padding-inline on shared components. Reject hardcoded physical properties like margin-left or padding-right.

Section 1. UI mechanics and technical compliance

Enforce technical standards, layout stability, and accessibility invariants:

  1. WCAG 2.2 AA accessibility. Verify W3C WAI-ARIA APG patterns, semantic HTML elements, roving tabindex, focus traps, and AccName 1.2 rules. Require native elements over generic containers. Read references/accessibility.md.
  2. Visible focus rings. Never accept stripped focus rings. Ensure high-contrast outlines appear on keyboard navigation while suppressing them cleanly on mouse click via :focus-visible.
  3. Concentric border radii. Ensure nested card shells, buttons, and inner badges maintain concentric curvature. Outer radius must always exceed inner radius by the exact padding and border offset.
  4. 8pt spatial grid. Enforce spacing on an 8pt or 4pt modular scale. Use discrete semantic surface tokens based on lightness steps instead of semi-transparent white overlays. Align columns using CSS Subgrid. Read references/layout-and-space.md.
  5. APCA and contrast compliance. Verify APCA and WCAG contrast thresholds across text and interactive controls. Implement DTCG 3-tier token structures, OKLCH scales, dark mode halation mitigation, and Windows High Contrast Mode border fallbacks. Read references/color-and-contrast.md.
  6. Container queries and layout stability. Use CSS Container Queries (@container) for modular components instead of binding solely to viewport media queries. Enforce CSS logical properties on shared components. Declare explicit dimensions and aspect ratios to prevent Cumulative Layout Shift.
  7. Component mechanics. Verify Popover API usage, CSS Anchor Positioning, @starting-style transitions, and relational :has() selectors. Read references/component-mechanics.md.
  8. Typography mechanics. Verify reading measure between 45 and 75 characters per line, fluid clamp formulas, unitless line heights, and tabular numbers for structured tables. Read references/typography.md.
  9. Animation physics checks. Restrict micro-interactions to GPU-composited properties transform and opacity. Reject animations on layout-triggering properties like width, height, margin, or padding. For spring physics, gesture tracking, choreographies, and frame-rate audits, activate the ui-motion skill.

Section 2. UX cognitive heuristics and journey ergonomics

Enforce human-centered psychology laws, task efficiency, and error resilience:

  1. Hick-Hyman Law. Reaction time increases logarithmically with the number and complexity of choices. Prune choices to 5 to 7 options per view, or group them logically with progressive disclosure. Read references/cognitive-laws.md.
  2. Nelson Cowan 4-chunk limit. Working memory holds at most 4 distinct chunks simultaneously. Never force users to retain more than 4 items across screen transitions, multi-step wizards, or dense navigation menus.
  3. Fitts's Law touch targets. Target acquisition time depends on distance and target size. Require interactive elements to measure at least 48x48px on touchscreen interfaces with at least 8px separation between targets. Read references/mobile-touch-ergonomics.md.
  4. Form validation timing. Delay field error display until onBlur, then live revalidate on onInput after initial blur. Keep submit buttons enabled, display clear inline error messages, and shift focus to the first invalid input on submission. Read references/forms-and-error-recovery.md.
  5. Undo for reversible actions. Prescribe instant execution paired with a 5 to 10 second undo toast notification for reversible actions. Avoid modal confirmation dialogs because habituation renders repeated confirmation prompts ineffective against slips.
  6. Mobile thumb zones. Place primary mobile actions and navigation triggers inside the Natural Thumb Zone along the screen bottom. Keep the Ow Zone at the top edges free of primary interactive triggers. Read references/mobile-touch-ergonomics.md.
  7. System status transparency. Provide clear feedback within 100ms for user actions, display subtle progress indicators for operations taking 400ms to 1000ms, and render skeleton loaders instead of blank spinners. Read references/system-status-and-states.md.
  8. Task flows and information architecture. Minimize steps to completion, enforce Krug scannability, apply progressive disclosure 80/20 rules, and minimize the Lostness Metric. Read references/task-flows-and-ia.md.
  9. Usability heuristics and principles. Check NN/g 10 heuristics, Norman signifiers and constraints, Shneiderman golden rules, and ISO 9241-110 dialogue standards. Read references/heuristics-and-principles.md.
  10. Interface copy clarity. Ensure action verbs are clear, avoid developer jargon, and provide concrete recovery steps in error copy. Read references/copy-writing.md.

Ordered evaluation sequence

Execute the review through four structured steps:

Step 1. Scope resolution and reconnaissance

Establish review boundaries, blast radius, and user intent before inspecting code:

  1. Resolve review boundaries and filter non-UI assets using references/scope-and-diff.md.
  2. Expand blast radius by inspecting direct parent layouts (1 hop) and shared token consumers (2 hops).
  3. Inspect project configuration files including package manifests, Tailwind configs, and token dictionaries to identify active styling engines and icon systems.
  4. Check for existing design guidelines (AGENTS.md, DESIGN.md, Storybook rules).
  5. Identify primary user goals, baseline mental models, and optimal step counts.
  6. Record excluded files, third-party redirects, and out-of-scope backend processes.
  7. Write or load references/operate-brief.md for operate and read routes before inspecting code.

Completion criterion. Target surfaces, active styling engine, project guidelines, user goals, optimal step counts, and operate brief confirmed.

Step 2. UI mechanics audit

Audit target surfaces against technical and structural standards:

  1. Accessibility. Check WCAG 2.2 AA compliance, semantic markup, keyboard navigation, and AccName rules using references/accessibility.md.
  2. Layout and space. Check 8pt grid scales, concentric radii, subgrid alignment, and container queries using references/layout-and-space.md.
  3. Typography. Check measure (45 to 75 characters), fluid clamp formulas, unitless line heights, and tabular numbers using references/typography.md.
  4. Color and contrast. Check APCA contrast ratios, 3-tier tokens, OKLCH scales, and forced colors using references/color-and-contrast.md.
  5. Component mechanics. Check Popover API, CSS Anchor Positioning, and @starting-style transitions using references/component-mechanics.md.
  6. Motion mechanics. Check composited properties and delegate spring physics to ui-motion.

Completion criterion. Target surfaces evaluated against all technical mechanics with zero skipped categories.

Step 3. UX cognitive and interaction audit

Audit user journeys against cognitive and behavioral standards:

  1. Usability heuristics. Verify NN/g 10 heuristics, Norman signifiers, and ISO 9241-110 dialogue principles using references/heuristics-and-principles.md.
  2. Cognitive laws. Check Hick-Hyman choice pruning, Nelson Cowan 4-chunk limits, Doherty 400ms threshold, and Peak-End rule using references/cognitive-laws.md.
  3. Task flows and information architecture. Check progressive disclosure, step counts, and Lostness Metric using references/task-flows-and-ia.md.
  4. Forms and error recovery. Check single-column layouts, inline validation timing, persistent draft storage, and undo toasts using references/forms-and-error-recovery.md.
  5. System status and states. Check six-state completeness, skeleton loaders, and optimistic updates using references/system-status-and-states.md.
  6. Mobile touch ergonomics. Check 48px touch targets, bottom thumb zones, and swipe gestures using references/mobile-touch-ergonomics.md.

Completion criterion. Target workflows evaluated across cognitive laws, task flows, forms, and touch ergonomics with zero skipped domains.

Step 4. Consolidation and reporting

Consolidate findings into a structured report using references/report-format.md:

  1. Classify every finding into Blocker, Warning, or Nit severity tiers.
  2. Present findings using Before, After, and Why comparative tables.
  3. Provide exact file paths, line numbers, and concrete code diffs or microcopy fixes in project idiom.
  4. Attribute each defect to specific standards, WCAG success criteria, cognitive laws, or usability heuristics.
  5. Project impact on usability metrics including Task Completion Rate (TCR), Lostness, and Drop-off rate.
  6. Cap findings at a maximum of 12 items to prevent cognitive fatigue and prioritize blockers.
  7. Assign an Approve or Changes Requested final verdict.
  8. Run finish review in fresh context with request, answers, artifact path, screenshots, direction contract, and hook findings as inputs. Inherit no transcript.

Completion criterion. Formatted report with categorized findings, Before-After-Why evidence tables, concrete resolutions, final verdict, and isolated review inputs.

Five-dimension design critique scorecard

When evaluating visual polish and aesthetics beyond mechanical accessibility, apply these five dimensions:

  1. Philosophy alignment. Verify whether every visual detail traces directly back to declared design tokens rather than generic AI defaults.
  2. Visual hierarchy. Conduct a squint test. Verify that the primary focal point catches the eye first and that the display title to body text ratio exceeds 2.5 to 1.
  3. Craft quality. Enforce spatial rhythm, border-radius harmony, and constraint discipline by limiting palettes to at most 4 deliberate colors and at most 2 font families.
  4. Functionality and deletion test. Apply the deletion test. If a decorative element or card badge is removed and the interface becomes clearer, delete the element.
  5. Originality and cliché elimination. Eliminate formulaic AI templates, unprompted purple gradients, left-border accent stripes, and arbitrary floating shapes.

Never ship checklist

Audit implementations against this checklist. Every item represents an automatic rejection:

NeverInstead
outline: none or outline: 0 without a visible replacement:focus-visible with minimum 2px solid outline and 2px offset
Nested child container sharing identical border-radius with parentConcentric radius formula R_inner = max(0, R_outer - (padding + border))
Pure black #000000 applied to large dark mode canvas surfacesDark neutral tones with OKLCH lightness 0.16 to 0.20 such as #121212
Stacking white opacity overlays for dark mode surface elevationsDiscrete semantic container tokens with stepped lightness values
Hover styling triggered unconditionally on touchscreen devicesWrap hover rules in @media (hover: hover) and (pointer: fine)
Line height declared with fixed units such as line-height: 24pxUnitless proportional values such as line-height: 1.5;
Unbounded body paragraphs exceeding 80 characters per lineRestrict reading width using max-inline-size: 65ch;
Numbers in tables or counters rendered with proportional glyphsEnforce uniform width via font-variant-numeric: tabular-nums;
Animating layout properties like width, height, margin, or topAnimate GPU-accelerated transform and opacity exclusively
Responsive components bound solely to global window media queriesUse CSS Container Queries (@container) for modular portability
Images rendered without explicit dimensions or aspect ratiosDeclare explicit dimensions and aspect-ratio to prevent CLS
Generic clickable div elements representing buttons or linksSemantic native <button type="button"> or <a href="...">
Placeholder attribute used as form field labelPersistent <label> element above the input field
Border and text turning red while the user is actively typingDelay error validation until onBlur, then live revalidate on onInput
Disabled submit button with no explanationKeep submit button enabled, show inline errors and jump to first invalid field
Multi-column form layouts with zig-zagging fieldsSingle-column linear vertical layout
Modal confirmation popup on reversible actionsInstant execution with 5 to 10 second undo toast notification
Destructive permanent deletion executed via single regular buttonDeliberate friction requiring resource name confirmation or typed prompt
Form fields wiped clean on server validation error or network timeoutPreserve all input state locally and flag only the invalid field
Silent operation with no feedback during 400ms to 1000ms latencySubtle inline spinner or button loading state
Generic error message stating "An error occurred"Specific error copy explaining what failed and concrete recovery steps
Entire screen replaced by a single spinner on initial page loadSkeleton screens matching destination layout structure
Primary mobile action placed in top corners (Ow Zone)Sticky bottom button or bottom bar in Natural Thumb Zone
Rejection of telephone or card numbers because of spaces or hyphensPermit flexible input formatting per Postel's Law and sanitize on submission
Wall of 10+ inputs presented in a single unstructured pageMulti-step flow chunked into 3 to 4 logical fields per step with progress
Empty state rendered as blank white spaceInstructive empty state explaining zero data and primary action to populate
Dropdown containing 15+ unranked options without searchSearchable combobox or progressive selection hierarchy

Quick verification checklist

Run this check before completing any review:

CheckPassing condition
Scope boundariesTarget surfaces, user goals, and active styling engines confirmed
Focus integrityEvery interactive element displays a high-contrast focus ring
Spatial hierarchySpacing follows 8pt modular scale, nested radii are concentric
Contrast complianceText satisfies APCA and WCAG thresholds, non-text controls exceed 3:1
Layout stabilityCumulative Layout Shift mitigated via aspect ratios and reserved space
Cognitive limitsChoices pruned to 5 to 7 items, chunking conforms to 4-item limit
Error resilienceForm recovery, draft persistence, and undo mechanisms verified
Touch ergonomicsInteractive elements meet 48px targets and reside in natural thumb zones
Report structureMax 12 findings formatted with Before-After-Why tables and concrete diffs

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.