agentleFS
RealTaskRealTask/MAX-DESIGN/skills/forms-ux/SKILL.md

forms-ux

Skill4 starsChanged 23 days agoMITView on GitHub

Design accessible, resilient forms and multi-step input flows with sensible validation, clear errors, preserved data, and safe submission behavior.

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    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:

    Use for registration, settings, search forms, onboarding, checkout, profile editing, payments, surveys, filters, or any flow where people …

    line 10
  2. Distinctive:

    Use correct input types, autocomplete tokens, and input modes when relevant.

    line 40
  3. Distinctive:

    Test a valid path, every important validation failure, server rejection, repeated submission, and recovery.

    line 44
  4. Distinctive:

    Only necessary information is requested, with purpose explained when needed.

    line 48

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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 and input UX

When to use

Use for registration, settings, search forms, onboarding, checkout, profile editing, payments, surveys, filters, or any flow where people enter, change, or confirm data.

Workflow

1. Clarify the task and data

Identify the user goal, required fields, optional fields, data sensitivity, validation rules, consequences of submission, and whether the task can be saved or resumed. Ask only for information needed at this step. Explain why unusually sensitive or unexpected data is required.

2. Choose a safe structure

Group related fields by user mental model. Use a single page when the task is short and easy to review. Split longer tasks into meaningful steps only when this reduces cognitive load, and show progress and a way to review or return. Do not use a wizard merely to increase clicks.

3. Use appropriate controls

Prefer native labels, inputs, selects, checkboxes, radios, and buttons. Choose a control that matches the answer type and expected number of choices. Keep labels persistent; placeholders are examples or hints, not replacements for labels. Mark required and optional fields clearly and provide input examples in a format users can follow.

4. Validate with useful timing

Validate format and business rules at a time that helps recovery. Use client-side checks for quick feedback but repeat authoritative validation on the server. Avoid presenting errors before a user has had a reasonable chance to answer. Distinguish field errors from form-level or service errors.

5. Make errors recoverable

Associate each error with its field and provide a plain-language correction. On failed submission, preserve safe, already-entered values; move focus or provide an error summary when useful; and make errors available to assistive technology. Never imply data was saved when submission failed.

6. Handle submission states

Design idle, invalid, submitting, success, retry, offline, and server-error states. Prevent duplicate submissions when appropriate, but do not leave the button permanently disabled after a recoverable failure. Explain whether changes were saved, are pending, or were discarded. Add confirmation for destructive or high-consequence actions in proportion to risk.

7. Support autofill and varied devices

Use correct input types, autocomplete tokens, and input modes when relevant. Make focus order logical, target sizes comfortable, keyboard behavior native, and errors understandable at zoom. Test long text, pasted values, password managers, mobile keyboards, slow networks, and interrupted submissions.

8. Verify the whole flow

Test a valid path, every important validation failure, server rejection, repeated submission, and recovery. Review the form with keyboard navigation and automated accessibility checks where available. A passing linter does not prove a usable form.

Quality gates

  • Only necessary information is requested, with purpose explained when needed.
  • Labels, instructions, required/optional markers, and validation are programmatically associated.
  • Errors explain the correction and preserve safe user input.
  • Submission states accurately reflect real system status.
  • Keyboard, autofill, paste, zoom, and mobile input are considered.
  • Server-side validation remains authoritative.
  • Risky or irreversible actions receive proportionate safeguards.

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.