skeletorflet/opencode-supreme-setup/react-hook-form
Claude Code and agent skill by skeletorflet/opencode-supreme-setup
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
React Hook Form — performant form management with uncontrolled inputs, validation, and field arrays.
Install
npx vskill@latest install skeletorflet/opencode-supreme-setup/react-hook-formSKILL.md
react-hook-form
useForm & Register
useForm({ defaultValues: { name: '' } })— initialize form context.register('name', { required: true })— spread into<input>for uncontrolled binding.register('email', { pattern: /^\S+@\S+$/ })— inline validation rules.register('age', { valueAsNumber: true })— automatic type coercion.
Validation
- Native rules:
required,minLength,maxLength,min,max,pattern,validate. validate: (val) => val.length > 3 || 'too short'— custom sync/async validator.- Schema validation:
zodResolver(schema)/yupResolver(schema)from@hookform/resolvers. shouldUseNativeValidation: true— browser-native validation messages.
Errors & Form State
formState.errors.name?.message— per-field error object from validation.formState.isDirty,isSubmitting,isValid,submitCount— reactive form state.trigger('email')— manually validate a single field.setError('name', { message: 'taken' })— server-side validation errors.
useFieldArray
useFieldArray({ control, name: 'items' })— dynamic list of fields.fields.map((item, i) => <input key={item.id} {...register(items.${i}.value)} />).- Methods:
append,prepend,remove,insert,swap,move,replace. - Each field needs unique
idfromfieldsarray (not index as key).
Controller & Performance
<Controller render={({ field }) => <Select {...field} />} name="country" control={control} />.- Uncontrolled inputs = minimal re-renders;
Controllerfor custom/third-party components. useWatch({ name: 'field' })— subscribe to field changes without re-render.useFormContext()/<FormProvider>— shared form context for deeply nested components.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingconfig/skills/react-hook-form/SKILL.md
Popularity
- Repository stars
- 48
- Repository forks
- 2
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/skeletorflet/opencode-supreme-setup/react-hook-form)