Skip to content
Skills Library
Design & UX · Review & audit

fe-a11y-forms

/fe-a11y-forms

Builds and reviews accessible forms in any stack (HTML, React, Vue, Svelte, Angular, Astro) to WCAG 2.2 AA as a target - labels, autocomplete, required fields, grouping, error messages, focus after submit, sign-in without memory tests. Use when writing or changing a form, an input component, validation or a sign-in or checkout flow, or when asked "is this form accessible".

Licence
MIT
Last repository change
11.11.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
2
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 11.11.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Builds and reviews accessible forms in any stack (HTML, React, Vue, Svelte, Angular, Astro) to WCAG 2.2 AA as a target - labels, autocomplete, required fields, grouping, error messages, focus after submit, sign-in without memory tests. Use when writing or changing a form, an input component, validation or a sign-in or checkout flow, or when asked "is this form accessible".

Triggers from the description

is this form accessible
Original author description

Builds and reviews accessible forms in any stack (HTML, React, Vue, Svelte, Angular, Astro) to WCAG 2.2 AA as a target - labels, autocomplete, required fields, grouping, error messages, focus after submit, sign-in without memory tests. Use when writing or changing a form, an input component, validation or a sign-in or checkout flow, or when asked "is this form accessible".

How it works

  1. Rules
  2. Do this
  3. Check
  4. References
Original SKILL.md headings · 34 lines, 401 words
SKILL.md preview
---
name: fe-a11y-forms
description: Builds and reviews accessible forms in any stack (HTML, React, Vue, Svelte, Angular, Astro) to WCAG 2.2 AA as a target - labels, autocomplete, required fields, grouping, error messages, focus after submit, sign-in without memory tests. Use when writing or changing a form, an input component, validation or a sign-in or checkout flow, or when asked "is this form accessible".
license: MIT
compatibility: Any agent that reads Agent Skills. The audit command needs Node.js 20 or newer; the page audit needs a local Chrome.
metadata:
  title: Accessible forms
  area: accessibility
  lane: C
  requires: web
  globs: "**/*.html **/*.jsx **/*.tsx **/*.vue **/*.svelte **/*.astro **/*.component.html"
  rules: "a11y/input-label a11y/autocomplete-valid a11y/form-errors html/button-type"
  version: 0.1.0
---

# Accessible forms

Read `.frontend-skills/profile.json` and `.frontend-skills/lessons.md` first when they exist; a confirmed lesson (for example the project's own form components) wins over this skill.

## Rules

- Every field has a programmatic label: `<label for>` + `id`, a wrapping `<label>`, or `aria-labelledby`; a placeholder is never the label (a11y/input-label).
- Personal-data fields carry a standard `autocomplete` token (`email`, `given-name`, `tel`, `postal-code`, `new-password`) (a11y/autocomplete-valid).
- Errors are text next to the field, linked with `aria-describedby`, marked with `aria-invalid="true"`, and say how to fix the input (a11y/form-errors).
- Required fields say so in the label text or with a visible marker explained once, plus the `required` attribute.
- Related choices (radio groups, an address block) sit in `<fieldset>` with a `<legend>`.
- The submit control is `<button type="submit">`; other buttons in a form are `type="button"` (html/button-type).
- Never block paste into password or code fields, never ask for the same data twice in one flow, never use a puzzle or memory test as the only way to sign in (WCAG 3.3.7, 3.3.8).
- Never rely on colour alone for an error or a required marker.

## Do this

1. Find the project's form primitives (an `Input`, `Field` or `FormField` component, a form library) and fix them once; a lesson in `lessons.md` may name them.
2. For each field: visible label, `id`, correct `type` and `inputmode`, `autocomplete`, `required` where needed, a hint linked with `aria-describedby`.
3. Validate on submit (and on blur only after a first submit). On error: keep the values, set `aria-invalid`, render the messages, move focus to the first invalid field or to an error summary with links.
4. Announce asynchronous results (saved, sent) in a polite live region that exists before the message is put in it.
5. Keep targets at least 24 by 24 CSS pixels and the focus indicator visible on every control.

## Check

- `npx github:dawidolko/frontend-skills audit --changed` finds unlabeled fields, invalid autocomplete values and buttons without a type.
- `audit --url <page>` adds axe-core results for the rendered form (labels from components included).
- By hand: fill and submit the form with the keyboard only, then with a screen reader (VoiceOver, NVDA): every field announces its label, state and error.

## References

- [references/forms.md](references/forms.md): the field anatomy, error and summary patterns, live regions, framework form libraries and the WCAG 2.2 criteria per step. Read it when building a whole form or a field component.
Files in this package (2)
  • SKILL.md 3 KB
  • references/forms.md 4 KB

Versions

The database has no other skills named fe-a11y-forms.

Database snapshot: 13.11.2026 · package version 0299a66a59c6 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90wcag-forms-and-error-prevention
    Fix WCAG 2.1/2.2 input purpose/autocomplete, form labels, visible error text, correction suggestions, safe submission confirmation and help. Use for accessible form building and error recovery.
  • 90accessible-forms
    Reviews and repairs accessible form labeling, instructions, autocomplete, grouping, validation, error summaries, announcements, redundant entry, and authentication. Use for form, field, label, validation, error-message, autocomplete, or login accessibility work.
  • 100form-cro
    Audits and rebuilds web forms so that more people finish them: lead, contact, demo-request, quote, checkout and survey forms. Produces a field-by-field triage, standards-based markup (labels, autocomplete tokens, error handling per the HTML spec and WCAG 2.2), funnel tracking…
  • 90fe-forms
    Builds and reviews HTML forms that work natively - the right input types and inputmode, autocomplete tokens, constraint validation and custom messages, select placeholders, file inputs, and submission through the form's submit event. Accessibility of forms is in fe-a11y-forms.…
  • 90frontend-forms
    Design, implement, or review accessible forms with reliable validation and clear recovery. Use for sign-up, checkout, search, settings, multi-step forms, and error-state improvements.
  • 90forms
    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.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.