form-validation
Installation
SKILL.md
Form Validation
Validation combines correctness and UX: when errors appear, how they are announced, and how client rules match the server.
When to Offer This Workflow
Trigger conditions:
- Long forms, wizards, or multi-step checkouts
- Accessibility audits flagging unclear errors
- Mismatch between client-side “valid” and API rejection
Initial offer:
Use six stages: (1) model & schema, (2) rule layers, (3) UX timing, (4) accessibility, (5) async & server parity, (6) testing). Confirm framework (React Hook Form, Formik, native, etc.).