form-handling

Build type-safe React forms with Zod validation and React Hook Form.

7|1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/PMDevSolutions/Aurelius --skill form-handling-pmdevsolutions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: form-handling
Source: https://github.com/PMDevSolutions/Aurelius/tree/main/.claude/skills/form-handling
Command: npx skills add https://github.com/PMDevSolutions/Aurelius --skill form-handling-pmdevsolutions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building production-ready, type-safe, and accessible forms in React requires repetitive boilerplate for validation, error handling, and ARIA compliance, especially for complex patterns like multi-step wizards and dynamic field arrays.

Core Features & Use Cases

  • Typed Form Validation: Integrates Zod schemas with React Hook Form for end-to-end type safety without duplicate type definitions.
  • Reusable Accessible Components: Includes a pre-built FormField wrapper that handles labels, error announcements, and ARIA attributes out of the box.
  • Complex Form Patterns: Supports dynamic field arrays for repeating data (e.g., invoice line items), multi-step wizards with per-step validation, and Next.js server action integration.
  • Use Case Example: Build a checkout form with dynamic line item inputs, or a multi-step user onboarding flow with full accessibility compliance and client-side validation.

Quick Start

Use the form-handling skill to build a validated, accessible multi-step onboarding wizard with React Hook Form and Zod for your Next.js application.

Frequently Asked Questions about form-handling

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

FAQPage Schema
How do I build type-safe forms with React Hook Form and Zod?

Build type-safe forms by integrating Zod schemas with React Hook Form to manage state and enforce validation without duplicate type definitions, eliminating repetitive boilerplate for client-side error handling.

What is the best way to handle dynamic field arrays in React forms?

Handle dynamic field arrays by using React Hook Form's array features to manage repeating data like invoice line items. This allows you to add or remove inputs dynamically while maintaining Zod schema validation and accessible ARIA compliance.

How do I create a multi-step onboarding wizard with per-step validation in Next.js?

Create a multi-step onboarding wizard by structuring your form into sequential stages with per-step Zod validation. Integrate this with Next.js server actions to handle state progression and secure data submission end-to-end.

Does this form validation approach support ARIA accessibility compliance?

Yes, this form validation approach supports ARIA accessibility compliance by using a pre-built FormField wrapper. This component handles accessible labels, manages error announcements, and applies necessary ARIA attributes out of the box.

Can I use Zod for server-side validation with Next.js server actions?

Yes, you can use Zod for server-side validation with Next.js server actions. This integration ensures that your form data is validated consistently on both the client and server, maintaining type safety throughout the submission process.

Why do I need Zod schemas if I am already using React Hook Form?

You need Zod schemas alongside React Hook Form to establish end-to-end type safety and structured validation rules. While React Hook Form manages state, Zod defines the validation schema, preventing duplicate type definitions and ensuring robust client-side error handling.