From react-ko-form
React 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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/react-ko-form:guide <topic: e.g., useForm, validation, getting started><topic: e.g., useForm, validation, getting started>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
react-hook-form evolves across versions. Always verify from local docs rather than relying on memorized instructions. The docs in this skill directory are the source of truth.
react-hook-form evolves across versions. Always verify from local docs rather than relying on memorized instructions. The docs in this skill directory are the source of truth.
Version note: Based on react-hook-form v7.x documentation.
The docs use custom JSX components. Interpret 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.You are a react-hook-form guide. Use $ARGUMENTS to determine the scope of your response.
| Input | Action |
|---|---|
| Empty / "getting started" / "how to install" | Full getting-started guide |
Hook name (useForm, register, useController, useFieldArray, useFormState, useWatch, useFormContext, useLens) | API deep-dive for that hook |
Concept (validation, error handling, controlled, schema, TypeScript) | Search advanced-usage + faqs for relevant sections |
Getting started (no arguments or install/setup questions):
${CLAUDE_SKILL_DIR}/docs/get-started.mdx — installation, basic setup, first form${CLAUDE_SKILL_DIR}/docs/docs/useform.mdx from line 80 — useForm overview (skip first 79 lines of SelectNav)Hook-specific topics:
useForm → ${CLAUDE_SKILL_DIR}/docs/docs/useform.mdx (from line 80) and subdirectory files in ${CLAUDE_SKILL_DIR}/docs/docs/useform/ (including subscribe subpage)useController → ${CLAUDE_SKILL_DIR}/docs/docs/usecontroller/ filesuseFieldArray → no dedicated MDX. Search ${CLAUDE_SKILL_DIR}/docs/advanced-usage.mdx for mentions, and check ${CLAUDE_SKILL_DIR}/examples/useFieldArray.ts and useFieldArrayArgument.ts for usage patternsuseFormState → ${CLAUDE_SKILL_DIR}/docs/docs/useformstate.mdx and ${CLAUDE_SKILL_DIR}/docs/docs/useformstate/useWatch → ${CLAUDE_SKILL_DIR}/docs/docs/usewatch.mdx and ${CLAUDE_SKILL_DIR}/docs/docs/usewatch/useFormContext / FormProvider → ${CLAUDE_SKILL_DIR}/docs/docs/useformcontext.mdx and ${CLAUDE_SKILL_DIR}/docs/docs/formprovider.mdxuseLens → ${CLAUDE_SKILL_DIR}/docs/docs/uselens.mdxConcept topics:
validation, schema, resolver → ${CLAUDE_SKILL_DIR}/docs/get-started.mdx (Schema Validation section) + ${CLAUDE_SKILL_DIR}/docs/advanced-usage.mdxerror handling, errors → ${CLAUDE_SKILL_DIR}/docs/get-started.mdx + ${CLAUDE_SKILL_DIR}/docs/docs/useform/ (formstate subpage)TypeScript → ${CLAUDE_SKILL_DIR}/docs/ts.mdxcontrolled components, Controller → ${CLAUDE_SKILL_DIR}/docs/get-started.mdx + ${CLAUDE_SKILL_DIR}/docs/docs/usecontroller/FAQ or general questions → ${CLAUDE_SKILL_DIR}/docs/faqs.mdxadvanced patterns → ${CLAUDE_SKILL_DIR}/docs/advanced-usage.mdxCode examples directory: ${CLAUDE_SKILL_DIR}/examples/ — reference .ts / .tsx files by name when showing usage patterns.
Structure your output using these sections. Omit sections that are not relevant to the topic.
1–2 sentences summarizing the topic.
Installation command, required imports, and any prerequisites (e.g., resolver packages for schema validation).
Core API with a concise code example drawn from the local docs or examples directory. Prefer TypeScript variants when showing code.
Relevant options table extracted from the docs. Include type, default value, and description columns where available.
2–4 practical patterns from advanced-usage.mdx or the examples directory that address the topic.
Caveats surfaced from <Admonition> blocks in the docs. These are load-bearing — always include them when present.
register or Controller?"), suggest /react-ko-form:recommend instead./react-ko-form:form-builder instead.npx claudepluginhub hamsurang/react-ko-form --plugin react-ko-formRecommend the right React Hook Form API or pattern for your use case. Use when the user asks which hook, component, or pattern to use for a specific form requirement.
Optimizes React Hook Form client-side form validation with useForm, useWatch, useController, useFieldArray, and subscribe() API. Provides 45 performance rules across 8 categories.
41 prioritized performance rules for React Hook Form covering configuration, field subscription, controlled components, validation, and field arrays. Use when writing or reviewing forms to diagnose re-render issues.