About w-form
w-form is a skill for implementing forms in an existing Next app. It follows the app’s established submission path, shares Zod validation between client and server, and checks accessibility and form states.
Key features
- 01Inspect and reuse neighboring submission patterns
- 02Share a Zod schema for validation
- 03Add accessible labels and error states
- 04Handle pending, empty, and success states
- 05Run lint and test submission paths
Use cases
- 01Add a form to a Next app
- 02Validate input on client and server
- 03Check keyboard-based form submission
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ blockmatic/ basilic-skills --skill w-formAfter installing, type/w-formin Claude Code to confirm it loaded.
Details
From the project READMEImplement 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.
Comments
Markdown supported