add-form-validation
CommunityShip type-safe forms with Zod + react-hook-form.
AuthorPeterCowling
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill enables end-to-end type-safe form validation in React apps by modeling the form data with Zod schemas and enforcing validation on both the client and server sides.
Core Features & Use Cases
- Schema-driven validation: define shared Zod schemas in schemas/<formName>.ts to ensure consistency between client and server.
- Form integration: use react-hook-form with zodResolver to provide real-time validation, errors, and accessible form controls.
- Server-side validation: validate inputs in server actions or endpoints before processing.
- Progressive enhancement: client-side validation enhances usability while server-side validation ensures security.
Quick Start
Create a schemas/<formName>.ts with a Zod schema, build a form component using useForm and zodResolver, and implement a server action to process validated data.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: add-form-validation Download link: https://github.com/PeterCowling/base-shop/archive/main.zip#add-form-validation Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.