41 performance optimization rules for React Hook Form across form configuration, field subscription, validation, and component integration.
Works with
Organized into 8 priority-ranked categories (form configuration and field subscription marked CRITICAL) with prefixed rule identifiers for automated refactoring and code generation
Covers useForm setup, watch/useWatch patterns, useController isolation, validation resolver caching, useFieldArray best practices, and formState subscriptions
Includes
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionreact-hook-formExecute the skills CLI command in your project's root directory to begin installation:
Fetches react-hook-form from pproenca/dot-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate react-hook-form. Access via /react-hook-form in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
13
total installs
13
this week
95
GitHub stars
0
upvotes
Run in your terminal
13
installs
13
this week
95
stars
Comprehensive performance optimization guide for React Hook Form applications. Contains 41 rules across 8 categories, prioritized by impact to guide form development, automated refactoring, and code generation.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Form Configuration | CRITICAL | formcfg- |
| 2 | Field Subscription | CRITICAL | sub- |
| 3 | Controlled Components | HIGH | ctrl- |
| 4 | Validation Patterns | HIGH | valid- |
| 5 | Field Arrays | MEDIUM-HIGH | array- |
| 6 | State Management | MEDIUM | formstate- |
| 7 | Integration Patterns | MEDIUM | integ- |
| 8 | Advanced Patterns | LOW | adv- |
formcfg-validation-mode - Use onSubmit mode for optimal performanceformcfg-revalidate-mode - Set reValidateMode to onBlur for post-submit performanceformcfg-default-values - Always provide defaultValues for form initializationformcfg-async-default-values - Use async defaultValues for server dataformcfg-should-unregister - Enable shouldUnregister for dynamic form memory efficiencyformcfg-useeffect-dependency - Avoid useForm return object in useEffect dependenciessub-usewatch-over-watch - Use useWatch instead of watch for isolated re-renderssub-watch-specific-fields - Watch specific fields instead of entire formsub-usewatch-with-getvalues - Combine useWatch with getValues for timing safetysub-deep-subscription - Subscribe deep in component tree where data is neededsub-avoid-watch-in-render - Avoid calling watch() in render for one-time readssub-usewatch-default-value - Provide defaultValue to useWatch for initial rendersub-useformcontext-sparingly - Use useFormContext sparingly for deep nestingctrl-usecontroller-isolation - Use useController for re-render isolationctrl-avoid-double-registration - Avoid double registration with useControllerctrl-controller-field-props - Wire Controller field props correctly for UI librariesctrl-single-usecontroller-per-component - Use single useController per componentctrl-local-state-combination - Combine local state with useController for UI-only statevalid-resolver-caching - Define schema outside component for resolver cachingvalid-dynamic-schema-factory - Use schema factory for dynamic validationvalid-error-message-strategy - Access errors via optional chaining or lodash getvalid-inline-vs-resolver - Prefer resolver over inline validation for complex rulesvalid-delay-error - Use delayError to debounce rapid error displayvalid-native-validation - Consider native validation for simple formsarray-use-field-id-as-key - Use field.id as key in useFieldArray mapsarray-complete-default-objects - Provide complete default objects for field array operationsarray-separate-crud-operations - Separate sequential field array operationsarray-unique-fieldarray-per-name - Use single useFieldArray instance per field namearray-virtualization-formprovider - Use FormProvider for virtualized field arraysformstate-destructure-formstate - Destructure formState properties before renderformstate-useformstate-isolation - Use useFormState for isolated state subscriptionsformstate-getfieldstate-for-single-field - Use getFieldState for single field state accessformstate-subscribe-to-specific-fields - Subscribe to specific field names in useFormStateformstate-avoid-isvalid-with-onsubmit - Avoid isValid with onSubmit mode for button stateinteg-shadcn-form-import - Verify shadcn Form component import sourceinteg-shadcn-select-wiring - Wire shadcn Select with onValueChange instead of spreadinteg-mui-controller-pattern - Use Controller for Material-UI componentsinteg-value-transform - Transform values at Controller level for type coercionadv-formprovider-memo - Wrap FormProvider children with React.memoadv-devtools-performance - Disable DevTools in production and during performance testingadv-testing-wrapper - Create test wrapper with QueryClient and AuthProviderRead individual reference files for detailed explanations and code examples:
references/{prefix}-{slug}.mdzod skillreact-19 skillfrontend-design skillFor the complete guide with all rules expanded: AGENTS.md
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
pproenca/dot-skills
pproenca/dot-skills
asyrafhussin/agent-skills
anthropics/claude-code
mblode/agent-skills
github/awesome-copilot
Solid pick for teams standardizing on skills: react-hook-form is focused, and the summary matches what you get after install.
react-hook-form reduced setup friction for our internal harness; good balance of opinion and flexibility.
Keeps context tight: react-hook-form is the kind of skill you can hand to a new teammate without a long onboarding doc.
We added react-hook-form from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Solid pick for teams standardizing on skills: react-hook-form is focused, and the summary matches what you get after install.
react-hook-form is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
We added react-hook-form from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
I recommend react-hook-form for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
react-hook-form has been reliable in day-to-day use. Documentation quality is above average for community skills.
Keeps context tight: react-hook-form is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 51