2026-02-17 01:17:01 -08:00
fix
2026-02-16 00:47:36 -08:00
fix
2026-02-13 04:09:05 -08:00
2026-02-13 04:08:01 -08:00
2026-02-13 04:08:01 -08:00
2026-02-13 01:02:13 -08:00
2026-02-16 05:55:14 -08:00
2026-02-13 04:08:01 -08:00

React Doctor

version downloads

Let coding agents diagnose and fix your React code.

One command scans your codebase for security, performance, correctness, and architecture issues, then outputs a 0–100 score with actionable diagnostics.

See it in action →

Install

Run this at your project root:

npx -y react-doctor@latest .

Use --verbose to see affected files and line numbers:

npx -y react-doctor@latest . --verbose

Install as a skill

Add React Doctor's rules as a skill for your coding agent:

npx skills add aidenybai/react-doctor

This gives agents like Cursor, Claude Code, Copilot, and others access to all 47+ React best practice rules. The CLI will also prompt to install the skill on first run.

Options

Usage: react-doctor [directory] [options]

Options:
  -v, --version     display the version number
  --no-lint         skip linting
  --no-dead-code    skip dead code detection
  --verbose         show file details per rule
  --score           output only the score
  -y, --yes         skip prompts, scan all workspace projects
  --project <name>  select workspace project (comma-separated for multiple)
  -h, --help        display help for command

Contributing

Want to contribute? Check out the codebase and submit a PR.

git clone https://github.com/aidenybai/react-doctor
cd react-doctor
pnpm install
pnpm -r run build

Run locally:

node packages/react-doctor/dist/cli.js /path/to/your/react-project

License

React Doctor is MIT-licensed open-source software.

S
Description
react-doctor: Use when finishing a feature, fixing a bug, before committing React code, or when the user types /doctor, asks to scan, triage, or clean up React…; improve-react: Survey a whole React codebase as a senior React engineer, using React Doctor's scan as evidence, then produce a prioritized audit and self-contained…
Readme MIT 136 MiB
Languages
TypeScript 98.9%
JavaScript 1%