zod-react-hook-form
Skill by BlackBeltTechnology
Zod + React Hook Form is an agent skill with patterns for validating forms in React. It is for developers building forms, validating user input, or handling submissions with Server Actions.
Install zod-react-hook-form
Built from the published package, never by AI.
git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard /tmp/pi-agent-dashboard && mkdir -p ~/.claude/skills && cp -r /tmp/pi-agent-dashboard/packages/frontend-patterns/.pi/skills/zod-react-hook-form ~/.claude/skills/zod-react-hook-formRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/BlackBeltTechnology/pi-agent-dashboard /tmp/pi-agent-dashboard && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/pi-agent-dashboard/packages/frontend-patterns/.pi/skills/zod-react-hook-form ~/.gemini/antigravity-cli/skills/zod-react-hook-formAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install zod-react-hook-form in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Zod + React Hook Form is an agent skill that shows how to validate forms in React using Zod schemas and React Hook Form. It includes example schemas for a contact form and a booking request, and connects them to React Hook Form with zodResolver. The client component examples use shadcn/ui Form components for fields, labels and error messages.
The skill also covers Server Action integration. It shows how to read FormData, validate it with safeParse, and return field errors. It includes a form built with useActionState, a pattern for creating a schema from a translation function for localized messages, a select field example, and environment variable validation with Zod. It is aimed at developers building forms in Next.js and React projects.
Written from the project's SKILL.md and checked against it.
What it can do
- Schema definitionDefines Zod schemas for contact and booking forms with custom error messages.
- Client component formBuilds a React Hook Form component using zodResolver and shadcn/ui Form fields.
- Server Action integrationValidates FormData in a Server Action with safeParse and returns field errors.
- Form with Server ActionConnects a form to a Server Action using useActionState and a pending state.
- Localized error messagesCreates a Zod schema from a translation function for translated validation messages.
- Select and radio fieldsShows how to wire a select field to React Hook Form with a Zod enum.
- Environment validationValidates environment variables with a Zod schema at startup.
What you need
- React Hook Form
- Zod
- @hookform/resolvers/zod
- shadcn/ui components
- next-intl for the localization examples
Try asking
- Build a contact form with Zod validation and shadcn/ui components.
- Add a Server Action that validates form data with a Zod schema.
- Show localized validation messages for my React Hook Form fields.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: packages/frontend-patterns/.pi/skills/zod-react-hook-form/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to zod-react-hook-form
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
zod-react-hook-form: common questions
Does this skill work with Next.js Server Actions?
Yes. It includes a section on Server Action integration that validates FormData with a Zod schema and returns field errors.
How are form error messages localized?
The skill shows a createContactSchema function that takes a translation function and passes translated messages into Zod rules. The examples use next-intl.
Which UI components does it use?
The client form examples use shadcn/ui Form, Input, Textarea, Button and Select components.
How do I install zod-react-hook-form?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is zod-react-hook-form free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is zod-react-hook-form safe to use?
It scores 74 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to zod-react-hook-form?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
