form-generator-rhf-zod

Generate React forms with React Hook Form, Zod validation, and shadcn/ui controls.

6|Updated Nov 11, 2025
One-click install
npx skills add https://github.com/hopeoverture/worldbuilding-app-skills --skill form-generator-rhf-zod
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: form-generator-rhf-zod
Source: https://github.com/hopeoverture/worldbuilding-app-skills/tree/main/skills/ui-components/form-generator-rhf-zod
Command: npx skills add https://github.com/hopeoverture/worldbuilding-app-skills --skill form-generator-rhf-zod

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill generates React forms with RHF and Zod validation using TypeScript templates and UI components, enabling client and server validation.

Core Features & Use Cases

  • Generate a form component, Zod schema, and server action from field specs
  • Create server-side validation and client-side validations
  • Ensure accessible, typed forms with error handling

Quick Start

Use the generator to create a CharacterForm from a fields.json description.

Frequently Asked Questions about form-generator-rhf-zod

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

FAQPage Schema
How do I generate a React form with client and server validation?

Generate production-ready React forms using React Hook Form for client-side validation and Zod schemas for both client and server validation. This Skill creates typed form components, validation schemas, and server actions that handle data operations with strict TypeScript typings and accessible ARIA attributes.

Can I use React Hook Form with Zod for type-safe forms?

Yes. This Skill integrates React Hook Form with Zod validation to create type-safe forms where TypeScript infers types from your Zod schema. The generated forms ensure consistent error handling and validation logic across client and server without manual type duplication.

What's the best way to validate forms on both client and server?

Define a single Zod schema that powers both client-side validation in React Hook Form and server-side validation in server actions. This Skill generates matching form components and server logic, eliminating validation logic duplication and ensuring consistent rules across boundaries.

How do I create accessible React forms with proper error handling?

This Skill generates form components with built-in ARIA attributes for accessibility and consistent error handling patterns. Forms integrate React Hook Form and shadcn/ui controls to provide semantic markup, keyboard navigation, and clear validation feedback.

Do I need to write separate validation logic for the client and server?

No. Define validation once in Zod and reuse it on both sides. This Skill generates server actions that apply the same Zod schema for server-side validation, keeping your validation rules synchronized and reducing maintenance overhead.

Can this generate forms for entity models, character editors, or data-entry interfaces?

Yes. Provide field specifications and this Skill generates form components, Zod schemas, and server actions for any structured data—entities, characters, locations, or custom data-entry interfaces—with full validation and type safety.