Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add smicolon/ai-kit --skill react-form-validatorgit clone --depth 1 https://github.com/smicolon/ai-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/smicolon/ai-kit/react-form-validator)<a href="https://agentmods.dev/skills/smicolon/ai-kit/react-form-validator"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/react-form-validator/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/smicolon/ai-kit/react-form-validator"><img src="https://agentmods.dev/badge/skills/smicolon/ai-kit/react-form-validator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00056 | $0.04491 |
| Opus 5.5 | $0.00022 | $0.01796 |
| Sonnet 5.5 | $0.00011 | $0.00898 |
| Haiku 4.5 | $0.00006 | $0.00449 |
Grade A, and why
react-form-validator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 674 lines — stays where its author put it; the contents beside it link to each section on GitHub.
React Form Validator
Auto-enforces React Hook Form + Zod validation pattern for ALL forms in Next.js/React applications.
Activation Triggers
This skill activates when:
- Creating form components
- Using
<form>,<input>, form elements - Mentioning "form", "validation", "submit", "input"
- Handling form state or submission
- Creating login, signup, or data entry forms
Required Form Pattern (MANDATORY)
ALL forms MUST use:
- ✅ React Hook Form for form state management
- ✅ Zod for schema validation
- ✅ TypeScript types inferred from Zod schema
- ✅ Error handling with accessible error messages
- ✅ Loading states during submission
Auto-Validation Process
Step 1: Detect Form Without Pattern
When detecting a form being created:
// ❌ WRONG - Uncontrolled form, no validation
function LoginForm() {
const handleSubmit = (e) => {
e.preventDefault()
const email = e.target.email.value // No validation!
const password = e.target.password.value
// Submit...
}
return (
<form onSubmit={handleSubmit}>
<input name="email" type="email" />
<input name="password" type="password" />
<button>Login</button>
</form>
)
}
Step 2: Identify Missing Requirements
Detect:
- ❌ No React Hook Form
- ❌ No Zod validation
- ❌ No TypeScript types
- ❌ No error display
- ❌ No loading state
Step 3: Auto-Fix to Correct Pattern
After (Correct Pattern):
'use client'
import { useForm } from 'react-hook-form'
import { zodResolver } from '@hookform/resolvers/zod'
import * as z from 'zod'
// 1. Define Zod schema
const loginSchema = z.object({
email: z.string().email('Invalid email address'),
password: z.string().min(8, 'Password must be at least 8 characters'),
})
// 2. Infer TypeScript type from schema
type LoginFormData = z.infer<typeof loginSchema>
function LoginForm() {
// 3. Set up React Hook Form with Zod resolver
const {
register,
handleSubmit,
formState: { errors, isSubmitting },
} = useForm<LoginFormData>({
resolver: zodResolver(loginSchema),
})
// 4. Type-safe submit handler
const onSubmit = async (data: LoginFormData) => {
try {
await loginUser(data)
// Handle success
} catch (error) {
// Handle error
}
}
return (
<form onSubmit={handleSubmit(onSubmit)} className="space-y-4">
{/* Email field */}
<div>
<label htmlFor="email" className="block text-sm font-medium">
Email
</label>
<input
{...register('email')}
id="email"
type="email"
className="mt-1 block w-full rounded-md border-gray-300"
aria-invalid={!!errors.email}
aria-describedby={errors.email ? 'email-error' : undefined}
/>
{errors.email && (
<p id="email-error" className="mt-1 text-sm text-red-600" role="alert">
{errors.email.message}
</p>
)}
</div>
{/* Password field */}
<div>
<label htmlFor="password" className="block text-sm font-medium">
Password
</label>
<input
{...register('password')}
id="password"
type="password"
className="mt-1 block w-full rounded-md border-gray-300"
aria-invalid={!!errors.password}
aria-describedby={errors.password ? 'password-error' : undefined}
/>
{errors.password && (
<p id="password-error" className="mt-1 text-sm text-red-600" role="alert">
{errors.password.message}
</p>
)}
</div>
{/* Submit button with loading state */}
<button
type="submit"
disabled={isSubmitting}
className="w-full py-2 px-4 bg-blue-600 text-white rounded hover:bg-blue-700 disabled:opacity-50"
>
{isSubmitting ? 'Logging in...' : 'Login'}
</button>
</form>
)
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 674 lines · 56 tokens per session scan A 80dac708ff9e
react-form-validator is a skill published in the GitHub repository smicolon/ai-kit (7 stars, last pushed 2mo ago), licensed MIT. It adds 56 tokens to every session and 4,491 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
react-form-validator compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| react-form-validatorsmicolon/ai-kit | Skill | 7 | 2mo ago | MIT | A | 56 | Claude Code |
| panel-app-react-vite-creatorPeiiii/nextclaw | Skill | 266 | yesterday | MIT | A | 73 | Claude Code, Codex |
| frontend-code-reviewsangrokjung/claude-forge | Skill | 886 | 2mo ago | MIT | A | 42 | Claude Code |
| design-taste-frontendfigueroaignacio/ignaciofigueroa.dev | Skill | 7 | today | MIT | A | 228 | Claude Code, Codex |
| aio-xstateaiocean/claude-plugins | Skill | 4 | 4d ago | MIT | A | 103 | Claude Code |
| claude-remotion-skillbest-of-ai/best-of-ai | Skill | 790 | today | none | A | 55 | Claude Code, Codex |
| readme-i18nfigueroaignacio/ignaciofigueroa.dev | Skill | 7 | today | MIT | A | 49 | Claude Code, Codex |