form-builder

Create accessible, validated React forms with React Hook Form and Zod.

Updated Feb 23, 2026
One-click install
npx skills add https://github.com/pohlai88/AFENDA-NEXUS --skill form-builder-pohlai88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: form-builder
Source: https://github.com/pohlai88/AFENDA-NEXUS/tree/main/.agents/skills/form-builder
Command: npx skills add https://github.com/pohlai88/AFENDA-NEXUS --skill form-builder-pohlai88

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Create accessible, validated forms in React with minimal boilerplate using React Hook Form and Zod.

Core Features & Use Cases

  • Integrates React Hook Form for efficient state management and minimal re-renders
  • Validates inputs using Zod via zodResolver for type-safe schemas
  • Provides accessible error messaging and ARIA attributes for assistive tech
  • Includes example forms (contact, signup, newsletter) to illustrate common workflows

Quick Start

Install the dependencies and import the Form Builder component into your React project to start building accessible forms.

Frequently Asked Questions about form-builder

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

FAQPage Schema
How do I build accessible React forms with type-safe validation?

Build accessible React forms with type-safe validation by integrating React Hook Form for state management and Zod via zodResolver for schema enforcement. This combination minimizes boilerplate while providing ARIA attributes and accessible error messaging for assistive technologies.

What is the best way to handle server-side errors in React Hook Form?

Handle server-side errors in React Hook Form by using the setError method to programmatically attach field-specific validation errors. This approach populates accessible error messaging on the client after a server response, maintaining consistency with your Zod schema validation strategy.

Does React Hook Form with Zod work with React 18 and TypeScript?

React Hook Form with Zod fully supports React 18+ and TypeScript, ensuring type-safe form validation across your application. The zodResolver bridges your Zod schemas to the form state, enforcing type safety and providing accessible error handling without requiring additional boilerplate.

How do I prevent default browser validation when using React Hook Form?

Prevent default browser validation in React Hook Form by configuring the form to disallow native HTML5 validation. The Skill enforces an onBlur validation strategy using Zod, ensuring custom accessible error messaging replaces default browser prompts for assistive technology users.

Can I reset a React form after successful submission using React Hook Form?

Reset a React form after successful submission by leveraging the built-in reset functionality of React Hook Form. The Skill automates this process, clearing input fields and validation states once the form submission completes successfully, supporting common scenarios like contact and signup workflows.

When do I need Zod schemas for React form validation?

You need Zod schemas for React form validation when creating type-safe forms for common scenarios like contact, signup, login, or checkout. Zod provides runtime type checking and schema enforcement, ensuring data integrity before submission while generating accessible ARIA error attributes automatically.