Agent skill

Building Forms Skill: Validation and Accessible Inputs

The building forms skill gives an AI coding agent a data type to component method, validation timing rules and WCAG 2.1 patterns for contact, checkout and wizard forms.

Install
git clone https://github.com/ancoleman/ai-design-components.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the building forms skill?

The building forms skill is in ancoleman/ai-design-components. It guides an AI coding agent through choosing the input for each data type, validating on blur with progressive enhancement, writing clear error messages and meeting WCAG 2.1 AA. It offers React with React Hook Form and Zod, and Python with Pydantic and FastAPI.

It is the building-forms skill in ancoleman/ai-design-components, a library of 76 skills across 10 domains according to its README. The description covers contact forms, registration flows, checkout, surveys and settings pages.

The skill describes 50 plus input types, validation strategies, WCAG 2.1 accessibility patterns, multi-step wizards and decision trees from data type to component. Detailed guides sit in a references folder, with examples and JSON assets.

What changes in your agent's output

  • Input choice follows a rule: short text gets a text input, long text a textarea, two to seven options a radio group, and more than seven a select, with autocomplete past fifteen.
  • Validation defaults to on blur: no errors while the field is untouched or being typed in, then on change after the first error, with success shown right away.
  • Error messages state what is wrong, why it matters and how to fix it, in a helpful tone.
  • Fields get associated labels, aria-describedby for errors, aria-invalid on failure and focus moved to the first error on submit.

Stacks it covers

React is the primary stack, using React Hook Form for state, Zod for schemas and Radix UI or React Aria for primitives. Python uses Pydantic, FastAPI and WTForms. Rust and Go sections are marked as planned, not written.

Who the building forms skill is for

Best for

  • Developers adding sign-up, checkout, survey or settings forms who want consistent validation and accessibility.
  • Multi-step wizards, conditional fields and repeating sections, which the skill lists as complex patterns.
  • Pairing with the form design skill for layout and flow, or the WCAG accessibility audit skill for review.

Not for

  • Rust or Go projects, where the skill says implementations will be added later.
  • Teams wanting a visual form builder. This skill gives guidance and code examples, not a drag and drop tool.

Use it with UiChemy

Use it to specify the fields, validation and error states of a contact or checkout form before you design the page. Then build the page in WordPress with UiChemy. Click Get Started on uichemy.com. For tokens used by inputs, see the design tokens skill.