agentleFS
sukirman1901sukirman1901/frontend-expert/skills/forms/SKILL.md

forms

Skill9 starsChanged 2 months agoMITView on GitHub

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.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use navigation.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • igorescodroSkill

    navigation

    Use when adding a new screen or modifying navigation in the Alkaa project — triggers on tasks like "add a new screen", "navigate to X", "add destination", "wire up navigation", or "create a navigation event". Also triggers when connecting UI actions to routes in NavGraph.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 1

    Distinctive

    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:

    Read-only detail with no inputs

    line 22

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “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 & 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 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)
  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.md. A11y: accessibility. Responsive: responsive.

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.