ui-audit-guide
Skill4 starsChanged 15 days agoMITView on GitHub
Audit a running application for UI/UX issues using Playwright MCP. Navigates through user flows, screenshots each state, and reports issues categorized by severity. Includes a separate visual direction evaluation pass.
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- analyze-deps-guideSkill
- design-planSkill
- docs-writingSkill
- frontend-designSkill
- implement-guideSkill
- implement-test-guideSkill
- modern-web-guidanceSkill
- pr-fix-guideSkill
- pr-review-follow-upSkill
- pr-review-guideSkill
- shadcn-adapt-guideSkill
- shadcnSkill
- analyze-deps-guideSkill
- design-planSkill
- docs-writingSkill
- frontend-designSkill
- implement-guideSkill
- implement-test-guideSkill
- pr-fix-guideSkill
- pr-review-follow-upSkill
- pr-review-guideSkill
- shadcn-adapt-guideSkill
- shadcnSkill
- ui-audit-guideSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 11 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
After building a new feature or page
- Distinctive: line 16
Before creating a PR to catch UX regressions
- Distinctive: line 17
When reviewing someone else's UI implementation
- Distinctive: line 18
When the user asks to "test the UI" or "check the design"
- Distinctive: line 22
Always load and audit against:
- Distinctive: line 37
Read the input to determine:
- Distinctive: line 43
If flows are not specified, explore the page to identify them:
- Very specific: line 52
Before testing, read available design references: the .claude/rules/ directory (especially shadcn-divergences.md), and design tokens in …
- Very specific: line 65
Use browser_resize to configure the viewport:
- Very specific: line 87
Use browser_navigate to go to the URL
- Very specific: line 88
Use browser_click or browser_evaluate to set up prerequisites (e.g., select an item in a previous step)
- Distinctive: line 122
Run this once after all flows are complete — not per-flow.
- Distinctive: line 126
Before evaluating, write out explicitly:
- Distinctive: line 161
After answering, assign a score 1–5:
- Distinctive: line 175
When multiple screens are evaluated, add one pairwise observation:
- Very specific: line 270
Use
browser_wait_for: after navigation or state changes — wait for expected text/elements to appear before taking the next snapshot.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UI Audit Guide
Purpose
Audit a running web application for UI/UX issues by navigating through user flows with Playwright MCP. Evaluate each screen against the project's design guidelines and report issues categorized by severity. Then run a separate visual direction pass on key screenshots.
When to Use
- After building a new feature or page
- Before creating a PR to catch UX regressions
- When reviewing someone else's UI implementation
- When the user asks to "test the UI" or "check the design"
Base Rules
Always load and audit against:
| Rule | Purpose |
| logging-proportionality.md | Report findings tersely — one dense line per issue, no incremental narration |
Prerequisites
- Playwright MCP server available — provides the
mcp__playwright__*browser tools this skill uses (runs headless by default). Note: this repo's.mcp.jsonshipschrome-devtools, not Playwright, so configure the Playwright MCP at user or project scope if it isn't already available. - The application must be running at a known URL
Process
Step 1: Understand the Scope
Read the input to determine:
- URL to audit
- Viewport(s) to test (mobile, desktop, or both — default: mobile)
- Flows to test (provided by user or inferred from the page)
If flows are not specified, explore the page to identify them:
- Navigate to the URL
- Take a snapshot to understand the page structure
- Identify the key user flows (form submissions, navigation, state changes)
- Return the proposed flows to the coordinator for user approval
Step 2: Load Design Context
Before testing, read available design references: the .claude/rules/ directory (especially shadcn-divergences.md), and design tokens in packages/core/tokens/. Skip any that don't apply.
Extract and hold onto:
- Who the user is (non-technical? expert? mobile-first?)
- What the product is for
- The aesthetic north star (one-sentence summary of what "good" feels like for this product)
- Anti-patterns to watch for
This design intent will anchor the visual direction evaluation in Step 5.
Step 3: Set Up Viewport
Use browser_resize to configure the viewport:
Mobile (default):
browser_resize width: 390, height: 844Desktop:
browser_resize width: 1440, height: 900Navigate to the target URL with browser_navigate to ensure clean state.
Step 4: Execute Each Flow (Functional Audit)
For each flow in the approved list:
4a. Navigate to the starting state
- Use
browser_navigateto go to the URL - Use
browser_clickorbrowser_evaluateto set up prerequisites (e.g., select an item in a previous step)
4b. Take baseline screenshot + snapshot
browser_snapshot— accessibility tree (a11y roles, labels, disabled state). This is the primary interaction method — elements are referenced by their a11y tree ref.browser_take_screenshot— visual state. Save each key screenshot mentally — you will use these in Step 5.
4c. Perform the interaction
browser_clickon elements by ref from the snapshotbrowser_typefor text inputbrowser_press_keyfor keyboard interactionsbrowser_select_optionfor native select elementsbrowser_evaluatefor programmatic checks when a11y tree isn't enough
4d. Capture the result
browser_take_screenshot— visual state after interactionbrowser_snapshot— check ARIA states changed (expanded, disabled, selected)
4e. Functional evaluation
For each state captured, check for functional and semantic issues only — visual direction is evaluated separately in Step 5.
| Check | What to Look For |
| States | Loading skeleton, empty state with CTA, error with recovery action |
| Accessibility | Labels on interactive elements, focus indicators, disabled state clarity |
| Content | Plain language labels, descriptive CTAs, inline validation errors |
| Interactions | Disabled fields have clear reason, cascading behavior correct, touch targets adequate |
| Layout | Obvious overflow, wrapping, viewport fit at current breakpoint |
Step 5: Visual Direction Evaluation
Run this once after all flows are complete — not per-flow. This is a holistic evaluation using the key screenshots collected during Step 4. It is a separate pass with a different goal: not "is it functional?" but "does it feel designed?"
5a. State the design intent
Before evaluating, write out explicitly:
Product: {what it is}
User: {who uses it}
North star: {what "good" feels like for this product and audience}This is not a checklist item — it anchors your entire visual evaluation. If you don't know the intent, the evaluation has no baseline.
5b. Select key screens
From the screenshots taken during Step 4, pick the primary resting state of each distinct screen — not every interaction state. Typically 2–4 screenshots per audit. Prefer screens that represent the core product experience.
5c. Evaluate each screen with decomposed questions
For each screenshot, answer these five questions before assigning any score. Write a one-sentence answer to each.
Q1 — Squint test Ignoring all text, where does visual weight concentrate? Is there one clear focal point, or is mass evenly distributed?
Q2 — Type scale How many distinct visible type sizes are present? Is there a clear large → medium → small hierarchy, or do sizes cluster together without differentiation?
Q3 — Spacing rhythm Does vertical spacing between content sections feel consistent and intentional? Or arbitrary — some elements cramped, others loosely spaced?
Q4 — Primary action clarity Can you identify the primary action within 2 seconds? Is everything else clearly visually subordinate to it?
Q5 — Intentionality Do visual choices appear deliberate — consistent patterns, aligned decisions across similar elements? Or assembled — random-feeling variations in weight, spacing, or treatment between similar things?
5d. Score each dimension
After answering, assign a score 1–5:
| Score | Meaning |
| 5 | Excellent — clearly intentional, confident |
| 4 | Good — minor inconsistency, not user-facing |
| 3 | Acceptable — noticeable, worth noting |
| 2 | Weak — degrades experience, needs attention |
| 1 | Problematic — visual direction fails here |
Any dimension scoring ≤ 2: flag as "recommend human design review" — not as an implementable code issue. These are design direction calls, not bugs.
5e. Cross-screen comparison
When multiple screens are evaluated, add one pairwise observation:
"Compared to [other screen], does this screen feel visually consistent in hierarchy, density, and rhythm? If not, which is the outlier?"
Step 6: Compile Issues
Group all functional issues found across all flows into three severity categories:
Critical — Blocks or confuses users, data loss risk, accessibility failure
- Buttons/controls that don't work
- States that look interactive but aren't (or vice versa)
- Missing loading/error/empty states
- Accessibility failures (no labels, broken keyboard nav)
- Misleading content (wrong placeholder, contradictory state)
Moderate — Degrades experience but has workarounds
- Layout issues (not full-width on mobile, poor stacking)
- Unclear disabled states
- Missing step labels or context
- Validation messages that are too technical
Minor — Polish, no functional impact
- Missing undo/confirmation for destructive actions
- Spacing/alignment nitpicks visible in code
- Could use better empty state text
Step 7: Note Positives
Note what works well — patterns worth keeping and replicating.
Output Format
Return this structure:
## UI/UX Audit — {page name or URL}
**Viewport:** {390x844 mobile | 1440x900 desktop | both}
**Flows tested:** {count}
### Functional Issues
#### Critical ({count})
| # | Issue | Where | Details |
| --- | ------------- | ------------------------- | ------------------------------------------------- |
| 1 | {short title} | {component / screen area} | {what's wrong, why it matters, what it should be} |
#### Moderate ({count})
| # | Issue | Where | Details |
| --- | ------------- | ------------------------- | ------------------------------------------------- |
| 1 | {short title} | {component / screen area} | {what's wrong, why it matters, what it should be} |
#### Minor ({count})
| # | Issue | Where | Details |
| --- | ------------- | ------------------------- | ------------------------------------------------- |
| 1 | {short title} | {component / screen area} | {what's wrong, why it matters, what it should be} |
### Visual Direction
**Design intent:** {one sentence: product / user / north star}
| Dimension | Score | Observation |
| ------------------------- | ----- | -------------- |
| Squint test (focal point) | {1–5} | {one sentence} |
| Type scale (hierarchy) | {1–5} | {one sentence} |
| Spacing rhythm | {1–5} | {one sentence} |
| Primary action clarity | {1–5} | {one sentence} |
| Intentionality | {1–5} | {one sentence} |
**Overall:** {1–2 sentences on the overall visual direction impression}
{If any score ≤ 2: "Human design review recommended for: {dimensions}"}
### What Works Well
- {positive observation}
- {positive observation}
### Flows Tested
| # | Flow | Result |
| --- | ----------- | ------------------- |
| 1 | {flow name} | {Pass / {n} issues} |Tips for Reliable Playwright MCP Interaction
- Always
browser_snapshotbefore clicking — element refs change after navigation or re-renders. The snapshot is your source of truth for element references. - Playwright uses the a11y tree for interactions —
browser_clicktargets elements by their accessibility role/label, making it reliable with Radix/shadcn components without workarounds. - Use
browser_wait_forafter navigation or state changes — wait for expected text/elements to appear before taking the next snapshot. - Check both visual (screenshot) and semantic (snapshot) — a button may look right but have wrong ARIA attributes, or vice versa.
- Use
browser_resizeto test responsive layouts at different breakpoints — no need to reload. - After form interactions, take a new
browser_snapshotto check for validation messages and ARIA state changes. - Visual direction scores ≤ 2 are design calls, not code bugs — do not create implementation tasks for them. Flag for human review.
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
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.

