form-builder

Create validated React/Next.js forms with HookForm and Field components.

1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/spuneiartur/claude-agent-specs --skill form-builder-spuneiartur
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: form-builder
Source: https://github.com/spuneiartur/claude-agent-specs/tree/main/next-js/skills/skills/form-builder
Command: npx skills add https://github.com/spuneiartur/claude-agent-specs --skill form-builder-spuneiartur

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Building forms in React/Next.js apps is repetitive and error-prone. This Skill standardizes form creation by reusing the project's HookForm system and Field components, reducing boilerplate and ensuring consistent validation across screens.

Core Features & Use Cases

  • Standardized form creation with React Hook Form and Yup validation, integrated with the project's Field components.
  • Supports both standard entry forms (login, signup, settings) and data-entry interfaces, including filter forms and admin dashboards.
  • Provides a scalable pattern for building complex forms with validation, initial values, and onSubmit logic, while encouraging reuse of existing components.

Quick Start

Create a new form by defining a Yup validation schema and initial values, wrapping it with HookForm, and rendering Field components for each input.

Frequently Asked Questions about form-builder

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

FAQPage Schema
How do I build validated React forms with Yup and React Hook Form?

Build validated React forms by defining a Yup validation schema and initial values, then wrapping inputs with HookForm and rendering reusable Field components to standardize data entry and submission.

What is the best way to standardize form validation across a Next.js application?

Standardize form validation in a Next.js application by reusing HookForm and Field components to create consistent schemas, reducing repetitive boilerplate and preventing validation errors across multiple screens.

Can I use this approach for both contact forms and admin dashboard filters?

Yes, this form creation pattern supports both standard entry forms like login screens and complex data-entry interfaces, including admin dashboard filters and user-facing contact pages.

Do I need predefined initial values to create a form with React Hook Form?

Yes, providing initial values is required to wire the form correctly. You define them alongside a Yup validation schema before rendering the Field components and attaching onSubmit handlers.

Why does my React form validation schema fail on submit?

Form validation fails on submit when the Yup schema does not match the initial values or Field components. Ensure your validation rules align with the defined form inputs to prevent submission errors.

How do I wire onSubmit handlers to reusable Field components in React?

Wire onSubmit handlers by passing them into the HookForm wrapper alongside the Yup validation schema, ensuring the reusable Field components trigger the submission logic correctly upon validation success.