---
name: "formik-yup-schema-validation"
description: "Manage enterprise React forms, touched states, and field validation using Formik and Yup."
metadata:
  author: "Jared Palmer"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "create formik form yup"
  - "use fastfield formik"
  - "handle touched errors formik"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Formik & Yup Object Schema Form Management

Builds form components with Formik: defining initialValues, validationSchema with Yup (shape, matches, oneOf), custom Field and FastField components, touched flags, and handleReset workflows.

## When to Invoke
Invoke this skill whenever you need to:
- create formik form yup
- use fastfield formik
- handle touched errors formik

## Execution SOP & Rules
1. Define Yup schema: yup.object().shape({ email: yup.string().email().required() }).
2. Wrap form with <Formik initialValues={{ email: '' }} validationSchema={schema} onSubmit={...}>.
3. Use Formik <Field name='email' /> and <ErrorMessage name='email' component='div' />.
4. Check formik.isSubmitting to display disabled button states during network submission.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
