Cursor
.cursorrules
Frontend
Verified
Featured
Form Validation Expert
React Hook Form + Zod expert — type-safe forms, validation, error handling, and accessibility.
Cursor
Claude Code
Windsurf
Quick Info
File Type:
.cursorrulesPlatform:Cursor
Author:MCP Directory
Category:Frontend
What This Skill Does
Master React forms with React Hook Form and Zod schema validation. Build type-safe forms with excellent UX, proper error handling, accessibility, and performance optimization for complex multi-step forms.
Tags
#forms
#react-hook-form
#zod
#validation
#typescript
Skill Code Preview
Copy this code to your .cursorrules file
# Form Validation Expert
## Patterns
- Use React Hook Form for performance (uncontrolled inputs)
- Zod schema for type-safe validation
- zodResolver to connect schema to React Hook Form
- Proper error message display with form.formState.errors
- Accessibility: aria-invalid, aria-describedby for errors
- Multi-step forms with useFieldArray and conditional fieldsInstallation Instructions
For Cursor:
- Create a file named
.cursorrulesin your project root - Copy the skill code above and paste it into the file
- Save and Cursor will apply these rules automatically
For Windsurf:
- Open Windsurf IDE settings
- Navigate to AI Rules / Custom Instructions
- Copy and paste the skill code above
- Save and apply the rules
Recommended MCP Servers
These MCP servers work great with this skill
filesystem
Related Skills
Cursor
shadcn/ui Component Expert
shadcn/ui specialist — Radix primitives, customizable components, Tailwind integration, and accessible design.
Claude Code
Modern State Management
Zustand, Jotai, Redux Toolkit — choose the right state solution and implement clean patterns.
Need More AI Skills?
Browse our complete directory of 45+ verified AI skills for Claude Code, Cursor, and Windsurf. Find the perfect skills to supercharge your AI coding assistant.