Setup React Doctor
Repo/code changes: run /deslop before commit, push, PR, or merge.
- react-doctor codebase health score (0-100)
- Stop hook run doctor on changed files; failures, low scores, and warnings block
- No downgrade-to-allow loop; doctor errors are stop-gaps
- Config disable biome-overlapping rules
Steps
1. Install
bun add -D react-doctor --yarn
2. Package.json
{ "scripts": { "doctor": "react-doctor ." } }
3. Config (react-doctor.config.json)
{ "ignore": { "rules": ["react-hooks/exhaustive-deps", "react/no-nested-component"] } }
4. Hook
Copy scripts/react-doctor-stop.sh -> .claude/hooks/. chmod +x. Add to Stop.
5. Verify
-
bun run doctorwork - Stop hook executable
Source: malinskibeniamin/skills — distributed by TomeVault.