agentleFS
KyaniteLabsKyaniteLabs/tastecheck/skills/form-ux/SKILL.md

form-ux

Skill12 starsChanged 11 days agoMITView on GitHub

Form UX and accessibility pass. Use for forms, inputs, checkout, signup/login, validation, labels, autocomplete, mobile keyboards, inline errors, required fields, disabled submits, and field-level accessibility.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 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.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start with outcome, risk, and data authority, not an inherited input array.

    line 16
  2. Very specific:

    Put specific adjacent “what + fix” errors behind aria-invalid/aria-describedby.

    line 37
  3. Distinctive:

    Never silently disable submit.

    line 39
  4. Very specific:

    Use [what is wrong] + [how to fix it] (+ example), plainly and without blame.

    line 43
  5. Very specific:

    Use references/patterns.md for markup/wiring.

    line 66
  6. Distinctive:

    Ask only necessary fields.

    line 70
  7. Distinctive:

    No silent disabled submit.

    line 87
  8. Very specific:

    Stop / handoff: Stop when validation rules or data ownership are unknown.

    line 101

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

Form UX

A form is a completion path: reduce effort, prevent predictable errors, and make failure truthful, repairable, and accessible.

Model task before styling

Start with outcome, risk, and data authority, not an inherited input array. Remove, defer, or explain each field through this contract:

Field contractWhat to decide
User valueWhat completing this field unlocks now, in the user's words
Data ruleRequired/optional condition, source of truth, and whether the rule is client- or server-owned
Input affordanceLabel, type, inputmode, autocomplete, format help, and a safe example
Validation momentWhat can be checked while editing, on blur, on submit, or only after a server request
RecoveryExact message, preserved value, focus destination, and next available action
SensitivityWhether the field is personal, financial, irreversible, or must never be persisted locally

Unknown rule/ownership stays unresolved; never invent validation; group by task, not database/API shape.

Non-negotiables

  • Persistent associated label; visible required/optional state; correct type, inputmode, autocomplete, and one-column task flow (short related pairs excepted).
  • Validate on submit. Validate on blur only when the value is complete enough to judge; after an error, re-check while the person repairs it. Keep server truth server-owned.
  • Put specific adjacent “what + fix” errors behind aria-invalid/aria-describedby; announce and focus the first error on failed submit.
  • Never silently disable submit; retain visible focus and explain what is missing.

Error-message formula

Use [what is wrong] + [how to fix it] (+ example), plainly and without blame. Tie it visually/programmatically to the field; long-form summaries link to inline errors.

Validation is a conversation

Give feedback at the earliest truthful moment; browser checks never impersonate server truth. On submit distinguish field errors (focus/retain), conflict (correct branch), transient failure (preserved draft/safe retry), authorization (boundary/route), and irreversible payment (duplicate lock plus receipt/status). Pending work has accessible label/status, rejects duplicates, and restores an explained route on failure. Ignore stale responses so older validation cannot overwrite current value.

Worked contract

FieldRule ownerWhen to checkRepair path
Emailserver owns account availability; client owns basic shapesubmit; blur after a complete address; re-check while repairing“Enter an address like name@example.com.” Preserve the value; announce an account conflict only after the server responds.

The row separates local affordance from server authority. Apply it to cross-field rules, invitation codes, inventory, pricing, and payment status.

Quick-start

Use references/patterns.md for markup/wiring; retain this field contract.

Reduce effort

Ask only necessary fields; defer optional data. Use safe defaults/autofill, nonblocking formatting, password reveal/paste, inline help, preserved input, and saved progress.

Reference files

  • references/patterns.md — types, validation, mobile/autofill, and a11y wiring.
  • references/decision-records.md — novel-case ADR rules.

Evidence

Establish task, fields, rule owner, success/risk/interruption before styling. Record each field/state, validation owner, and recovery; n/a needs subject absence, not unknown rule.

Self-check

  1. Field contract, labels, required state, types/autofill, and keyboard/screen-reader wiring complete?
  2. Submit/blur/repair timing, stale async responses, specific adjacent errors, first-error focus, and retained input work?
  3. No silent disabled submit; pending, duplicate, conflict, authorization, and irreversible outcomes differ?

How to deliver

Deliver one field/state matrix with source rule, affordance, owner/timing, recovery, pending behavior, evidence, and risk; hand adjacent concerns to their skills.

<!-- contract:v1:start -->

Contract (generated)

Canonical detail: contract.json.

  • Route: A form has completion, validation, recovery, autofill, or interruption problems.; avoid: The issue is only a control's visual interaction state.
  • Exclude: Do not hide errors or validate only on blur without a recovery path. (+1 in contract.json)
  • Stop / handoff: Stop when validation rules or data ownership are unknown. (+1 in contract.json); receives [component-states, design-system-interview, deslop-ui, humanize-copy, responsive-layout, spacing-system, tasteroll] -> sends [a11y-pass, i18n-ready, tastecheck-pass, cognitive-a11y]
  • Output: completion-oriented form flow and evidence table
  • Evidence: table_with_evidence with status, reason, remediation, evidence, provenance.
<!-- contract:v1:end -->

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.