form-design
Installation
SKILL.md
Form Design
Produces forms that ask only for what is needed, are quick to complete on any device, work with autofill and assistive technology, and recover gracefully from errors.
When to use
- "Build a sign-up / checkout / contact / settings form."
- "Users drop off on this form" or "our validation is annoying."
- Adding validation, error messages, or a multi-step wizard.
- Auditing a form for accessibility or mobile usability.
Workflow
- List every field and justify it: who uses the data, and when. Remove or defer anything not needed now; decide which fields are required.
- Order fields the way users think about them (name before address, card number before expiry) and group related ones under headings or
fieldsetandlegend. - Choose the control per field: text input, radio buttons for 2–5 options so all are visible, select or searchable combobox for longer lists, checkbox for independent choices, textarea for free text.
- Set
type,inputmode, andautocompletefor every input. - Define each field's validation rule, when it runs, and the exact error message.
- If the form is long or covers distinct topics, split it into steps with progress and a final review.
- Build with native elements and the accessible error pattern below; preserve input on every failure path.
- Test with keyboard only, a screen reader, browser autofill, a password manager, and a 375px viewport.