forms-validation

Standardize Yup schemas and react-hook-form integration for React Native form validation.

Updated Feb 27, 2026
One-click install
npx skills add https://github.com/alejandro-technology/react-native-template --skill forms-validation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: forms-validation
Source: https://github.com/alejandro-technology/react-native-template/tree/main/.claude/skills/enforcement/forms-validation
Command: npx skills add https://github.com/alejandro-technology/react-native-template --skill forms-validation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces a consistent, scalable form architecture by standardizing schema validation, UI form integration, and adapter-based payload transformation to prevent fragmented form patterns.

Core Features & Use Cases

  • Standard Yup schemas for domain validation and error messages in Spanish.
  • React Hook Form integration with a dedicated FormData type inferred from Yup schema.
  • Adapter-based data flow: form data -> payload -> service, with the adapter invoked inside the application layer mutation.

Quick Start

Configure your form screen to use the standard schema, hook-form resolver, and the adapter-based payload flow, then run your mutation to create or update an item.

Frequently Asked Questions about forms-validation

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

FAQPage Schema
How do I standardize React Hook Form validation with Yup schemas across multiple screens?

You can standardize React Hook Form validation by defining Yup schemas in domain files, inferring FormData types from those schemas, and wiring form components with yupResolver to enforce a single source of truth.

What is the best way to transform form data before sending it to a service in React Native?

The best way to transform form data is using an adapter-based flow where form data converts to a payload, with the adapter invoked inside the application layer mutationFn to ensure consistent data transformation before reaching the service.

How do I maintain consistent form architecture for CRUD workflows in React Native?

Maintain consistent form architecture by enforcing standard Yup schemas, react-hook-form integration with inferred FormData types, and adapter-based payload transformation across all create, read, update, and delete workflows.

Do I need Yup schemas in domain files to use adapter-based form validation?

Yes, the architecture requires Yup schemas in domain files to infer FormData types and validate inputs, which are then wired to form components using yupResolver for consistent validation.

Can I use this form validation approach for both creating and updating items?

Yes, the standardized form architecture with Yup schemas, react-hook-form integration, and adapter-based payload transformation applies to both creating and updating items within CRUD workflows.

Why does my form architecture become fragmented without standardized schema validation?

Form architecture becomes fragmented without standardized schema validation because different screens implement varied Yup schemas and react-hook-form integrations, preventing a single source of truth and consistent payload transformation.