mirror of
https://github.com/millionco/react-doctor.git
synced 2026-09-14 20:00:24 +08:00
v0.1.0
Generated with [Ami](https://ami.dev) Co-Authored-By: Ami <noreply@ami.dev>
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.
Description
react-doctor: Use when finishing a feature, fixing a bug, before committing React code, or when the user types
Readme
MIT
136 MiB
/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…
Languages
TypeScript
98.9%
JavaScript
1%