forms
Installation
SKILL.md
React Form Patterns
Standard stack: React Hook Form + Zod. Keep schema and UI behavior aligned.
Use This Skill When
- Building new forms with validation.
- Refactoring unstable form state logic.
- Implementing multi-step, dynamic, or async-validated forms.
Core Contract
- Keep schema as source of truth (Zod).
- Use typed form values inferred from schema.
- Validate at client and server boundaries.
- Separate field rendering from submit side effects.
- Keep form loading/error states explicit.