Skip to content
Skills Library
Design & UX · Building & coding

accessible-forms

/accessible-forms

Build forms with associated labels, identified errors, clear instructions, and autocomplete attributes. Use when creating or auditing forms for accessibility.

Repository
AI-SKILLS ↗
Licence
MIT
Last repository change
05.09.2026

Assessment and security

90/ 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.
Content25 / 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
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 05.09.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

Build forms with associated labels, identified errors, clear instructions, and autocomplete attributes. Use when creating or auditing forms for accessibility.

Original author description

Build forms with associated labels, identified errors, clear instructions, and autocomplete attributes. Use when creating or auditing forms for accessibility.

How it works

  1. Method
  2. Boundaries
Original SKILL.md headings · 78 lines, 528 words
SKILL.md preview
---
name: accessible-forms
description: Build forms with associated labels, identified errors, clear instructions, and autocomplete attributes. Use when creating or auditing forms for accessibility.
---

# Accessible forms

Forms are where users accomplish tasks (sign up, buy, submit), and
inaccessible forms block those tasks entirely for some users. The
requirements are concrete: every field labeled and associated, every
error identified in text, instructions available, and the browser's
autofill enabled.

## Method

1. **Associate a real label with every field.** A
   `<label for="email">` tied to the input's id (or wrapping
   it): so clicking the label focuses the field and the
   screen reader announces the label when the field gets
   focus (see aria-usage: prefer real labels to aria-label).
   Placeholder text is not a label (it disappears on input
   and often fails contrast: see color-contrast); a field
   labeled only by placeholder is unlabeled the moment the
   user types.
2. **Identify errors in text, associated with the field.**
   When validation fails: describe the error in text ("Email
   must include an @"), associate it with the field
   (`aria-describedby` pointing to the error message), and
   move focus to (or announce: see screen-reader-testing's
   live regions) the first error. Color alone (a red border)
   does not tell a screen-reader or color-blind user what
   is wrong (see color-contrast's don't-rely-on-color):
   the error must be text they can perceive.
3. **Provide instructions and requirements up front.**
   Format requirements, which fields are required, and
   constraints stated before the user submits and fails:
   "Password must be at least 12 characters" shown with the
   field, not only in the error after. Required fields
   marked in text and with `aria-required` (not by color or
   an asterisk alone: see the multi-channel rule). Users
   should know the rules before hitting them.
4. **Enable autocomplete and the right input types.**
   `autocomplete` attributes (`autocomplete="email"`,
   `"name"`, `"one-time-code"`) let browsers and password
   managers autofill: a huge help for users with motor or
   cognitive disabilities, and everyone else (see the
   autofill discipline in mobile-input-ux). Correct input
   `type` (email, tel, number) triggers the right keyboard
   and validation. These reduce the typing burden that
   forms impose.
5. **Group related fields and controls.** Radio buttons and
   checkboxes for one question grouped in a `<fieldset>`
   with a `<legend>` (so the screen reader announces the
   group's question with each option); related sections
   with headings. Ungrouped radio options announce
   individually with no context ("yes, radio button" with
   no question) leaving users lost.
6. **Keep the submit path clear and forgiving.** The submit
   button reachable and labeled with its action ("Create
   account", not "Submit"); errors on submit do not clear
   entered data (see form-handling); success confirmed in a
   way screen readers announce. A form that clears itself on
   error or gives no submission feedback fails users
   exactly at the moment of completing their task.

## Boundaries

- Accessible forms combine several techniques (labels,
  errors, keyboard, focus: see keyboard-navigation,
  focus-management, screen-reader-testing); a form is
  accessible only when all hold, and the whole task can be
  completed with keyboard and screen reader.
- Complex custom form controls (date pickers, comboboxes,
  multi-selects) need the full ARIA widget patterns (see
  aria-usage) and are easy to get wrong; prefer native
  inputs or well-tested accessible libraries over custom
  ones where possible.
- Client-side validation UX (timing, inline vs on-submit:
  see form-handling) and accessibility overlap; the
  accessibility requirements (text errors, association,
  focus) apply regardless of the validation timing chosen.

Versions

RepositoryScoreLicence
This page · Amey-Thakur/AI-SKILLS90MIT
smukh/a11y-agent-skills90MIT

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

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100fe-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…
  • 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.
  • 95forms
    Load this skill whenever the project contains forms, inputs, selects, checkboxes, radio buttons, text areas, or any validation flow. Under no circumstances create a form without visible labels, error identification, and keyboard accessibility. Absolutely always associate every…
  • 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.
  • 100forms-pro
    Build excellent web forms: UX patterns, validation, accessibility, multi-step flows, and file uploads. Use for any form beyond trivial inputs.
  • 90accessible-combobox-and-autocomplete
    Reviews editable comboboxes and suggestion popups, including async search, active options, selection, and dismissal. Use for autocomplete or custom select accessibility; ordinary native selects need no custom keyboard model.

Feedback and reports

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