What problem does it solve?
Provides a clear, project-aligned workflow to generate Zod schemas and react-hook-form components for Lety 2.0 frontend, removing guesswork about file placement, resolver choice, and multi-step validation so forms are consistent, type-safe, and maintainable.
Core Features & Use Cases
- Schema generation: Create single-step or multi-step Zod schemas placed in the correct features/<feature>/logic/ directory with .schema.ts suffix and exported inferred types.
- Form scaffolding: Produce react-hook-form components using FormProvider, standardSchemaResolver, mode: 'onChange', and defaultValues for create and edit flows.
- Validation patterns: Support file uploads, cross-field validation using refine/superRefine, step-by-step partial validation with trigger(fields), and guidance to avoid anti-patterns like zodResolver or inline schemas.
Quick Start
Generate a create form schema and a corresponding form component for a user signup flow with name, email, password, and optional avatar upload.