/uitkit:frontend:form-validation [file] [library: zod|yup|valibot|native]from uitkit
Adds or fixes form validation in a React project using schema libraries (Zod, Yup, Valibot) with accessible error display, aria attributes, and proper submit handling.
Ships in uitkit. Installing the plugin adds it to Claude Code.
Implement or repair form validation in: $ARGUMENTS
Parse args: first token is the target file; optional library name overrides auto-detection.
Step 1 — Detect existing stack
Scan for imports of: react-hook-form, formik, zod, yup, valibot, @conform-to/react.
Use whatever is already installed. If nothing is installed, default to react-hook-form + zod.
Do not install new packages without noting them explicitly.
Step 2 — Define the schema For each field in the form, derive validation rules from:
required, minLength, pattern, type)Schema rules to apply:
email: .email() with a human-readable messagepassword: min 8 chars, at least one number or symbol — emit the constraint clearly in the messageurl: .url() — allow empty string only if field is optionalphone: E.164 regex or locale-appropriate pattern.min(1, "Field is required") — not just .nonempty().optional() or .nullable() as appropriate — do not leave ambiguousStep 3 — Wire validation to the form For react-hook-form:
resolver with the schema library's resolver adapteronChange validation with register() and formState.errorshandleSubmit — do not manually call preventDefaultFor formik:
validationSchema prop<ErrorMessage> component or formik.errors[field] — not ad hoc string checksStep 4 — Error display Each error message must:
aria-describedby pointing to the error element's idaria-invalid="true" on the input when an error is presentrole="alert" on the error container if it appears after user action (not on initial render)Step 5 — Submit behavior
isSubmitting)setError to the correct fieldsApply all changes to the file. List every field updated and every new validation rule added.
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: agents: Invalid input, skills: Invalid input
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
500 commands in this plugin
/ai-engineering:agent-scaffoldAgent ScaffoldScaffold a multi-step Claude agent with tool use, memory, and a defined stopping condition/ai-engineering:de:agent-scaffoldAgent ScaffoldEinen mehrstufigen Claude-Agent mit Tool-Use, Memory und einer definierten Stoppbedingung aufbauen/ai-engineering:de:eval-harnessEval HarnessGenerieren Sie ein Test-Harness zur Evaluierung eines LLM-Prompts oder einer Chain anhand eines Datensatzes/ai-engineering:de:mcp-server-genMcp Server GenGeneriere einen vollständig konfigurierten MCP-Server, der Tools, Ressourcen oder Prompts für eine bestimmte Domäne verfügbar macht/ai-engineering:de:prompt-improveGefundene ProblemeKritik und Umformulierung eines Prompts für Klarheit, Spezifität und Token-Effizienz/ai-engineering:de:rag-setupRag SetupScaffold a production-ready RAG pipeline for a given data source and stackOther plugins' commands for the same job