/quality-gates:ux-auditfrom quality-gates
Audits user-facing flows, forms, and interactive components for usability and accessibility. Walks through tasks step-by-step, checks keyboard navigation, screen reader support, error handling, and mobile usability.
Ships in quality-gates. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Do the task the way the user would and record where it breaks, slows or confuses. This skill audits how the interface works; design-audit covers how it looks.
Browser. If command -v obscura finds it, use it first; it is a faster headless browser. Run obscura --allow-private-network serve and drive the flow through CDP on port 9222. For a one-off page read, use obscura --allow-private-network fetch <url> --dump text. Clicks, typing, Tab and other key presses, selects, checkboxes, viewport sizes and dark mode all work over CDP. One gap: getComputedStyle does not pick up :hover styles, although screenshots do show them. Check hover states with a screenshot or in Chrome. If obscura is missing or fails, use the Chrome browser tool.
| Area | Ask |
|---|---|
| Flow | How many steps, and is each needed? Any dead end? Do back, refresh and a shared link keep the user's place? |
| Feedback | Does every action respond at once? Is there a loading sign for waits over a second, and a clear success message? |
| States | Does each screen handle empty, loading, error, partial, no permission, offline, and one, many and very long items? |
| Errors | Does the message say what happened and how to fix it, next to the field, with the user's input kept? |
| Forms | Visible labels? Right input type and autocomplete? Validation on blur or submit, not on each key? Sensible defaults? |
| Destructive actions | Undo, or a confirmation that names what will be lost? |
| Wayfinding | Does the user know where they are and what happens next? Page title and focus updated on route change? |
| Copy | Do buttons say what they do ("Send invoice", not "Submit")? One word for one thing throughout? |
| Keyboard | Is everything reachable in a sensible order? Focus always visible? Escape closes overlays, and focus returns? No trap? |
| Screen reader | Real <button>, <a>, <label> and headings in order? Names on icon buttons? Alt text? Async changes announced? |
| Sight and motor | Usable at 200% zoom? Targets at least 24px? Nothing shown by colour alone? |
| Mobile | Main action within thumb reach? Does the keyboard cover the field or the submit button? |
| Perceived speed | Does content jump as it loads? Is the first useful thing shown quickly? |
Run axe or Lighthouse if the repo or the browser tool has it. They find about a third of accessibility problems; the keyboard pass finds the rest.
Step <n>: <what the user is doing> [SEVERITY]
Happens: <what the user meets>
Evidence: <screenshot or file:line>
Source: <usability heuristic or WCAG criterion number>
Fix: <the change>
## Verdict: SHIP | FIX FIRST
User and task: <one line> | Evidence: used the app | code only
Passes done: mouse | keyboard | screen-reader tree | mobile width
### Blockers
### Major
### Minor
### Not checked
opinion and filed under Minor.Key decisions in this skill: a Blocker or Major finding that depends on judgement rather than a named source, a fix that changes a flow's steps or navigation, and a trade-off between accessibility and the brief.
Before acting on one, get a second opinion: call the Agent tool with model: "opus" (subagent_type Plan, read-only). Give it the decision, each option in one line, the evidence (file:line, measurements, the diff) and the constraints. Ask for a pick, the main risk of that pick, and what would change its mind. Do not send secrets or .env contents.
Advisor: <decision> -> <pick> (<agreed | overruled because ...>).Spend the strong models on judgment and the cheap ones on volume. When this skill spawns subagents with the Agent tool, set model by role:
| Role | Model | Use for |
|---|---|---|
| Think | fable (Fable 5.2), or opus when limits are tight | Plan, decompose, pick an approach. One call, read-only (subagent_type: "Plan"). |
| Execute | sonnet (Sonnet 5.5) | Write and edit code, run checks, produce the deliverable. |
| Review | opus (Opus 5.5) | Check the finished work before reporting: correctness, security, money, data loss. |
| Swarm | haiku (Haiku 5.5) | Many small parallel jobs: search, read, extract, classify, per-file scans. |
mcp__ccd_session_mgmt__get_usage (load it with ToolSearch if deferred). Use fable only when every window has room: 5-hour limit under 70% used, "Weekly · all models" under 80%, and "Weekly · Fable" (if listed) under 80%. Otherwise use opus. If the tool is missing, or its status is unavailable or not_applicable (API key, Bedrock, Vertex), use opus. Say the pick in one line: Think: <model> (5h <n>%, weekly <n>%, Fable <n>%).Lessons from earlier runs live in two files: ~/.claude/skill-lessons/ux-audit.md (any repo) and .claude/skill-lessons/ux-audit.md at the repo root (this repo only).
- <YYYY-MM-DD>: <do or avoid X> because <Y>. (seen: 1). When a line already says the same thing, raise its seen count and date instead of adding one. Facts about this repo go in the repo file, everything else in the user file. Keep each file under 30 lines by merging or dropping stale lessons.seen: 3: if the ashish-claude-skills source repo is open, propose the edit to plugins/quality-gates/skills/ux-audit/SKILL.md as a diff and wait for a yes, then delete the lesson once it lands; otherwise say Lesson ready to promote: <line> in the report.Learned: <the line written | nothing>.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ashishyd/ashish-claude-skills --plugin quality-gates10 skills in this plugin
/claude-md-syncUse after changing business logic, domain rules, data models, APIs, architecture, commands, config or dependencies, before calling the work done, to keep CLAUDE.md true to the code. Also when the user says "update CLAUDE.md", "sync the docs" or "is CLAUDE.md still right"./design-auditUse when a UI component, page or stylesheet has just been built or changed and its visual quality needs checking, when the user asks whether a screen looks right, consistent or polished, or before shipping front-end work./login-and-accessUse when writing, changing or reviewing sign-in, sign-up, logout, password reset, magic links, OAuth or SSO, MFA, sessions, cookies, JWTs, refresh tokens, roles, permissions, admin areas, multi-tenant data or any route that must know who the caller is and what they may see./personal-dataUse when writing, changing or reviewing code that stores, reads, sends, logs, exports or deletes information about people (users, customers, clients, patients, children, employees), including new database columns or tables, migrations, forms, analytics or tracking events, error reporting, third-party APIs, AI prompts, data exports, account deletion, consent, cookie banners, retention jobs, or questions about GDPR, CCPA, LGPD, DPDP or other privacy laws./playwright-testsUse when writing, generating or fixing Playwright end-to-end tests, covering a user journey in a real browser, choosing locators, handling login state or test data, or when an e2e test is flaky, slow or times out./security-code-auditUse when writing, changing or reviewing code that handles user input, forms, auth, passwords, sessions, tokens, API keys, secrets, env vars, permissions, database queries, file uploads, webhooks, payments or a new API route, or when the user asks for a security review of a diff, a file or a feature.Other plugins' skills for the same job