Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
pproenca avatar

React Hook Form Audit

  • 82 installs
  • 191 repo stars
  • Updated July 24, 2026
  • pproenca/dot-skills

react-hook-form-audit is a Claude Code skill for frontend development. It helps solo builders move faster with AI-assisted coding.

Key points

  • react-hook-form-audit
  • Frontend Development
  • AI-coding skill

React Hook Form Audit by the numbers

  • 82 all-time installs (skills.sh)
  • +6 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #1,101 of 2,245 Frontend Development skills by installs in the Skillselion catalog
  • Data as of Aug 4, 2026 (Skillselion catalog sync)
npx skills add https://github.com/pproenca/dot-skills --skill react-hook-form-audit

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs82
repo stars191
Last updatedJuly 24, 2026
Repositorypproenca/dot-skills

How do I helps with frontend development tasks during ai-assisted development?

Helps with frontend development tasks during AI-assisted development.

Who is it for?

Best when you're working on frontend development and need structured help with react-hook-form-audit.

Skip if: Teams with no frontend development needs, or anyone wanting a generic chat assistant without this specific workflow.

When should I use this skill?

When you need to helps with frontend development tasks during ai-assisted development, or when react-hook-form-audit is a claude code skill for frontend development. it helps solo builders move faster with ai-assisted coding.

What you get

Structured output aligned to react-hook-form-audit: react-hook-form-audit; Frontend Development; AI-coding skill.

Files

SKILL.mdMarkdownGitHub ↗

React Hook Form Audit for Next.js

Static-analysis audit that detects 15 React Hook Form anti-patterns in Next.js App Router codebases. Combines ripgrep (fast pass for regex-detectable rules) with ts-morph (AST pass for structural rules). Outputs a markdown report grouped by severity, with file:line references and links back to the companion react-hook-form distillation skill.

When to Apply

  • User asks to audit, review, or lint React Hook Form usage in a Next.js project
  • User reports symptoms like "the form re-renders too much" or "we have RHF bugs we can't pin down"
  • Before a PR review of new RHF-heavy code
  • As a CI gate (exit code 1 on CRITICAL/HIGH findings)
  • After upgrading react-hook-form, to catch advice that drifted

Tool Requirements

  • rg (ripgrep) — install via brew install ripgrep or your package manager
  • node ≥ 18 with npm — used to run the AST detectors via ts-morph
  • jq — for JSON munging in the orchestrator

ts-morph is installed on first run into scripts/node_modules/ (one-time, ~30s). The skill never touches the audited project's node_modules.

Risk Level

Read-only. The skill reads source files and writes one markdown report (plus an optional JSON sidecar) to the audited project root. No git operations, no package mutations, no network calls.

Workflow Overview

1. detect-project.sh   Verify Next.js + react-hook-form in package.json
2. collect-files.sh    Ripgrep for "use client" files importing RHF
3. detect-fast.sh      Ripgrep detectors (rules 5, 11, 14)
4. detect-ast.mjs      ts-morph detectors (rules 1-4, 6-10, 12-13, 15)
5. render-report.mjs   Render markdown + JSON; print summary; exit 0/1

See `references/workflow.md` for the per-step contract, error handling, and CI integration.

Usage

# Audit the current directory
bash scripts/audit.sh

# Audit a specific project
bash scripts/audit.sh --project /path/to/nextjs-app

# Preview without writing the report file
bash scripts/audit.sh --dry-run

Exit codes:

  • 0 — no CRITICAL or HIGH findings
  • 1 — CRITICAL or HIGH findings exist
  • 2 — environment or configuration error (missing tool, invalid project)

Detector Catalog

15 detectors across 4 severities. See `references/detectors.md` for per-rule pattern, AST shape, false-positive notes, and the line of advice each detector enforces.

IDSeverityWhat it catches
01CRITICALwatch() in same component as useForm()
02CRITICALwatch() with no args (subscribes to all fields)
03CRITICALuseForm() without defaultValues
04CRITICALuseEffect depends on the useForm return
05CRITICALRHF imported in a non-"use client" file
06HIGH<Controller> inlined inside useForm() parent
07HIGHAsync submit handler without try/catch
08HIGHValidation schema defined inside the component
09HIGHSubmit calls fetch/axios but never setError('root.*')
10HIGHRHF mixed with useActionState in same component
11MEDIUMmode: 'onChange' without explanatory comment
12MEDIUMregister({ disabled: <state> }) for visual disable
13MEDIUMuseFieldArray map missing field.id as key
14LOWreValidateMode: 'onBlur' (now demoted advice)
15LOWuseFormContext() usage (manual review)

How to Use

1. Confirm project is a Next.js App Router app with react-hook-form installed (detect-project.sh will check) 2. Run bash scripts/audit.sh [--project <path>] 3. Read the generated .rhf-audit-report.md in the project root 4. For each finding, follow the link to the companion distillation rule for the fix 5. After fixing, re-run to verify a clean audit

If a detector is too noisy in your project, narrow include_globs / widen exclude_globs in config.json rather than disabling detectors — the catalog is small enough that each finding should be either a real issue or a documented exception worth a comment.

Setup

The skill ships with sensible defaults in config.json. On first run, audit.sh will install ts-morph into scripts/node_modules/. Override settings by editing config.json:

  • project_root — absolute path to the project (defaults to current directory)
  • report_path / json_report_path — output filenames (relative to project root)
  • rule_link_base — base URL or path for companion-rule links
  • include_globs / exclude_globs — narrow the scan surface

Reference Files

  • `references/workflow.md` — detailed workflow, error handling, CI integration
  • `references/detectors.md` — per-detector spec, AST shape, false-positive notes
  • `gotchas.md` — accumulated failure modes (append-only)

Related Skills

  • react-hook-form — the companion distillation skill with the 45 rules this auditor enforces. Findings link directly to its reference files.
  • react-19 — for Server Action / useActionState patterns the audit explicitly does NOT cover

Related skills

FAQ

What does react-hook-form-audit do?

react-hook-form-audit is a Claude Code skill for frontend development. It helps developers move faster with AI-assisted coding.

When should I use react-hook-form-audit?

When you need to helps with frontend development tasks during ai-assisted development, or when react-hook-form-audit is a claude code skill for frontend development. it helps developers move faster with ai-assisted coding.

What are the main capabilities?

react-hook-form-audit; Frontend Development; AI-coding skill.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.