agentsclimarketplace

Forms validation

Skill sukirman1901/frontend-expert/skills/forms-validation

Accessible forms, field/form errors, submit pending, wizards, progressive disclosure. Use when building or fixing forms, login, settings, checkout, filters, "validasi", "form error", or multi-step flows.From its SKILL.md

Install
npx -y skills add sukirman1901/frontend-expert --skill forms-validation

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 10 stars10 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.5 KB, as published. Nobody here has run it

Forms & Validation

Overview

Forms must be keyboard-accessible, show clear errors, and never lose user input on soft failures.

When to use

  • Any form, wizard, filter bar with submit
  • Auth, settings, checkout, create/edit dialogs

When to skip

  • Read-only detail with no inputs
  • Pure button that is not a form submit

MUST (ship)

RuleDetail
LabelsEvery control has a visible label or aria-label; htmlFor/id associated
ErrorsText + association (aria-describedby / equivalent) — not border-only
SubmitPending/disabled while in flight; values kept on 4xx/5xx
FocusOn submit failure, move focus to first invalid field
MobilePrimary submit width: 100% below 768; inputs font-size ≥ 16px
No LoremReal hint/error copy
SelectsProduct filters / status pickers: prefer custom select (see ui-components) — not bare native OS chrome

Workflow

  1. Labels — visible label (or aria-label); associate with htmlFor / id
  2. Validation — prefer inline field errors after submit or on blur; don’t block typing with aggressive live errors
  3. Submit — disable or show pending on the primary button; keep values on error
  4. Errors — field-level + optional form-level summary with links to fields
  5. Progressive disclosure — hide advanced fields until needed
  6. Mobile — full-width primary submit; adequate tap targets (responsive-ui)
  7. Async submit — pair with data-fetching for retry/toast; never wipe the form on soft fail

Agent boundaries

  • May decide: validation timing (submit vs blur), wizard step count, inline vs summary errors
  • Must not: invent purple/error hex off-token; skip labels for “clean UI”; use alert() for validation

Checklist

  • Labels + focus order correct
  • Error text linked to fields (aria-describedby / equivalent)
  • Pending + error + success submit states
  • First invalid field focused after failed submit
  • No Lorem placeholder as the only copy
  • Full-width primary + ≥16px inputs at 320px
  • Works at 320px width (no horizontal overflow)

Depth

references/forms-validation.md. A11y: accessibility. Responsive: responsive-ui.

Keep looking

Skills are one crate of 627,801. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.