writing-forms

Enforce react-hook-form and Zod validation patterns for form creation and submission.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/anthony-fdez/claude-skills --skill writing-forms
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: writing-forms
Source: https://github.com/anthony-fdez/claude-skills/tree/main/.claude/skills/writing-forms
Command: npx skills add https://github.com/anthony-fdez/claude-skills --skill writing-forms

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the creation of user interfaces by enforcing best practices for form development, ensuring data integrity, and improving user experience.

Core Features & Use Cases

  • Declarative Form Structure: Define forms using react-hook-form and validate them with Zod.
  • Comprehensive Validation: Handles field-level, form-level, and API-level error management.
  • Specialized Inputs: Integrates with OTP and phone number components.
  • Accessibility & Testing: Enforces ARIA attributes and provides data-test attributes for robust testing.
  • Use Case: When building a user registration page, this skill ensures all fields are validated correctly, error messages are displayed clearly, and the form submission state is managed gracefully.

Quick Start

Use the writing-forms skill to create a login form with email and password fields, ensuring validation with Zod and displaying errors.

Frequently Asked Questions about writing-forms

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

FAQPage Schema
How do I build a React form with validation using react-hook-form and Zod?▼

To build a React form with validation using react-hook-form and Zod, you declare your form structure and validation schemas, then handle state, errors, and submissions. This approach ensures data integrity and enforces uncontrolled component patterns.

Can I handle multi-step forms and specialized inputs like OTP with react-hook-form?▼

Yes, you can handle multi-step forms and specialized inputs like OTP and phone numbers with react-hook-form. The form patterns support field-level and form-level error management, processing submissions gracefully across multiple steps.

What is the best way to manage form-level and API-level errors in React forms?▼

The best way to manage form-level and API-level errors in React forms is by enforcing comprehensive validation patterns with Zod. This handles field-level, form-level, and API-level error management to display error messages clearly.

Does react-hook-form enforce accessibility and testing attributes for form inputs?▼

Yes, using react-hook-form with structured validation enforces accessibility and testing attributes. It includes ARIA attributes for accessibility and provides data-test attributes to ensure robust component testing.

Why use uncontrolled components for form state management in React?▼

Using uncontrolled components for form state management in React prioritizes performance by reducing unnecessary re-renders. The react-hook-form integration handles validation and state internally, ensuring data integrity without manually controlling every input.