14 design principles plus auto-review for building web UIs that AI agents can navigate reliably — semantic HTML, stable test IDs, no hidden interactions.
A Claude Code skill enforcing 14 design principles that make UIs usable by both humans and automation/agents: semantic HTML, ARIA, stable data-testid / data-ai-action locators, native form controls, pagination over infinite scroll, explicit loading states, URL deep links, clear errors, dual UI+API entry points. Auto-applies whenever Claude builds or reviews a UI component.
Build a new form with native controls and proper ARIA
👤 Frontend devs building high-stakes forms (checkout, onboarding)⏱ ~45 minintermediate
Wann einsetzen: A new form where you can't afford to block screen readers or agents.
Ablauf
Scaffold from principles
Build a billing address form using ai-friendly-web-design. Native input types, labels, aria-describedby for errors, explicit loading on submit.✓ Kopiert
→ Form with HTML native types (email, tel), no custom combobox hacks
Add deep-linking + URL state
Make the form step reflect in the URL so agents can open step 2 directly.✓ Kopiert
→ step param in URL, state restored on load
Ergebnis: A form both assistive tech and agents navigate cleanly.
Replace infinite scroll with predictable pagination
👤 Product engineers where agents fail to get past page 1⏱ ~30 minintermediate
Wann einsetzen: Your list page uses infinite scroll and agents never reach items below the fold.
Ablauf
Refactor to paginated route
Replace the infinite-scroll list with URL-based pagination (?page=N). Keep scroll behavior feel.✓ Kopiert
→ Addressable pages, prev/next with ARIA
Ergebnis: A list an agent can walk deterministically.
Fallstricke
Breaking SEO by removing the old scroll entirely — Keep scroll load within each page — just make the page boundary explicit