---
name: react-doctor
description: "Use when adopting React Doctor to assess this standard: Diagnose React component regressions"
---

# Apply React Doctor

Inspect React-specific findings in changed components. Review render behavior and state ownership with the source location and rule behind each finding.

## Procedure

1. Inspect the repository configuration and identify the files or targets covered by React Doctor.
2. Use React Doctor in this repository to meet this standard: Diagnose React component regressions. Inspect React-specific findings in changed components. Review render behavior and state ownership with the source location and rule behind each finding. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
3. Record the tool version, configuration, scope and findings. Explain any checks that could not run.
4. Use the same invocation after changes and compare the evidence against the baseline.

Refer to [the upstream documentation](https://www.react.doctor/docs) for configuration and prerequisites.

## Worked check

The upstream agent skill scopes the precommit scan to changed React code, checks for a score regression and requires fixing new findings before commit. Its full scan triages errors before warnings.

[Evidence and example](https://github.com/millionco/react-doctor/blob/main/skills/react-doctor/SKILL.md)
