/kenji:audit-ui-statesfrom kenji skills
Read-only audit of unhappy-path UI states (empty, loading, error, offline, zero-results, permission, overflow) with a fix plan. Use when checking empty/error states or auditing loading states.
Ships in kenji skills. 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.
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.
| 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.
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
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.
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.
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/.
plan-stub-checker; linearized desktop → audit-responsive.playwright-mcp/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 recoveriesWhat SKILL.md sets; muted values are Claude Code's defaults
highThree short reads, in order
ui-states, error-handling, loading-states, empty-states, ux-audit
npx claudepluginhub kensaurus/skills --plugin kenji162 skills in this plugin
/audit-accessibilityWCAG 2.2 AA audit via playwright-cli: axe-core, keyboard, contrast, target size, focus, ARIA. Use when "audit accessibility", "check a11y", "WCAG audit", "check keyboard nav", or "test screen reader".
/audit-agent-speedMeasure and fix a slow coding-agent setup: status line, hooks, instruction bloat, effort, worktree pile-up, antivirus and indexer scans. Use when "Claude is slow" or "CPU is pinned". App speed → audit-performance.
/audit-analyticsRead-only audit of product-analytics events (PostHog, Amplitude, Mixpanel, GA4): taxonomy, funnels, consent-gated firing, dead or duplicate events. Use when "audit our analytics", "are we tracking the right events", or "funnel instrumentation".
Other plugins' skills for the same job