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.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessible-interfaceSkill
- color-and-contrastSkill
- design-contextSkill
- design-system-auditSkill
- interaction-and-motionSkill
- interface-critiqueSkill
- layout-and-spacingSkill
- loading-empty-error-statesSkill
- responsive-designSkill
- typographySkill
- visual-hierarchySkill
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
- Distinctive: line 12
Do not use placeholders as labels, erase input after failure, validate before the user can reasonably respond, or hide why information is …
- Distinctive: line 19
Remove unnecessary fields.
- Distinctive: line 21
Use persistent labels, appropriate native controls, input types, autocomplete, sensible defaults, and optional/required language.
- Distinctive: line 23
Put instructions before they are needed.
- Distinctive: line 30
Test keyboard and assistive technology, zoom, long labels, localization, autofill, password managers, copy/paste, and realistic invalid …
≈ “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.
Files
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
- Confirm the outcome, required data, source of that data, consequence of errors, and whether the form should exist at all.
- Remove unnecessary fields. Group remaining inputs by user meaning and order them according to the task, not the data model.
- Use persistent labels, appropriate native controls, input types, autocomplete, sensible defaults, and optional/required language.
- Put instructions before they are needed. Explain format or constraints in plain language and keep help associated with the field.
- 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.
- Design submitting, success, duplicate submission, network failure, timeout, and resume behavior. Confirm destructive or high-consequence actions.
- 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.
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
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.

