How this command is triggered — by the user, by Claude, or both
Slash command
/liam:react-doctor [full|diff|staged|score] (default: diff)The summary Claude sees in its command listing — used to decide when to auto-load this command
Run [react-doctor](https://github.com/millionco/react-doctor) on the current project and act on the findings. ## Mode Argument: `$ARGUMENTS` — pick a mode (default `diff` when no arg given): | Arg | Command | When to use | | -------- | -------------------------------------------------------- | ---------------------------------------------- | | `diff` | `npx -y react-doctor@latest . --diff --json --offline` | Default. Only files changed vs the base branch | | `staged` | `npx -y react-doctor@latest...
Run react-doctor on the current project and act on the findings.
Argument: $ARGUMENTS — pick a mode (default diff when no arg given):
| Arg | Command | When to use |
|---|---|---|
diff | npx -y react-doctor@latest . --diff --json --offline | Default. Only files changed vs the base branch |
staged | npx -y react-doctor@latest . --staged --json --offline | Pre-commit check on staged files |
full | npx -y react-doctor@latest . --json --offline | Whole-codebase scan |
score | npx -y react-doctor@latest . --score --offline | Just the number, nothing else |
--offline skips telemetry. --json produces a parsable report so you can summarise cleanly — every other line of human output is suppressed when --json is set.
react-doctor here would be noise..notes/react-doctor/ exists at the repo root (mkdir -p .notes/react-doctor). Verify .notes/ (or .notes/react-doctor/) is gitignored — check .gitignore and run git check-ignore -q .notes/react-doctor to confirm. If it isn't ignored, stop and warn before writing anything..notes/react-doctor/<UTC-timestamp>-<mode>.json (timestamped archive)
.notes/react-doctor/latest.json (overwritten each run — handy for diffing)
Use tee to capture and parse in one pass, e.g.:
mkdir -p .notes/react-doctor
TS=$(date -u +%Y%m%dT%H%M%SZ)
npx -y react-doctor@latest . --diff --json --offline \
| tee ".notes/react-doctor/${TS}-diff.json" ".notes/react-doctor/latest.json"
For score mode, write plain text instead of JSON to .notes/react-doctor/score.txt.
82 — Great), then group diagnostics by severity (error → warning → info) and by rule id. Cap at top 10 issues; mention the total if more.Report saved → .notes/react-doctor/20260511T123000Z-full.json).// react-doctor-disable-next-line <rule>) — explain why before adding.react-doctor.config.json ignore entry if a rule consistently doesn't apply to this codebase.score mode: print the number, save to .notes/react-doctor/score.txt, stop.react-doctor.config.json or "reactDoctor" key in package.json, mention any overrides that influenced the run.react-doctor skill (auto-triggers post-edit). This slash command is for explicit, user-initiated runs..notes/ in PRs, issues, or commit messages — that folder is intentionally untracked.npx claudepluginhub isoscelesxyz/liam-claude-plugin --plugin liam