Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
millionco avatar

React Doctor

  • 12k installs
  • 14.3k repo stars
  • Updated August 5, 2026
  • millionco/react-doctor

A CLI scanner that analyzes React codebases for security, performance, correctness, and architecture issues, returning a health score and actionable diagnostics.

About

React Doctor is a CLI tool that scans React codebases for security, performance, correctness, and architecture violations, outputting a 0-100 health score. Developers run it before committing code to detect regressions via `--scope changed`, or perform full codebase cleanup with `--scope full`. It integrates a local-triage workflow that fetches a canonical playbook from https://www.react.doctor/prompts/react-doctor-agent.md, enabling rule-by-rule fixes with reviewer-tested recipes. Users can configure rule behavior via CLI flags or `doctor.config.*` / `package.json#reactDoctor` without reinstalling.

  • Scans React code for security, performance, correctness, and architecture issues with a 0-100 health score
  • Regression detection via --scope changed to block regressions before commit
  • Fetches canonical local-triage playbook and per-rule fix recipes from react.doctor/prompts
  • Configure rules via CLI (disable, set, category, ignore-tag) or config file without reinstall
  • Outputs verbose mode with affected files and line numbers per rule

React Doctor by the numbers

  • 11,968 all-time installs (skills.sh)
  • +212 installs in the week ending Aug 5, 2026 (Skillselion tracking)
  • Ranked #70 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

react-doctor capabilities & compatibility

Capabilities
scan react code for security, performance, corre · calculate regression via scope changed · fetch canonical playbook from react.doctor/promp · configure rules via cli or config file · output health score and verbose diagnostics
Use cases
code review · testing · refactoring
Platforms
macOS · Windows · Linux · WSL
Runs
Runs locally
Pricing
Free
From the docs

What react-doctor says it does

Scans React codebases for security, performance, correctness, and architecture issues. Outputs a 0–100 health score.
SKILL.md#heading
Run `npx react-doctor@latest --verbose --scope changed` and check the score did not regress.
SKILL.md#after-making-react-code-changes
npx skills add https://github.com/millionco/react-doctor --skill react-doctor

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs12k
repo stars14.3k
Security audit2 / 3 scanners passed
Last updatedAugust 5, 2026
Repositorymillionco/react-doctor

What it does

Scan React codebases for security, performance, and architecture issues before committing, with regression detection and health scoring.

Who is it for?

Pre-commit testing, regression detection, full codebase cleanup, and continuous rule-based code quality enforcement in React projects.

Skip if: Production deployment validation, runtime error detection, or non-React codebases.

When should I use this skill?

Finishing a feature, fixing a bug, before committing React code, or when user types /doctor or asks for scan/triage/cleanup.

What you get

Developers identify and fix security, performance, and architecture issues early, with canonical, reviewer-tested fix recipes.

  • health score report
  • lint and a11y diagnostics
  • bundle and architecture findings

By the numbers

  • Version 1.2.0
  • Health score range: 0-100
  • Supports three scope modes: full (default), changed, lines

Files

SKILL.mdMarkdownGitHub ↗

React Doctor

Scans React codebases for security, performance, correctness, and architecture issues. Outputs a 0–100 health score.

After making React code changes:

Run npx react-doctor@latest --verbose --scope changed and check the score did not regress.

If the score dropped, fix the regressions before committing.

For general cleanup or code improvement:

Run npx react-doctor@latest --verbose (the default --scope full) to scan the full codebase. Fix issues by severity — errors first, then warnings.

/doctor — full local triage workflow

When the user types /doctor, says "run react doctor", or asks for a full triage / cleanup pass (not just a regression check), fetch the canonical local-triage playbook and follow every step in it:

curl --fail --silent --show-error \
  --header 'Cache-Control: no-cache' \
  https://www.react.doctor/prompts/react-doctor-agent.md

The playbook is the single source of truth — a scan → filter → triage → fix → validate loop that edits the working tree directly (never commits, never opens PRs). Updating the prompt at its source updates every agent on its next fetch — no skill reinstall needed.

Pair it with the matching per-rule prompts at https://www.react.doctor/prompts/rules/<plugin>/<rule>.md (fetched on demand inside the playbook) so each fix uses the canonical, reviewer-tested recipe.

Configuring or explaining rules

When the user wants to understand a rule, disagrees with one, or wants to disable / tune which rules run (not fix code), read references/explain.md and follow it. Start with npx react-doctor@latest rules explain <rule>, then apply the narrowest control via npx react-doctor@latest rules disable|set|category|ignore-tag …, which edits your doctor.config.* (or package.json#reactDoctor).

Command

npx react-doctor@latest --verbose --scope changed
FlagPurpose
.Scan current directory
--verboseShow affected files and line numbers per rule
--scope changedOnly report issues introduced vs the base branch (default: full)
--scope linesOnly report issues on the changed lines
--scoreOutput only the numeric score

Related skills

How it compares

Use react-doctor for scored React diff gates; use simplify for behavior-safe readability cleanup without automated metrics.

FAQ

What does the health score measure?

A 0-100 score aggregating security, performance, correctness, and architecture rule violations in the React codebase.

How do I prevent regressions from being committed?

Run `npx react-doctor@latest --verbose --scope changed` and fix issues before committing; the playbook loops scan → filter → triage → fix → validate.

Can I customize which rules run?

Yes, via `npx react-doctor@latest rules disable|set|category|ignore-tag` to edit doctor.config.* or package.json#reactDoctor; no reinstall needed.

Is React Doctor safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Testing & QAtestingfrontend

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.