/react-ko-form:recommend <use case: e.g., watch all fields, dynamic field arrays, schema validation>from react-ko-form
Recommends the right React Hook Form API or pattern for a specific form requirement, grounded in local documentation.
Ships in react-ko-form. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Recommend the most suitable React Hook Form API or pattern for the user's needs, grounded in the local documentation.
react-hook-form evolves across versions. Always verify from local docs in this skill directory rather than relying on memorized knowledge.
The local docs are MDX files with custom components. Parse them as follows:
<TypeText>T</TypeText> or <TypeText pre>T</TypeText> — inline type annotation. Read the text content as the TypeScript type.<PrettyObject value={{key: 'type', ...}}/> — renders a type shape. Read the value prop as the type definition.<TabGroup buttonLabels={["X", "Y"]}> — tabbed content with alternative views (e.g., TS vs JS). Read all tabs as variants.<Admonition type="note|important|tip" title="..."> — callout block. Always read; contains critical rules or caveats.<SelectNav options={[...]}> — navigation menu. Skip for content purposes.<CodeArea> — code display component. Read the code content within.<Popup message="..."> — tooltip hint. The message prop contains supplementary info.<div style={...}>, import ..., export ... statements.Use this table to match developer intent to the correct API:
| Developer Intent | Recommended API | Local Doc Path |
|---|---|---|
| basic form setup | useForm + register | ${CLAUDE_SKILL_DIR}/docs/docs/useform.mdx |
| validate fields | register rules or resolver | ${CLAUDE_SKILL_DIR}/docs/docs/useform/register.mdx |
| dynamic add/remove fields | useFieldArray | ${CLAUDE_SKILL_DIR}/examples/useFieldArray.ts (no MDX) |
| controlled/UI library components | Controller / useController | ${CLAUDE_SKILL_DIR}/docs/docs/usecontroller/controller.mdx |
| share form state across components | FormProvider + useFormContext | ${CLAUDE_SKILL_DIR}/docs/docs/useformcontext.mdx, ${CLAUDE_SKILL_DIR}/docs/docs/formprovider.mdx |
| watch a specific field | useWatch | ${CLAUDE_SKILL_DIR}/docs/docs/usewatch.mdx |
| watch from parent (root level) | watch (from useForm) | ${CLAUDE_SKILL_DIR}/docs/docs/useform/watch.mdx |
| multi-step form | useFormContext + trigger() | ${CLAUDE_SKILL_DIR}/docs/advanced-usage.mdx |
| load async data into form | values prop (not defaultValues) | ${CLAUDE_SKILL_DIR}/docs/docs/useform.mdx |
| schema validation (Zod/Yup) | @hookform/resolvers | ${CLAUDE_SKILL_DIR}/docs/get-started.mdx |
| debug form state | @hookform/devtools | (training data only — limit to install guidance) |
| set server-side errors | setError() | ${CLAUDE_SKILL_DIR}/docs/docs/useform/seterror.mdx |
| set values programmatically | setValue() | ${CLAUDE_SKILL_DIR}/docs/docs/useform/setvalue.mdx |
| check dirty/valid state | formState | ${CLAUDE_SKILL_DIR}/docs/docs/useform/formstate.mdx |
| reset form to defaults | reset() | ${CLAUDE_SKILL_DIR}/docs/docs/useform/reset.mdx |
| reset a single field | resetField() | ${CLAUDE_SKILL_DIR}/docs/docs/useform/resetfield.mdx |
| read current values without subscription | getValues() | ${CLAUDE_SKILL_DIR}/docs/docs/useform/getvalues.mdx |
| clear specific errors | clearErrors() | ${CLAUDE_SKILL_DIR}/docs/docs/useform/clearerrors.mdx |
| check if a field is dirty/touched | getFieldState() | ${CLAUDE_SKILL_DIR}/docs/docs/useform/getfieldstate.mdx |
| focus a field programmatically | setFocus() | ${CLAUDE_SKILL_DIR}/docs/docs/useform/setfocus.mdx |
| remove a registered field | unregister() | ${CLAUDE_SKILL_DIR}/docs/docs/useform/unregister.mdx |
| handle form submission | handleSubmit() | ${CLAUDE_SKILL_DIR}/docs/docs/useform/handlesubmit.mdx |
| subscribe to form state changes outside React | subscribe() | ${CLAUDE_SKILL_DIR}/docs/docs/useform/subscribe.mdx |
| type-safe functional lenses | useLens | ${CLAUDE_SKILL_DIR}/docs/docs/uselens.mdx |
Grep for keywords in ${CLAUDE_SKILL_DIR}/docs/**/*.mdx
Display the full API Mapping Table and ask:
"Describe your form requirement and I'll recommend the right React Hook Form API."
useFieldArray has no MDX documentation in the local docs directory. When recommending it:
${CLAUDE_SKILL_DIR}/examples/useFieldArray.ts for the primary usage pattern.${CLAUDE_SKILL_DIR}/examples/useFieldArrayArgument.ts for argument shapes.useFieldArray — the recommendation below is based on code examples."For each recommended API, respond with this structure:
State the API name clearly: e.g., useFieldArray
One sentence describing what it does, sourced from the local doc or example file.
import { useForm, useFieldArray } from 'react-hook-form';
Extract a minimal, self-contained example from the local docs or examples directory.
| API | Use Case | Performance | Complexity |
|---|---|---|---|
watch | parent-level subscription | re-renders parent | low |
useWatch | isolated field subscription | isolated re-renders | low |
Clear decision criteria — e.g., "Use useWatch to subscribe to a single field without re-rendering the parent. Use watch when you need the value at the root level or outside a component."
List local doc paths that were referenced:
${CLAUDE_SKILL_DIR}/docs/docs/usewatch.mdx${CLAUDE_SKILL_DIR}/docs/docs/useform/watch.mdxAfter delivering a recommendation:
/react-ko-form:guide <api-name>/react-ko-form:form-builderBased on react-hook-form v7.x documentation.
docs/advanced-usage.mdx (opens in a new tab)docs/docs/createFormControl.mdx (opens in a new tab)docs/docs/formprovider.mdx (opens in a new tab)docs/docs/usecontroller/controller.mdx (opens in a new tab)docs/docs/useform.mdx (opens in a new tab)docs/docs/useform/clearerrors.mdx (opens in a new tab)docs/docs/useform/control.mdx (opens in a new tab)docs/docs/useform/form.mdx (opens in a new tab)docs/docs/useform/formstate.mdx (opens in a new tab)docs/docs/useform/getfieldstate.mdx (opens in a new tab)docs/docs/useform/getvalues.mdx (opens in a new tab)docs/docs/useform/handlesubmit.mdx (opens in a new tab)docs/docs/useform/register.mdx (opens in a new tab)docs/docs/useform/reset.mdx (opens in a new tab)docs/docs/useform/resetfield.mdx (opens in a new tab)docs/docs/useform/seterror.mdx (opens in a new tab)docs/docs/useform/setfocus.mdx (opens in a new tab)docs/docs/useform/setvalue.mdx (opens in a new tab)docs/docs/useform/subscribe.mdx (opens in a new tab)docs/docs/useform/trigger.mdx (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub hamsurang/react-ko-form --plugin react-ko-form3 skills in this plugin
/form-builderGenerate complete React Hook Form code from natural language field definitions. Use when the user wants to scaffold a typed form with validation and error handling./guideReact Hook Form installation, setup, and hook usage guide. Use when the user asks how to install, configure, or use react-hook-form in their project.