react-hook-form-audit

react-hook-form-audit is a skill for Claude Code, Codex from pproenca/dot-skills. It costs 203 tokens per session (1,601 once invoked), scanned A, original, MIT.

A read-only checker for React Hook Form usage in Next.js applications. React Hook Form is a library for managing forms, and the checker finds 16 known usage patterns that can cause bugs or unnecessary re-rendering.

In plain words
What is it for?
Use it to review or lint React Hook Form code, investigate form re-rendering or submission problems, check changes before a pull request, or audit forms after a library upgrade.
Why use it?
It provides a repeatable audit with severity levels and file-and-line references instead of requiring a developer to inspect every form manually. It can also be used as a CI check, where CI is the automated system that tests code before delivery.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review or lint React Hook Form code, investigate form re-rendering or submission problems, check changes before a pull request, or audit forms after a library upgrade.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pproenca/dot-skills/react-hook-form-audit
Install

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.

Any agent
npx skills add pproenca/dot-skills --skill react-hook-form-audit
Clone the repo
git clone --depth 1 https://github.com/pproenca/dot-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for react-hook-form-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/pproenca/dot-skills/react-hook-form-audit/github.svg)](https://agentmods.dev/skills/pproenca/dot-skills/react-hook-form-audit)
Your own site
<a href="https://agentmods.dev/skills/pproenca/dot-skills/react-hook-form-audit"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/react-hook-form-audit/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.

agentmods 80×15 button for react-hook-form-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/pproenca/dot-skills/react-hook-form-audit"><img src="https://agentmods.dev/badge/skills/pproenca/dot-skills/react-hook-form-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 203 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,601 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00203 $0.01601
Opus 5.5 $0.00081 $0.00640
Sonnet 5.5 $0.00041 $0.00320
Haiku 4.5 $0.00020 $0.00160

Measured 3mo ago against content hash e3519672a9be, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

react-hook-form-audit 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 3mo ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/audit.sh, scripts/collect-files.sh, scripts/detect-ast.mjs, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/.curated/react-hook-form-audit/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

React Hook Form Audit for Next.js

Static-analysis audit that detects 16 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-3, 6-10, 12-13, 15-17)
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

Read the full file on GitHub · 113 lines

Changes

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.

  1. 3mo ago First seen · 113 lines · 203 tokens per session scan A e3519672a9be

Subscribe to this mod's changes

react-hook-form-audit is a skill published in the GitHub repository pproenca/dot-skills (231 stars, last pushed 3mo ago), licensed MIT. It adds 203 tokens to every session and 1,601 once invoked, about $0.0008 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-08-30.

Related

react-hook-form-audit compared with skills from other repositories

react-hook-form-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
react-hook-form-auditpproenca/dot-skillsSkill2313mo agoMITA203Claude Code, Codex
recipe-front-reviewshinpr/claude-code-workflowsSkill725todayMITA29Claude Code
review-system-designHoangNguyen0403/agent-skills-standardSkill598yesterdayMITA44Codex
codebase-reviewHoangNguyen0403/agent-skills-standardSkill598yesterdayMITA38Codex
review-ticketHoangNguyen0403/agent-skills-standardSkill598yesterdayMITA28Codex
common-feedback-reporterHoangNguyen0403/agent-skills-standardSkill598yesterdayMITA63Claude Code, Codex
isolating-product-facade-contractsPostHog/posthogSkill41ktodaynoneA76Claude Code, Codex