audit-ui-states
Skill9 starsChanged 43 days agoMITView on GitHub
Read-only audit of unhappy-path UI states — empty, loading, error, offline, zero-results, permission, overflow — then a fix plan. Use when "check empty/error states", "audit loading states", or "what happens when this fails".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- kensaurus/skillsword for word, first seen Oct 1, 2026
Other versions1 project uses a version of this.
Word for word · 1
- kensaurus/skills★ 9100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository165 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/approved-plan-execution.mdcCursor rule
- .cursor/rules/skill-workflows.mdcCursor rule
- .cursor/rules/verification-before-completion.mdcCursor rule
- llms.txtllms.txt
- audit-accessibilitySkill
- audit-agent-speedSkill
- audit-analyticsSkill
- audit-auth-flowsSkill
- audit-backend-architectureSkill
- audit-bundle-sizeSkill
- audit-cicdSkill
- audit-codemod-safetySkill
- audit-code-qualitySkill
- audit-code-reviewSkill
- audit-db-schemaSkill
- audit-doctrineSkill
- audit-env-paritySkill
- audit-fe-apiSkill
- audit-gate-logicSkill
- audit-i18nSkill
- audit-infra-costSkill
- audit-langfuse-llmSkill
- audit-llm-securitySkill
- audit-monetization-iapSkill
- audit-payment-systemSkill
- audit-performanceSkill
- audit-realworldSkill
- audit-registry-listingSkill
- audit-resilienceSkill
- audit-responsiveSkill
- audit-securitySkill
- audit-skill-conflictsSkill
- audit-uiux-design-systemSkill
- audit-ux-journeysSkill
- audit-uxSkill
- backend-db-performanceSkill
- backend-error-handlingSkill
- backend-observabilitySkill
- backend-patternsSkill
- backend-realtimeSkill
- burndown-fullSkill
- complete-everythingSkill
- data-pipelineSkill
- data-visualizationSkill
- debug-errorSkill
- debug-fe-be-integrationSkill
- debug-sentry-monitorSkill
- deploy-npmSkill
- deploy-verifySkill
- design-apiSkill
- design-canvasSkill
- design-emailSkill
- design-frontendSkill
- design-generative-artSkill
- design-mobile-firstSkill
- design-motionSkill
- design-prdSkill
- design-systemSkill
- design-themeSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Read-only. Map every meaningful screen against the states it can be in.
- Very specific: line 38
Do not fire for "desktop looks like a phone" → audit-responsive.
- Very specific: line 39
Do not fire for "this button does nothing" → plan-stub-checker.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
audit-ui-states — Unhappy-path state matrix
Degree of freedom: MIXED — Phases 0–1 [HIGH freedom]; Phase 2 live
force [LOW freedom — run exactly]. Read protocol-browser-anti-stall
before any browser work.
Read-only. Map every meaningful screen against the states it can be in. Flag blank boxes, infinite spinners, raw error objects, and broken overflow.
Happy-path-only UI is the signature of generated code: it looks finished in the demo and falls apart the first time a list is empty or a request fails.
Present the matrix first. Implement only on approval.
This skill vs neighbors
| Skill | Owns |
| audit-ui-states (this) | Per-screen empty/loading/error/offline/overflow matrix |
plan-stub-checker | Dead buttons, fake data, unwired handlers |
audit-resilience | Backend timeouts/retries — not the front-end empty state |
audit-responsive | Breakpoint layout / linearized desktop |
audit-ux | Heuristics and microcopy voice |
enhance-web-forms | Form field/error/success patterns |
test-visual-regression | Lock the states this skill designs |
Do not fire for "desktop looks like a phone" → audit-responsive.
Do not fire for "this button does nothing" → plan-stub-checker.
How to reason
- Observe — what renders when the list is empty / the request fails / the network drops?
- Interpret — is that a designed state or a void / spinner / raw error?
- Classify — present / missing / broken
- Severity — blank or raw-error on a core screen = major+
Worked example
Observe: Orders page:
if (!data) return null. No empty component. Forced empty account → white content area. Interpret: first-run users see a void, not an onboarding empty state. Classify: missing empty (zero data, valid). Severity: major — core loop looks broken with no data. Finding: Orders | empty | major | void | designed empty + CTA
Phase 0 — Enumerate screens and data dependencies [HIGH freedom]
List screens/views/major components. For each: data fetch, mutation, permission, network, variable-length content. A static page has few states; a data-driven list has all of them.
Detect stack (framework, data library, design system) and reuse existing empty/error primitives — do not invent a second pattern.
Phase 1 — The state matrix [HIGH freedom]
For every data-driven screen, mark present / missing / broken:
Loading — Shape-matched skeleton (good) vs centered spinner / layout flash. Handles slow (3s+), not just pending.
Empty (zero data, valid) — First-run / no-content-yet. Designed empty state with next action — not a void. This is an onboarding surface.
Zero-results — Search/filter returned nothing. Distinct from empty. Offers clear-filters.
Error — Human message + retry. Not a raw object, white screen, or swallow.
Voice matches design-frontend / audit-ux ("Couldn't load your orders.
Retry." — not "Error: undefined").
Offline — Detected and communicated. Queued mutations survive reconnect (PWA / Capacitor especially).
Partial / permission — Logged-out, free vs paid, role-gated: deliberate state, not a crash on null fields.
Overflow — Long names, huge numbers, missing images. Layout holds or
truncates. Long lists virtualize. Note overlap with audit-responsive;
don't duplicate breakpoint work.
Optimistic rollback — Failed mutation rolls the UI back; does not leave a lie.
Phase 2 — Live verification [LOW freedom — force each state]
Force each state; "exists in code" that throws is broken:
PW='npx --yes @playwright/cli@latest'
$PW -s=ui-states navigate "$APP"
# Empty: fresh account. Error: block the request. Offline: toggle network.
# Overflow: long string / large list. Zero-results: nonsense search.Save evidence under .playwright-mcp/.
Definition of Done
- Every data-driven screen has applicable states enumerated
- Loading / empty / zero-results / error / offline / permission / overflow scored
- States forced live, not only read in code
- Fix plan in PR-sized chunks; nothing patched without approval
Self-critique before reporting [LOW freedom — do not skip]
- Forced, not inferred — "exists in code" that throws is broken
- Empty ≠ zero-results — do not collapse those two states
- Right owner — dead button →
plan-stub-checker; linearized desktop →audit-responsive - Evidence — screenshot under
.playwright-mcp/ - Nothing patched until the matrix is approved
Output format
- State matrix — screen × state → present / missing / broken
- Findings — screen | state | severity | renders now | should
- Live log — state forced | result | screenshot
- Fix plan — empty/error first, then loading/offline
Related
plan-stub-checker— unwired controlsaudit-resilience— server timeoutsaudit-responsive— breakpoint layoutaudit-ux/design-frontend— copy voiceenhance-web-forms— form statestest-visual-regression— lock the matrixtest-playwright— functional coverage of recoveries
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.

