React Doctor skills: scan, audit and speed up React apps
millionco/react-doctor
Your AI coding assistant gets a checkup tool for React apps. It runs the React Doctor scanner, which gives your code a health score from 0 to 100 and lists problems with bugs, speed, accessibility and security. The assistant then fixes them, writes a ranked plan of fixes for later, or measures a slow click in a real browser.
Pack description by its author: “Your AI coding assistant gets a checkup tool for React apps. It runs the React Doctor scanner, which gives your code a health score from 0 to 100 and lists problems with bugs, speed, accessibility and security. The assistant then fixes them, writes a ranked plan of fixes for later, or measures a slow click in a real browser.”
Software engineeringCommands you run when neededGives your assistant new abilities with scripts
1. Changes your files
Skills that write or edit files: react-doctor, improve-threejs.
github.com/millionco/react-doctor/blob/84ad0c8/2. Runs code on your machine
Every scan: npx downloads and runs react-doctor@latest from npm; it reads the project and prints a score and findings. /doctor, improve-react plans, improve-threejs fixes: curl or fetch of https://www.react.doctor/prompts/react-doctor-agent.md and per-rule pages under /prompts/rules/; the assistant follows the downloaded text.
github.com/millionco/react-doctor/blob/84ad0c8/3. Sends data
The /doctor, audit and 3D workflows follow instructions downloaded from react.doctor at run time, not text pinned in this repo, and each scan runs the latest npm release. Read the downloaded playbook if you want to know exactly what your assistant will do. Speed recordings can hold private app data: keep them local.
github.com/millionco/react-doctor/blob/84ad0c8/4. Commercial use
Free to use on commercial projects; selling it or offering it as a paid hosted service whose value comes from the software needs written permission
github.com/millionco/react-doctor/blob/84ad0c8/Checked against the pack's files at commit 84ad0c8, on Nov 3, 2026. Tap a verdict to see its source.How we checkedReport an error
The pack has changed since AgentGid checked it on Nov 3, 2026. Some details may be out of date.
Good for you if
- You build a React, Next.js, Vite, React Native or Expo app with an AI coding assistant
- You want a check after each feature or bug fix that the code did not get worse
- You want a ranked list of what to improve in an app you inherited, without changes yet
- Part of your app feels slow and you want measured proof of why
Probably not for you if
- Your project does not use React
- You do not want a tool to download and run from the internet on each scan
What its answer looks like
The performance report format
## Flow tested tested_url, build_type, and exact_interaction ## Verdict one_evidence_backed_paragraph ## Evidence | Signal | Measurement | Interpretation | ## Findings 1. path/to/component.tsx:42: measured_problem, evidence, and smallest_fix ## Limits capture_warnings, missing_support, or environmental_caveats
The skill's own example, from skills/performance/SKILL.md. More examples
What you'll notice
- A 0 to 100 health score after scans, with problems listed by file and line
- On /doctor, the assistant downloads the maker's current step-by-step guide and edits your files directly
- The audit skill writes numbered plan files into a plans/ folder and leaves your code alone
- For speed checks, a separate Chrome window opens and purple outlines flash over parts of the page as they redraw
What you need
- Claude Code, Cursor, Codex, OpenCode
- Free
- One command in your project folder: npx react-doctor@latest install
- Needs Node.js. The scanner sends crash reports and anonymous usage data unless you turn it off.
Words on this page
- Skill
- A set of written instructions your AI assistant follows. Installing one is like giving it a playbook.
- Slash command
- A command you type in the assistant's chat, starting with /.
- Hook
- A small program the assistant runs by itself at set moments, for example when a session starts.
- CLI
- A program you run by typing commands in a terminal.
| Repository | millionco/react-doctor · website |
|---|---|
| GitHub stars | 15,177 (the React Doctor repository: these skills ship inside the product, so the stars are the product's) |
| Skills | 16 (16 SKILL.md in the repo, 4 in skills/) · 1 with scripts |
| Category | Software engineering |
| Last updated | Nov 22, 2026 · card checked Nov 3, 2026 at commit 84ad0c8 |
| Install counts | millionco/react-doctor on skills.sh, Vercel's skills directory, which shows installs and security audits per skill |
millionco/react-doctor popularity over time
What React Doctor skills does
- After a change: scan only what changed and fix anything that lowered the score before saving the work
- General cleanup: scan the whole project and fix errors first, then warnings
- /doctor: download the maker's live triage guide and follow its scan, filter, fix and check loop on your files
- Rules: explain why a rule fired and switch off or tune it in doctor.config with the narrowest setting
- improve-react: read-only audit in five groups (bugs, speed, accessibility, security, structure) and plans for another agent to carry out
- performance: record one slow interaction in Chrome and report only what the recording proves
- improve-threejs: audit and fix 3D scenes (Three.js, React Three Fiber) for per-frame waste, memory leaks and visual defects
From the pack's SKILL.md files, summarised by AgentGid.
The 4 skills, explained
react-doctor
Scans your React code, scores it and fixes what it finds
You give
- Nothing for a quick check; for /doctor a request for a full cleanup pass
- Optionally a rule you disagree with or want turned off
You get
- A 0 to 100 health score
- Problems with file and line, errors before warnings
- Fixes made in your files (no saves to history, no pull requests)
- Rule changes written to doctor.config or package.json
improve-react
Audits the whole app and writes ranked fix plans, without touching your code
You give
- A whole React project
- Optionally one focus: performance, accessibility, security, bugs or maintainability
- Your pick of which findings become plans
You get
- One table of checked findings ordered by impact (high, medium, low)
- 2 to 4 missed opportunities the scanner does not flag
- One plan file per chosen finding in plans/, with exact code, steps, limits and checks
- plans/README.md with order and status
performance
Measures one slow action in a real browser and explains what makes it slow
You give
- The page address
- The exact steps that feel slow
- What should happen
- Whether you need to be signed in
You get
- Report: flow tested, verdict, evidence table, findings with file and line, limits
- Before and after medians of three runs each when you ask for a fix check
improve-threejs
Finds and fixes speed, memory and look problems in 3D web scenes
You give
- A Three.js or React Three Fiber project
- A running dev server and browser, for the visual check
You get
- Findings ranked by how often the code runs
- A 10-row visual check (geometry, textures, shadows, camera, resize)
- Fixes in severity order, then a re-scan and re-check
See it in action
The skill defines what its answer looks like. Its own example:
## Flow tested tested_url, build_type, and exact_interaction ## Verdict one_evidence_backed_paragraph ## Evidence | Signal | Measurement | Interpretation | ## Findings 1. path/to/component.tsx:42: measured_problem, evidence, and smallest_fix ## Limits capture_warnings, missing_support, or environmental_caveats
The skill defines what its answer looks like. Its own example:
Sections: Status, Commit, Severity, Category, Rule, Estimated scope; then Problem (current code with file:line), Target (exact end code), Repo conventions, Steps, Boundaries, Verification. See skills/improve-react/PLAN-TEMPLATE.md.
When to reach for it
| You want | Use |
|---|---|
| A quick check that your last change did not make things worse | npx react-doctor@latest --verbose --scope changed (the react-doctor skill does this after React edits) |
| A full cleanup pass on your files | /doctor |
| A design and accessibility check of the UI only | npx react-doctor@latest design --verbose |
| A ranked roadmap of fixes without code changes | improve-react ("audit this codebase") |
| To know why one click or page is slow | /performance |
| A rule is too noisy | "turn this rule off" (rules explain, then rules disable / set / ignore-tag) |
| A 3D scene drops frames or looks wrong | improve-threejs |
Skills in millionco/react-doctor
| Skill | In plain words | Changes files? | What it does (author) |
|---|---|---|---|
| improve-react | Audits the whole app and writes ranked fix plans, without touching your code | No | 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 implementation plans for other agents (or cheaper models) to execute. Read-only on source code — it plans improvements, it does not apply them. Use…npx skills add millionco/react-doctor --skill improve-react |
| improve-threejs | Finds and fixes speed, memory and look problems in 3D web scenes | Yes | Audit and fix Three.js and React Three Fiber apps for frame-loop performance, GPU memory leaks, scene-graph correctness, and visual defects like z-fighting, shadow acne, wrong color space, and broken resize handling. Uses React Doctor as the scanning engine plus a visual rubric checked against…npx skills add millionco/react-doctor --skill improve-threejs |
performance/performance (only when you type it) |
Measures one slow action in a real browser and explains what makes it slow | No | Diagnose React runtime performance with React Doctor traces, live render outlines, Long Animation Frames, interaction timing, and component render evidence. Use when invoked as `/performance` for a slow interaction, unexpected re-renders, or a measured before-and-after comparison.npx skills add millionco/react-doctor --skill performance |
react-doctor/doctor, or "run react doctor"; also starts by itself after React code changes |
Scans your React code, scores it and fixes what it finds | Yes | 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 diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the…npx skills add millionco/react-doctor --skill react-doctor |
| benchmark-fp-fn-audit | — | — | Audit React Doctor against ReactBench or similar diagnostic benchmark corpora for confirmed false positives, false negatives, taxonomy gaps, and verifier artifacts. Use when analyzing rd.log, rd-before.json, rd-after.json, model.patch, result.json, reward/test logs, rule distributions, or when…npx skills add millionco/react-doctor --skill benchmark-fp-fn-audit |
| deslop | — | — | Simplify and refine recently modified code while preserving functionality. Use when asked to "deslop", "clean up code", "simplify code", or after making changes that could benefit from refinement.npx skills add millionco/react-doctor --skill deslop |
| find-similar-functions | — | — | Use truffler to find similar or pre-existing JavaScript/TypeScript symbols before implementing new code, especially helpers, utilities, parsers, formatters, scanners, fuzzy matchers, and other reusable functions. Agents should use this skill whenever they are about to add or refactor functionality…npx skills add millionco/react-doctor --skill find-similar-functions |
| fuzz | — | — | Fuzz React Doctor rules for crashes, slowness, false positives, and mutation-sensitive diagnostics with @react-doctor/fuzz. Use after rule tests pass, when investigating a fuzz finding, or whenever an eval, review, or user report confirms a new false positive.npx skills add millionco/react-doctor --skill fuzz |
| product-thinking | — | — | Think like a product manager before changing React Doctor's public surface — CLI commands/flags, the 0–100 score, config (doctor.config.*), the JSON report schema, package APIs (inspect()/diagnose()), the GitHub Action, the website, and the canonical prompts. A step-by-step runbook for a…npx skills add millionco/react-doctor --skill product-thinking |
| rde-eval | — | — | Run a targeted local React Doctor Evals loop against an uncommitted rule change. Use after focused rule tests pass, while inspecting real open-source hits, or when rule-validate needs local false-positive evidence before pull request parity.npx skills add millionco/react-doctor --skill rde-eval |
| rule-research | — | — | Define a precise React Doctor rule contract before implementation. Use when validating a rule idea, collecting official or open-source evidence, identifying false-positive traps, choosing detector precision, or setting first-version boundaries.npx skills add millionco/react-doctor --skill rule-research |
| rule-validate | — | — | Validate an implemented React Doctor rule before merge. Use after focused tests pass to review detector correctness, inspect open-source hits, run pull request parity, add regression coverage, prepare a changeset, write pull request copy, or address review findings.npx skills add millionco/react-doctor --skill rule-validate |
| rule-writing | — | — | Implement React Doctor rules from a validated contract. Use when writing oxlint rules, planning syntax or control-flow detection, designing adversarial tests, reusing syntax tree utilities, or updating rule registration.npx skills add millionco/react-doctor --skill rule-writing |
| run-parity | — | — | Compare React Doctor diagnostics for a GitHub pull request (PR) with Vercel Sandbox. Use when asked to run parity, check a PR for diagnostic regressions, compare a PR with its base, or report added and removed diagnostics. has scriptsnpx skills add millionco/react-doctor --skill run-parity |
| ship | — | — | Take the current branch from done-coding to merge-ready in one pass — review the diff against AGENTS.md, deslop, commit and push, open a PR using rule-validate's PR copy, then monitor checks and reviews until mergeable. Use when the user types `/ship` or asks to ship, finalize, or land the current…npx skills add millionco/react-doctor --skill ship |
| writing-guidelines | — | — | Review docs/prose for Writing Guidelines compliance. Use when asked to "review my docs", "check writing style", "audit prose", "review docs voice and tone", or "check this page against the writing handbook".npx skills add millionco/react-doctor --skill writing-guidelines |
The author's descriptions come from each skill's SKILL.md; the plain-words column is AgentGid's.
Good to know before you install
- On /doctor and in the audit and 3D skills, the assistant downloads instructions from react.doctor at run time and follows them. The skill says itself that changing that page changes every agent's behaviour on the next download, so what runs is not fixed by this commit.
- Every scan runs the latest React Doctor package from npm (react-doctor@latest), so the scanner version changes over time.
- The scanner sends crash reports and anonymous usage data by default; --no-telemetry or REACT_DOCTOR_NO_TELEMETRY turns it off.
- The installer pre-selects a git pre-commit check, and with --yes installs it without asking. Agent hooks for Claude Code or Cursor are off unless you pick them.
- Speed recordings can contain page addresses, file paths and app behaviour; the skills tell the assistant to keep them local and never ask for your cookies.
- The license is MIT with two limits: no use as AI training or evaluation data and no reselling it as a hosted service without permission.
Before you start
Works in
- Claude Code: skills folder via installer (optional Stop hook)
- Cursor: skills folder via installer
- Codex: skills folder via installer
- OpenCode: skills folder via installer
- Gemini CLI, GitHub Copilot, Factory Droid, Pi: skills folder via installer (detected on PATH)
You will need
- Node.js 20.19+ or 22.13+: Every scan runs through npx
- Google Chrome: Runtime speed traces open an isolated system Chrome profile
- An interactive terminal: The trace recording waits for Enter
Steps only you can do
- In the interactive installer, pick which coding agents get the skill and which optional setup to add (pre-commit check, agent hooks, CI workflow) (packages/react-doctor/README.md (Install for agents))
Then: The skills are in place and the agent can run scans - For a speed check, do the slow interaction yourself in the Chrome window React Doctor opens, then press Enter (skills/performance/SKILL.md (Record the trace))
Then: The agent reads the trace summary and reports findings - For a signed-in page, start Chrome with remote debugging in a dedicated profile, sign in and close other tabs (skills/performance/SKILL.md (Record the trace))
Then: The agent connects with --cdp and records the trace without asking for cookies
Mistakes to avoid
Ask improve-react to fix the problems it finds
Use improve-react for the audit and plans, then run a plan with any agent or use /doctor to fix files
improve-react only writes plan files and leaves source code aloneExpect the performance skill to start by itself when the app feels slow
Type /performance and describe the page and the exact slow steps
The performance skill is set so the model does not call it on its ownLet the agent start a runtime trace without a URL
Always pass the explicit URL to the scan command
Without a URL the scan asks the person to pick an app and an automated run waits for inputCompare a new scan with an old saved report made by an older react-doctor@latest
Make both reports with the same version and rules, or compare against a Git base instead
Every scan pulls the latest npm release, so versions can differ between the base and the new reportRun the installer with --yes expecting only the skills
Run it interactively and pick the agents and optional setup you want
With --yes the installer also adds a GitHub Actions workflow and the git pre-commit check
Which one to pick
| If you need | Pick |
|---|---|
| You want a scanner score for a React app plus fixes, audits and runtime traces | This pack |
| You want page quality checks based on Lighthouse and Core Web Vitals for any web stack | addyosmani/web-quality-skills |
| You want a design and WCAG accessibility review of UI code with concrete fixes | rams-design/rams-plugin |
| You want JavaScript snippets that measure and debug web performance in the browser | nucliweb/webperf-snippets |
Works well with
- react-scan: Shows which React components re-render and why, next to React Doctor's static scan
- chrome-devtools-mcp: Lets the agent inspect Chrome through DevTools when a speed finding needs more evidence
- react-three: improve-threejs audits React Three Fiber scenes
- claude-code: The installer can add an agent hook that scans after Claude Code finishes
May I use it like this?
| Use | Answer | Condition |
|---|---|---|
| In a commercial app | With conditions | Free to use on commercial projects; selling it or offering it as a paid hosted service whose value comes from the software needs written permission |
| Work for clients | Yes | Using the tool on client code is allowed; keep the notice if you hand over copies |
| Passing the files on | With conditions | Keep the copyright and permission notice; no reselling as a product without permission |
| AI training | No | Training, fine-tuning or evaluation use needs prior written permission |
What leaves your machine
- Crash reports from the React Doctor command-line tool → Sentry (the maker's crash reporting), Every run of the tool, by default. Opt out: --no-telemetry flag or REACT_DOCTOR_NO_TELEMETRY environment variable
- Anonymous usage traces and metrics → Axiom (the maker's telemetry dataset), Every run of the tool, by default. Opt out: --no-telemetry flag or REACT_DOCTOR_NO_TELEMETRY environment variable
- Download requests for the triage playbook and per-rule fix prompts → www.react.doctor, On /doctor, improve-react plans and improve-threejs fixes. Opt out: Do not use those workflows; run the plain scan instead
- Package download request for react-doctor@latest → The npm registry, Every scan started through npx. Opt out: No opt-out in the skills; they always call npx react-doctor@latest
Install React Doctor skills
Official commands from the repository
npx react-doctor@latest install
Interactive: you choose agents; the skills are copied into each agent's skills folder in the project. Then optional setup: a pre-commit check (pre-selected) and agent hooks (not pre-selected).
The repo ships a .cursor-plugin/plugin.json manifest; the README gives no separate install steps for it.
Or with the open-source skills CLI: npx skills add millionco/react-doctor. Skills are instructions your agent follows: read them before installing.
What it installs and runs on your machine
Read in the code at commit 84ad0c8, Nov 3, 2026
| When | What happens |
|---|---|
| Every scan | npx downloads and runs react-doctor@latest from npm; it reads the project and prints a score and findings. |
| /doctor, improve-react plans, improve-threejs fixes | curl or fetch of https://www.react.doctor/prompts/react-doctor-agent.md and per-rule pages under /prompts/rules/; the assistant follows the downloaded text. |
| Rules commands | Edits doctor.config.* or package.json#reactDoctor, or creates doctor.config.json. |
| improve-react | Writes react-doctor-report.json (deleted when done) and plan files under plans/ only. |
| performance | Opens a separate Chrome profile, records a trace, saves a local .json.gz file; stops on Enter or after five minutes. |
| Telemetry | Crash reports (Sentry) and anonymous usage data (Axiom) on by default; off with --no-telemetry or REACT_DOCTOR_NO_TELEMETRY. |
| Optional agent hooks (installer) | Writes .claude/hooks/react-doctor.mjs plus a Stop entry in .claude/settings.json (or .cursor/hooks.json); after the agent finishes, it runs a changed-files scan with --no-score. |
| Optional pre-commit check (installer, pre-selected) | Adds a React Doctor git pre-commit hook in the project. |
Settings
REACT_DOCTOR_NO_TELEMETRY: Turns off crash reports and usage datadoctor.config.ts: Rules, categories and ignored tags (or the reactDoctor key in package.json)--scope: changed | contextual | lines | full (default full)
Quick answers
- Is it free?
- Yes. The license is a modified MIT: free to use, but not as AI training data or as a resold hosted service without permission.
- Does it send anything from my machine?
- The scanner sends crash reports and anonymous usage data by default; --no-telemetry turns that off. The skills also download instructions from react.doctor and the tool from npm.
- Will the audit change my code?
- No. improve-react only writes files in plans/; react-doctor's /doctor and improve-threejs do edit files.
- Does /doctor save or publish my changes?
- No. It edits your files but does not save them to git history or open pull requests.
- Can it test a page where I am signed in?
- Yes, through a Chrome you start with remote debugging; the skills say never to ask for cookies or copy your browser profile.
Checked by AgentGid on Nov 3, 2026 against commit 84ad0c8 of the pack's own files. agent.md for AI agents · Report a mistake
More software engineering skill packs
| # | Install | |||||
|---|---|---|---|---|---|---|
| 1 |
Gets a set of working habits for building software. It interviews you about a plan before it builds, turns the talk into a spec and small tickets, builds them test-first and reviews the result. |
330K | +32.5K | 39 | ||
| 2 |
Follows one fixed way of working. Before it builds anything, it asks what you really want and writes a short design for you to approve. Then it writes a step-by-step plan, builds it with tests first, has the work checked and asks how you want to finish. |
324K | +18.8K | 15 | ||
| 3 |
Gets four rules: think before coding, keep it simple, change only what you asked for, and set a clear goal it can check. It asks before guessing and writes less extra code. The rules come from the README's reading of a public post by Andrej Karpathy; the files do not say he made or reviewed them. |
235K | +14K | 1 | ||
| 4 |
DietrichGebert/ponytail
Checked
Stops overbuilding. It does what you asked in the simplest way that works, reuses what your project already has, and ends every answer by telling you what it left out. |
197K | +27.3K | 6 | ||
| 5 |
This repo is mostly a big collection of AI apps and tutorials. Its agent_skills folder holds seven separate skills you install one at a time. They help your assistant explain why old code exists, check a change or a package list, or find your abandoned side projects. Others test a draft on simulated readers, untangle a voice ramble, or split a big job across several AI models. |
145K | +3,089 | 10 | ||
| 6 |
Works like a careful senior engineer. It writes down what to build before coding, splits the work into small steps, proves each step with a test and reviews the result before launch. Nine slash commands cover the stages, and 25 skills switch on when a task matches. |
120K | +11K | 26 |
No pack matches.