form-system

Enforce TanStack Form conventions for React form development.

Updated Jan 22, 2026
One-click install
npx skills add https://github.com/emelleby/tc-vsme --skill form-system-emelleby
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: form-system
Source: https://github.com/emelleby/tc-vsme/tree/main/.agent/skills/form-system
Command: npx skills add https://github.com/emelleby/tc-vsme --skill form-system-emelleby

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill enforces project form system conventions automatically during form development using the TanStack Form integration. It ensures consistent patterns for form hooks, field components, focus management, validation, server action integration, and accessibility.

Core Features & Use Cases

  • Enforces useAppForm hook patterns, withFocusManagement, and standardized form wrappers (form.AppField, form.AppForm, form.SubmitButton)
  • Supports field components (TextField, TextareaField, SelectField, SwitchField, CheckboxField, ComboboxField, TagField) with consistent props and state handling
  • Ensures accessible form rendering, focus management on validation errors, and seamless server action integration via useServerAction
  • Applies across create, edit, and dialog forms to maintain a cohesive UX and maintainable codebase

Quick Start

Apply the Form System Conventions to a sample React form that uses useAppForm, form.AppField, and form.SubmitButton to demonstrate consistent patterns.

Frequently Asked Questions about form-system

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce consistent validation patterns in TanStack Form?

To enforce consistent validation patterns in TanStack Form, apply standardized conventions using the useAppForm hook, form.AppField components, and useServerAction integration to satisfy validationLogic and canSubmitWhenInvalid requirements automatically.

How do I manage focus on validation errors in React forms?

Manage focus on validation errors in React forms by applying the withFocusManagement wrapper during form development, which ensures accessible form rendering and automatically directs focus when validation logic fails.

Does this form convention system support dialog and edit forms?

This form convention system supports dialog and edit forms, applying consistent field components, focus management, and server action integration across create, edit, and dialog forms to maintain a cohesive UX and maintainable codebase.

What is the best way to standardize React form fields like TextField and SelectField?

The best way to standardize React form fields like TextField, SelectField, and ComboboxField is to enforce consistent props and state handling through a unified form hook wrapper, ensuring all field components adhere to project accessibility requirements.

How do I integrate server actions with TanStack Form?

Integrate server actions with TanStack Form by using the useServerAction hook alongside useAppForm, ensuring seamless server action integration that satisfies project form conventions for validation and submission state.

What are the limitations of enforcing TanStack Form conventions?

The limitations of enforcing TanStack Form conventions include strict adherence to specific wrappers like form.AppForm and form.SubmitButton, meaning forms must use useAppForm and standardized field components rather than custom or alternative React form implementations.