agentleFS
parhambparhamb/design-skills/ux-forms/SKILL.md

ux-forms

Skill21 starsChanged 5 months agoMITView on GitHub

Form design UX: input types, inline validation, keyboard behavior, autofill, password fields, auto-formatting, and multi-step flows. Use when designing or reviewing any form, sign-up flow, checkout, or data-entry screen.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Labels over placeholders: Use visible labels above each field, not placeholder text inside it.

    line 53
  2. Distinctive:

    Error recovery: If a form fails submission, scroll to the first error, keep all previously entered data intact, and highlight the specific …

    line 60
  3. Distinctive:

    When applying this checklist to a screen, flow, or codebase:

    line 68

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Forms UX

Forms are where intent turns into action. Every extra field, every ambiguous label, and every delayed error message costs conversions and frustrates users.


Checklist

ItemGuidance
Minimal data collectionOnly ask for what is needed right now. Defer optional fields to the profile.
Show / hide passwordEye icon on the right side of the password field. Hidden by default.
Multiple input methodsOffer voice or camera scan for fields where it genuinely helps (notes, documents).
Input suggestionsAutocomplete from history or a curated list to speed up data entry.
No repeated inputPre-fill known data from the existing account. Never ask twice (WCAG 2.2 requires this — 3.3.7 Redundant Entry).
Password strength indicator4-level strength meter shown as the user types. Requirements listed inline.
Auto-format inputFormat phone numbers, card numbers, and dates automatically as the user types.
Inline validationValidate on blur (when the user leaves the field), not on final submit.
Correct keyboard typeEmail field opens email keyboard. Number field opens number pad. URL field opens URL keyboard.
Enter key labelReturn key shows "Next" to advance focus, or "Done" / "Search" when it submits.
Autofill supportUses platform content type hints so password managers and autofill work correctly.
Form progress indicatorMulti-step forms show a step indicator ("Step 2 of 4") and allow going back.

Keyboard Type Reference

InputiOS contentTypeAndroid inputType
EmailemailAddresstextEmailAddress
PhonetelephoneNumberphone
One-time codeoneTimeCode—
Full namenametextPersonName
PasswordpasswordtextPassword
New passwordnewPassword—

Patterns

Progressive disclosure: Split long forms into logical steps. No more than 5 to 6 fields per screen. Users abandon forms that look long before they start.

Labels over placeholders: Use visible labels above each field, not placeholder text inside it. Placeholder text disappears on focus and creates accessibility issues.

Smart defaults: Pre-select the most common option. Pre-fill country from IP. Pre-select the current year for expiry fields. Reduce the number of decisions the user has to make.

Error recovery: If a form fails submission, scroll to the first error, keep all previously entered data intact, and highlight the specific field that needs attention. Never wipe the form clean on error.


How to Review

When applying this checklist to a screen, flow, or codebase:

  1. Go through every checklist item and mark it Pass, Fail, or N/A — never skip items silently.
  2. Cite specific evidence for each finding: the screen, component, file, or line it applies to.
  3. Tag each failure with a severity: Blocker (breaks the experience), Major (hurts usability), or Minor (polish).
  4. End the review with the top 3 recommended fixes, ranked by user impact.

Related Skills

  • ux-error-handling — validation error patterns and error message formula
  • ux-content — label and placeholder writing
  • ux-accessibility — accessible authentication and redundant entry rules

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.