react-hook-form-audit
Skill14 starsChanged 4 months agoMITView on GitHub
Audit existing React Hook Form code for correctness, accessibility, validation, data ownership, submission, dirty-state, field-array, wizard, controlled-widget, and performance problems. Use when reviewing RHF forms, investigating form bugs or rerenders, or checking an RHF-heavy change. Read-only; use react-hook-form for implementation.
In this repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyze-repoSkill
- architectSkill
- commitSkill
- debugSkill
- frontendSkill
- pr-reviewSkill
- react-hook-formSkill
- reactSkill
- refactorSkill
- researchSkill
- reviewSkill
- specSkill
- testSkill
- auditSkill
- neovimSkill
- shell-envSkill
- learnSkill
- tilSkill
- audit-paraSkill
- capture-receiptSkill
- close-daySkill
- dailySkill
- goalsSkill
- ideasSkill
- ingestSkill
- maintainSkill
- memory-recallSkill
- moneySkill
- process-inboxSkill
- projectSkill
- save-noteSkill
- spot-driftSkill
- vaultSkill
- weekly-reviewSkill
- careerSkill
- check-communicationSkill
- deslopifySkill
- ideationSkill
- prototypeSkill
- standupSkill
- blogSkill
- docsSkill
- talkSkill
- tutorialSkill
- tweet-todaySkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 6 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Read project guidance and detect installed RHF, React, resolver, schema, UI-library, data-fetching, and framework versions.
- Distinctive: line 30
create/edit and server-data ownership model.
- Distinctive: line 31
default-values and dirty baseline.
- Very specific: line 41
Read references/checks.md completely.
- Distinctive: line 55
Use source and types to distinguish a defect from a heuristic smell.
- Very specific: line 88
Do not label watch, Controller, useFormContext, missing defaults, onChange, or useActionState as defects without contextual evidence.
- Distinctive: line 90
Do not claim performance impact without identifying the subscription and rerender boundary or measuring it when measurement is feasible.
- Distinctive: line 92
Do not infer App Router client-boundary requirements in Pages Router or non-Next projects.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
React Hook Form Audit
Audit evidence, not syntax in isolation. A pattern becomes a finding only when its consequence is visible from the code, installed version, or verified runtime behavior.
Process
1. Establish scope and versions
Read project guidance and detect installed RHF, React, resolver, schema, UI-library, data-fetching, and framework versions. Inventory every file that imports RHF directly and follow its form components, schemas, defaults, serializers, mutations, and tests.
Completion: every form in scope has an entry point and its supporting files accounted for.
2. Reconstruct each form contract
For each form, identify:
- form and payload types;
- create/edit and server-data ownership model;
- default-values and dirty baseline;
- native versus controlled adapters;
- validation and error paths;
- conditional, wizard, and field-array behavior;
- submission, success, failure, and reset lifecycle.
Completion: each submitted value can be traced from initialization through serialization.
3. Run the checks
Read references/checks.md completely. Load the build skill's branch reference when the audited
form uses that branch:
../react-hook-form/references/server-data-and-lifecycle.md../react-hook-form/references/adapters-and-accessibility.md../react-hook-form/references/wizards-and-conditionals.md../react-hook-form/references/field-arrays.md../react-hook-form/references/version-8.md../react-hook-form/references/actions-boundary.md
Completion: every applicable check and branch rule was evaluated against every in-scope form.
4. Validate findings
Use source and types to distinguish a defect from a heuristic smell. Run the project's TypeScript typecheck; do not modify source to make it pass. Tests are optional—run focused existing tests when they can prove or disprove a suspected behavior. Prefer silence over speculative findings.
Completion: each reported finding has a concrete consequence, file and line, smallest safe direction, and confidence; unrelated typecheck failures are separated.
5. Report
Order findings by user impact:
- Critical: data loss, invalid submission, inaccessible completion, or broken production flow.
- High: likely correctness/reliability failure in a common path.
- Medium: demonstrated performance, maintainability, or UX cost.
- Low: verified local issue with limited impact.
Use:
[Severity] Short title
File: path:line
Evidence: what the code does and the scenario that exposes it
Impact: concrete user or engineering consequence
Direction: smallest safe correction
Confidence: high | mediumThen list forms reviewed, typecheck command/result, tests run or skipped, and residual risks. If no findings survive validation, say so directly.
Hard boundaries
- Remain read-only; report files are allowed only when the user requests one.
- Do not label
watch,Controller,useFormContext, missing defaults,onChange, oruseActionStateas defects without contextual evidence. - Do not claim performance impact without identifying the subscription and rerender boundary or measuring it when measurement is feasible.
- Do not infer App Router client-boundary requirements in Pages Router or non-Next projects.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

