Imported from blockmatic/basilic-skills (
skills/w-form/SKILL.md) via skills.sh. Install upstream withnpx skills add blockmatic/basilic-skills --skill w-form. Copyright stays with the author.
Implement a form in the current Next app. Follow next-v16 and shadcn-v3. If the app already mutates through an API client (Fastify + TanStack Query), do not introduce Server Actions, useFormStatus, or useOptimistic for those flows.
- Inspect how neighboring forms submit. Reuse that path.
- Share one Zod schema for client UX and server validation.
- Wire accessible labels, errors, pending, and empty/error/success states with existing UI primitives.
- Run lint and exercise submit, validation failure, and keyboard path.
- Docs:
/w-docsif behavior or commands changed.