plugins/react-expert/skills/react-forms/SKILL.md
TanStack Form v1 - type-safe forms with Zod/Yup/Valibot validation, async validation, arrays, nested fields, React 19 Server Actions
npx skillsauth add fusengine/agents react-formsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Before ANY implementation, use TeamCreate to spawn 3 agents:
After implementation, run fuse-ai-pilot:sniper for validation.
ALWAYS apply SOLID principles from solid-react skill.
→ See ../solid-react/SKILL.md for complete rules
Key Rules:
modules/[feature]/src/interfaces/| Hook | Purpose | Guide |
|------|---------|-------|
| useForm() | Initialize form with validation | references/tanstack-form-basics.md |
| useField() | Subscribe to individual field | references/tanstack-form-basics.md |
| form.Field | Render prop component for fields | references/tanstack-form-basics.md |
| form.Subscribe | Watch form state changes | references/tanstack-form-basics.md |
→ See references/tanstack-form-basics.md for detailed usage
| Library | Adapter | Bundle Size |
|---------|---------|-------------|
| Zod | zodValidator() | ~12KB |
| Yup | yupValidator() | ~40KB |
| Valibot | valibotValidator() | ~6KB |
→ See references/zod-validation.md for Zod patterns
→ See references/yup-valibot.md for alternatives
Server-side checks with debouncing and loading states.
→ See references/async-validation.md
Integration with useActionState and progressive enhancement.
→ See references/server-actions.md
Dynamic field arrays and dot notation for nested objects.
→ See references/arrays-nested.md
Full type inference from Zod schemas and defaultValues.
→ See references/typescript.md
Field wrapper components with shadcn styling.
→ See references/shadcn-integration.md
onMount, onChange, onBlur, onSubmit with debouncing.
→ See references/listeners.md
Cross-field validation and dependent dropdowns.
→ See references/linked-fields.md
useStore selectors and granular subscriptions.
→ See references/reactivity.md
Form and field reset with custom values.
→ See references/reset-api.md
TanStack Start integration and server state merge.
→ See references/ssr-hydration.md
Debug form state with @tanstack/react-form-devtools.
→ See references/devtools.md
Mobile-specific patterns with TextInput.
→ See references/react-native.md
ArkType and Effect Schema support.
→ See references/standard-schema.md
| Template | Use Case |
|----------|----------|
| templates/basic-form.md | Login/signup with Zod |
| templates/multi-step-form.md | Wizard with step validation |
| templates/dynamic-fields.md | Add/remove field arrays |
| templates/file-upload-form.md | File input with preview |
| templates/server-action-form.md | React 19 Server Actions |
| templates/optimistic-form.md | useOptimistic integration |
| templates/nested-form.md | Dot notation nested fields |
| templates/search-form.md | Debounced search |
| templates/conditional-fields.md | Show/hide based on values |
| templates/form-composition.md | Reusable field components |
| templates/listeners-form.md | Side effects & auto-save |
| templates/linked-fields-form.md | Cross-field validation |
| templates/reactivity-form.md | Performance optimization |
| templates/reset-form.md | Form/field reset patterns |
| templates/ssr-form.md | SSR & hydration |
| templates/devtools-form.md | Devtools integration |
| templates/react-native-form.md | React Native forms |
field.state.meta.errorsaddress.street)mode="array" with pushValue/removeValuez.infer<typeof schema>useState for form state → use useForm()onChangeAsyncDebounceMsonChange → use field.handleChangez.infer<typeof schema>development
Use when optimizing entity-based / semantic SEO 2026. Covers entity maps, Google Knowledge Graph resolution, salience scoring, passage-level ranking, about/sameAs/knowsAbout schema, Cloud Natural Language API validation.
development
Use when running SEO, GEO, schema, Core Web Vitals, sitemap, hreflang, E-E-A-T, AI Overviews, technical SEO, or structured data tasks. Covers full-site audits, single-page analysis, schema markup, content quality, AI search optimization, local SEO, sitemap/robots, internal linking, semantic clustering, and search experience.
development
Use when optimizing search experience (SXO). Covers intent matching, user personas, user stories, page-type analysis, dwell time, scroll depth, pogo-sticking prevention.
development
Use when optimizing local SEO. Covers Google Business Profile, NAP consistency, citations, reviews acquisition, Local Pack ranking, location pages, LocalBusiness schema.