whatisgithub

What is react-doctor?

millionco/react-doctor — explained in plain English

Analysis updated 2026-05-18

9,255TypeScriptAudience · developerComplexity · 2/5LicenseSetup · easy

In one sentence

React Doctor is a command-line linter that scans React codebases for mistakes in state, effects, performance, security, and accessibility, and can teach AI coding agents to avoid those same mistakes.

Mindmap

mindmap
  root((react-doctor))
    What it catches
      State and effects
      Performance issues
      Security problems
      Accessibility
    How to run
      npx quick audit
      Agent skill install
      CI integration
    Frameworks
      Next.js and Vite
      React Native and Expo
      TanStack
    Agent Support
      Claude Code
      Cursor and Codex
    Config
      Custom rules
      CI gate settings
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Run a one-time audit of your React project to find bugs related to state, effects, and performance before shipping.

USE CASE 2

Install the skill into a coding agent like Claude Code or Cursor so it avoids common React mistakes when writing code for you.

USE CASE 3

Add automated PR review to a GitHub Actions workflow so every pull request gets checked for new React issues.

USE CASE 4

Scan a Next.js or React Native project for accessibility or security problems introduced by AI-generated code.

What is it built with?

TypeScriptNode.jsReact

How does it compare?

millionco/react-doctorhighlight/highlightmularahul/keyviz
Stars9,2559,2639,265
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatemoderate
Complexity2/53/52/5
Audiencedeveloperops devopsgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min
Use, modify, and distribute freely including in commercial products, as long as you include the MIT license notice.

So what is it?

React Doctor is a command-line tool that scans React codebases for common mistakes and problems. It was built with AI coding agents in mind, since agents that write React code often introduce subtle errors related to state management, side effects, performance, application structure, security, and accessibility. The tool checks for these issues deterministically, meaning it applies consistent rules rather than making judgment calls. The most basic use is a one-time audit. Running a single command in your project folder scans the codebase and produces a report of issues found. No installation is required for this quick start because it runs through npx. Once you have seen the results, you can install a companion skill that teaches your coding agent, such as Claude Code or Cursor, about the patterns to avoid so it makes fewer of those mistakes going forward. React Doctor also integrates into automated pull request workflows. A setup command adds a configuration file to your repository that runs the tool on every pull request and posts a summary comment with only the new issues introduced by that specific change, not every pre-existing problem in the codebase. This keeps the feedback focused and avoids noise. GitHub Actions is fully supported, and there is a gate-only configuration for GitLab CI. The tool works across common React environments including Next.js, Vite, TanStack, React Native, and Expo. Rules can be customized through a configuration file. By default, the CLI sends anonymous usage data such as your framework version and which rules triggered to help the developers prioritize work, but this can be turned off with a flag. The project is MIT licensed.

Copy-paste prompts

Prompt 1
I ran react-doctor on my codebase and got a warning about 'no-array-index-as-key'. Explain what this rule catches and show me how to fix the pattern in my list-rendering code.
Prompt 2
I'm using Claude Code as my coding agent. How do I install the react-doctor skill so Claude avoids common React mistakes when writing code for me?
Prompt 3
Set up react-doctor in my GitHub Actions workflow so it runs on every pull request and posts a comment with only the new issues introduced by that PR.
Prompt 4
I want to configure react-doctor to skip accessibility rules but keep performance and security checks. How do I write the doctor.config.ts for that?

Frequently asked questions

What is react-doctor?

React Doctor is a command-line linter that scans React codebases for mistakes in state, effects, performance, security, and accessibility, and can teach AI coding agents to avoid those same mistakes.

What language is react-doctor written in?

Mainly TypeScript. The stack also includes TypeScript, Node.js, React.

What license does react-doctor use?

Use, modify, and distribute freely including in commercial products, as long as you include the MIT license notice.

How hard is react-doctor to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is react-doctor for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.