name: react-doctor description: Run the repo's React Doctor diff check after React, Next.js, JSX, TSX, hook, routing, or UI state changes. Use when reviewing React work, finishing a feature, fixing bugs, or checking changed files for security, performance, correctness, and architecture issues.
React Doctor
Run the repo-local React Doctor diff check after React or Next.js changes to catch security, performance, correctness, and architecture issues early.
Workflow
Confirm the touched files include React, Next.js, JSX, TSX, hook, routing, or UI state behavior.
Run the repo wrapper command from the repository root:
6529 run react-doctor:diffFix errors and high-confidence diagnostics first.
Re-run the command after React changes made in response to findings.
Guardrails
- Use the repo-local
6529command path. Do not runnpx react-doctordirectly in this repository. - If the command cannot run, report the reason and perform a focused manual review of the touched React code.
- Do not claim the React Doctor score improved unless the command was re-run successfully.