react-doctor
Run Core's pinned, advisory React Doctor audit after React or Next.js edits; review the findings in the files you changed, fix confirmed correctness…
by Asymmetric-al★ 354 GitHub stars
Install react-doctor in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
React Doctor in Core
Read docs/guides/development/react-doctor.md before auditing. It owns the commands, applicable-rule profile, generated boundaries, triage rules, accepted patterns, and verification language. The audit is advisory: it has no acceptance target, and no hook or CI check runs it.
- Inspect the owning source, tests, package/framework contracts, and nearest
AGENTS.md. Preserve public APIs, Base UI/base-maia, financial and permission behavior, stable drafts, and existing View Transition owners. - After React edits, run
bun run react-doctor:audit -- --changed-since=origin/develop, or name the branch's actual base. It uses React Doctor 0.9.18's public CLI on a disposable physical source copy and prints its evidence directory. Readsummary.mdfirst, thenfindings.jsonand any target's JSON or stderr you need. Exit 1 withReact Doctor audit evidence is unavailablemeans the scan did not complete: report that, never a result. - Triage the findings listed for your changed files. Prioritize demonstrated correctness and accessibility defects, then bounded composition, design, and performance improvements. Repair a confirmed defect at its owner with a focused behavior test written first, keeping pending-focus, hydration, stale-response, and financial assertions, or open an issue that tracks it.
- Review each suspected false positive against complete source and actual consumers. A false positive or accepted pattern needs no record: leave it in the report. Never disable or narrow a rule, add an inline disable or blanket ignore, or manufacture a consumer to hide a finding. Check the guide's accepted patterns before acting on an
unused-dependencyfinding. - Run focused native checks after each batch and Chromium/axe where controls or layouts change. Use
bun run test:react-cleanupfor the isolated synthetic real-component suite; disclose its authenticated/provider limits. - For a cleanup batch, finish with affected builds, formatting, workspace-aware lint/typecheck,
bunx --no-install vitest run --coverage --maxWorkers=4, and the changed-files audit again. Runbun run react-doctor:rawwhen the fully unsuppressed inventory matters. - Report repairs and tracking issues, the findings that remain in your changed files, test/build/browser results, and material limits. Do not call a completed audit a pass. Leave work local and uncommitted unless publication is separately authorized.
Scoring, sharing, telemetry, and network-backed supply-chain checks remain disabled. Do not request a numeric score or call the result a dependency-security certification. The classic react-in-jsx-scope requirement is disabled in the applicable profile because Next.js uses automatic JSX; the raw inventory re-enables it for transparency. Never add unnecessary imports to satisfy that obsolete requirement.
For interactive diagnostics only, bun run react-doctor:first-party -- --full --offline --fail-on none retains legacy argument compatibility. It scans the live checkout and writes no summary. No private scanner API is part of the permanent workflow.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the react-doctor skill do?
Run Core's pinned, advisory React Doctor audit after React or Next.js edits; review the findings in the files you changed, fix confirmed correctness, accessibility, composition, performance, and design defects with tests, and report the rest. Use when the user mentions React Doctor or requests React diagnostics or cleanup.
How do I install the react-doctor skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the react-doctor skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…