/quality-gates:design-auditfrom quality-gates
Audits UI visual quality against a project's design system and general principles. Checks hierarchy, spacing, typography, color, alignment, consistency, states, responsiveness, dark mode, motion, media, and density.
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.
Judge the rendered screen, not the code. Measure against the project's own design system first and general principles second. This skill audits how the interface looks; ux-audit covers how it works.
Browser. If command -v obscura finds it, use it first; it is a faster headless browser. obscura --allow-private-network fetch <url> -s shot.png takes a screenshot, --dump html|text reads the page, and --eval '<js>' runs a script. For viewport sizes, dark mode and hover, run obscura --allow-private-network serve and drive it through CDP on port 9222. Its rendering can differ from Chromium, so recheck any visual defect in Chrome before you report it. If obscura is missing or fails, use the Chrome browser tool.
DESIGN.md, tokens, Tailwind theme, CSS variables, component library.| Area | Ask |
|---|---|
| Hierarchy | Is there one primary action per view? Blur the screenshot: does the eye land on the right thing first? |
| Spacing | Is every gap a value from the scale? Are related items closer together than unrelated ones? |
| Typography | Sizes and weights from the type scale? Body line length 45 to 75 characters? At most two families? |
| Colour | Tokens, not raw hex? Text contrast at least 4.5:1, large text and UI parts 3:1? Is anything shown by colour alone? |
| Alignment | Do edges line up on a shared grid? Any element off by a few pixels? |
| Consistency | Same component, same look everywhere? One radius set, one shadow set, one icon family and stroke? |
| States | Does every interactive element have hover, visible focus, active, disabled and loading? |
| Responsive | No horizontal scroll at 375? Touch targets at least 24px, 44px where it matters? Does content reflow instead of shrinking? |
| Dark mode | Any hard-coded colour, invisible border or glaring image? |
| Motion | Does each animation explain a change? 150 to 300ms? Honours prefers-reduced-motion? |
| Media | Images with fixed aspect ratio, so nothing jumps on load? |
| Density | Too cramped to scan, or so airy that one task needs scrolling? |
<screen or component> (<file>:<line>) [SEVERITY]
Seen: <what is there, with measured values: "gap 18px", "contrast 3.1:1">
Rule: <token, system rule or principle broken>
Fix: <the exact value or class to use>
## Verdict: SHIP | FIX FIRST
Checked: <pages, widths, themes, states> | Evidence: rendered | code only
Top three fixes: <one line each>
### Broken
### Inconsistent
### Polish
### Not checked
opinion and filed under Polish.Key decisions in this skill: a Blocker or Major finding that depends on judgement rather than a measured rule, a conflict between the design system and the brief, and any fix that changes layout structure or tokens.
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/design-audit.md (any repo) and .claude/skill-lessons/design-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/design-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
Three short reads, in order
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"./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.Other plugins' skills for the same job