Skip to main content
skill CX Codex

formik-patterns — Claude Code skill: Formik forms with Yup

formik-patterns adds Formik form recipes to Claude: Yup schemas, field handlers, a submit flow and multi-step forms.

no license ★ 6,091 updated 2026-01-06

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add ChrisWiles/claude-code-showcase --skill formik-patterns -a claude-code
Open on GitHub

What formik-patterns does

The skill hands Claude working Formik recipes. Basic setup is useFormik with a Yup validationSchema, handleChange and handleBlur wired per field, and errors shown only once a field has been touched. Schema snippets cover email, password rules, matching confirmation via yup.ref, phone numbers and numeric ranges.

Conditional rules use when. Submission goes through a GraphQL mutation with setSubmitting cleared in finally, and the edit form uses enableReinitialize plus a button gated on dirty. A getFieldProps helper spreads the right props onto a field. Multi-step flows keep the step index in useState and swap the schema per step.

The markup assumes Input, Button and VStack components with props such as onChangeText and isDisabled. Plain <input> elements mean rewriting the examples. Both formik and yup have to be in the project already.

What it helps with

  • build a login form with email and password validation
  • show a field error only after the user leaves the input
  • check that password and confirmation match
  • submit form values through a GraphQL mutation and clear the loading state
  • split a long form into steps with a separate schema per step

Example prompts for the agent

  • Build a signup form with useFormik and a Yup schema for email, password and confirmation.
  • Rework the edit form so new values come in through enableReinitialize and Save stays disabled until dirty.
  • Split the checkout into three steps, each with its own validation schema.

How to install formik-patterns

1Skills CLI (Vercel)

npx skills add ChrisWiles/claude-code-showcase --skill formik-patterns -a claude-code

2Manually: put the files in place

~/.claude/skills/formik-patterns/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/formik-patterns/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about formik-patterns

How do I install formik-patterns in Claude Code?

Run npx skills add ChrisWiles/claude-code-showcase --skill formik-patterns -a claude-code. The skill lands at ~/.claude/skills/formik-patterns/SKILL.md.

What does formik-patterns do?

It gives Claude Formik patterns: Yup schemas, field handlers, submit handling and multi-step forms.

What does the skill need to work?

formik and yup must be installed in the project. The examples use Input, Button and VStack components, so other UI libraries need the markup adapted.

Similar skills

All skills for Frontend and UI →

From the same set11

The whole set →
pr-review pr-review inspects pull requests through the GitHub CLI against project standards and posts tiered review notes. CX Codex +1 ★ 6,091repo stars code-quality code-quality reviews TypeScript files in a chosen directory, runs npm checks, and groups findings by severity. Use it before a code change or review. CX Codex +1 ★ 6,091repo stars docs-sync docs-sync is a Claude Code command that compares documentation with recent code changes and flags inconsistencies. It catches outdated examples, incorrect API signatures, and mismatched parameter types. CX Codex +1 ★ 6,091repo stars github-workflow github-workflow manages Git branches, Conventional Commits, and pull requests according to team conventions. Helpful for keeping repository history structured and tidy. CX Codex ★ 6,091repo stars ticket Handles the full ticket workflow: fetch task details from JIRA or Linear, explore related code, implement changes, and create a linked PR. Reduces manual sync between issue tracker and repository. CX Codex +1 ★ 6,091repo stars code-reviewer code-reviewer — a subagent for Claude Code that checks newly written or modified code against project standards, TypeScript strict mode, and security patterns. CX Codex ★ 6,091repo stars systematic-debugging systematic-debugging enforces a four-phase troubleshooting protocol rooted in root cause analysis. Ideal for tracking down broken test suites or runtime errors without trial-and-error edits. CX Codex +1 ★ 6,091repo stars graphql-schema The graphql-schema skill sets conventions for GraphQL queries, mutations, and type generation. It fits projects that use Apollo Client. CX Codex +1 ★ 6,091repo stars

Project sponsors

Companies that keep this analytics open