mirror of
https://github.com/millionco/react-doctor.git
synced 2026-09-14 20:00:24 +08:00
1.9 KiB
1.9 KiB
React Doctor
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.