agentleFS
Above-the-Fold-StudioAbove-the-Fold-Studio/designmd-skills/skills/forms-and-validation/SKILL.md

forms-and-validation

Skill0 starsChanged 3 months agoMITView on GitHub

Design and review forms that reduce effort, prevent errors, explain recovery, and preserve user input.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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:

    Do not use placeholders as labels, erase input after failure, validate before the user can reasonably respond, or hide why information is …

    line 12
  2. Distinctive:

    Remove unnecessary fields.

    line 19
  3. Distinctive:

    Use persistent labels, appropriate native controls, input types, autocomplete, sensible defaults, and optional/required language.

    line 21
  4. Distinctive:

    Put instructions before they are needed.

    line 23
  5. Distinctive:

    Test keyboard and assistive technology, zoom, long labels, localization, autofill, password managers, copy/paste, and realistic invalid …

    line 30

≈ “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 and Validation

Design forms around the user's task, information, and recovery needs. Use this for field structure, labels, help, validation, multi-step flows, submission, and sensitive or high-consequence input.

Do not use placeholders as labels, erase input after failure, validate before the user can reasonably respond, or hide why information is requested.

Workflow

  1. Confirm the outcome, required data, source of that data, consequence of errors, and whether the form should exist at all.
  2. Remove unnecessary fields. Group remaining inputs by user meaning and order them according to the task, not the data model.
  3. Use persistent labels, appropriate native controls, input types, autocomplete, sensible defaults, and optional/required language.
  4. Put instructions before they are needed. Explain format or constraints in plain language and keep help associated with the field.
  5. Prevent errors where possible. Validate at a useful time, preserve entered data, identify every problem, move or announce focus deliberately, and give a specific recovery action.
  6. Design submitting, success, duplicate submission, network failure, timeout, and resume behavior. Confirm destructive or high-consequence actions.
  7. Test keyboard and assistive technology, zoom, long labels, localization, autofill, password managers, copy/paste, and realistic invalid data.

Output

Return the form structure, field and validation decisions, error and recovery copy, state behavior, access considerations, and the scenarios verified.

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.