Forms

From aladicf/better-web-ui · View interactive version

Forms is an AI agent skill from the GitHub repository aladicf/better-web-ui. Design, structure, or improve form interfaces for clarity, completion rates, and user confidence. Use when the user asks to build a form, redesign a form flow, improve form conversion, add multi-step forms, fix form UX, or structure field layouts and validation.

How to use this skill

Skill file

Build forms that users complete without confusion, anxiety, or abandonment. The goal is not to collect every possible field; it is to remove every unnecessary obstacle between the user and their goal.

Consult the form validation patterns reference for validation timing, error placement, multi-field dependencies, async validation, and recovery design.

Consult the live validation UX reference for blur-vs-real-time timing, reward-early/punish-late behavior, and copy-paste-friendly validation.

Consult the error recovery reference for what happens after validation or submission fails.

Consult the disabled buttons UX reference when deciding whether to block submit buttons or keep them enabled with error explanation.

Consult the component anatomy reference for button, input, checkbox, radio, toggle, dropdown, and textarea anatomy guidance.

MANDATORY PREPARATION

Users start this workflow with /forms. Once this skill is active, load $frontend-design — it contains design principles, anti-patterns, and the Context Gathering Protocol. Follow that protocol before proceeding — if no design context exists yet, you MUST load $setup first. Additionally gather: what goal the user is trying to achieve, which fields are truly required, and what causes abandonment in the current flow.

Assess Form Needs

Understand the form's purpose and context:

  1. User goal: What does the user get by completing this form? The clearer the payoff, the higher the completion rate.
  2. Field necessity: Every field you add drops completion rates. Challenge each field: is it required now, or can it be collected later?
  3. Context of use: Is the user rushed, distracted, on mobile, or in a stressful situation? Stressful contexts need simpler forms.
  4. Failure points: Where do users currently drop off? Long forms, unclear labels, and unexpected validation are common culprits.

Form Structure

Field order

Label design

Input design

Multi-step forms

Break long forms into steps when:

Step design:

Validation Strategy

Timing

Error design

Success states

Mobile Form UX

Accessibility

Anti-Patterns

Verify Form Quality

Before shipping:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.