This skill streamlines the transition from Formik to TanStack Form within React applications, specifically optimized for modern codebase conventions like the Lago frontend. It performs a deep pre-migration analysis of existing Formik components, mapping legacy Yup schemas to Zod equivalents and refactoring complex validation logic—including cross-field, conditional, and asynchronous rules. By automating the conversion to the custom useAppForm hook and implementing reusable patterns like NameAndCodeGroup, it ensures a consistent, type-safe, and high-performance form architecture.
主な機能
01Automatic refactoring from useFormik to the custom useAppForm hook
02Support for complex cross-field and conditional validation logic using Zod refinements
03Deep validation analysis mapping Yup schemas to Zod equivalents
04Implementation of reusable field patterns and specialized UI groups
05147 GitHub stars
06Detailed pre-migration planning including validation mapping tables
ユースケース
01Standardizing form implementation patterns across large React codebases
02Modernizing legacy Formik components to the TanStack Form ecosystem
03Converting Yup validation schemas to Zod for improved TypeScript integration