react-doctor 0.2.6 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{cli-logger-Iz5pfDnL.js → cli-logger-C35LXalM.js} +887 -616
- package/dist/cli.js +1145 -636
- package/dist/index.d.ts +33 -16
- package/dist/index.js +938 -625
- package/dist/skills/react-doctor/SKILL.md +16 -2
- package/package.json +6 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: react-doctor
|
|
3
|
-
description: Use when finishing a feature, fixing a bug, before committing React code, or when the user
|
|
4
|
-
version: "1.
|
|
3
|
+
description: 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 canonical playbook.
|
|
4
|
+
version: "1.1.0"
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# React Doctor
|
|
@@ -18,6 +18,20 @@ If the score dropped, fix the regressions before committing.
|
|
|
18
18
|
|
|
19
19
|
Run `npx react-doctor@latest --verbose` (without `--diff`) to scan the full codebase. Fix issues by severity — errors first, then warnings.
|
|
20
20
|
|
|
21
|
+
## /doctor — full local triage workflow
|
|
22
|
+
|
|
23
|
+
When the user types `/doctor`, says "run react doctor", or asks for a full triage / cleanup pass (not just a regression check), fetch the canonical local-triage playbook and follow every step in it:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
curl --fail --silent --show-error \
|
|
27
|
+
--header 'Cache-Control: no-cache' \
|
|
28
|
+
https://www.react.doctor/prompts/react-doctor-agent.md
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The playbook is the single source of truth — a scan → filter → triage → fix → validate loop that edits the working tree directly (never commits, never opens PRs). Updating the prompt at its source updates every agent on its next fetch — no skill reinstall needed.
|
|
32
|
+
|
|
33
|
+
Pair it with the matching per-rule prompts at `https://www.react.doctor/prompts/rules/<plugin>/<rule>.md` (fetched on demand inside the playbook) so each fix uses the canonical, reviewer-tested recipe.
|
|
34
|
+
|
|
21
35
|
## Command
|
|
22
36
|
|
|
23
37
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-doctor",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "Diagnose and fix React codebases for security, performance, correctness, accessibility, bundle-size, and architecture issues",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -52,28 +52,20 @@
|
|
|
52
52
|
"@effect/platform-node-shared": "4.0.0-beta.70",
|
|
53
53
|
"agent-install": "0.0.5",
|
|
54
54
|
"conf": "^15.1.0",
|
|
55
|
-
"deslop-js": "^0.0.
|
|
55
|
+
"deslop-js": "^0.0.13",
|
|
56
56
|
"effect": "4.0.0-beta.70",
|
|
57
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
57
58
|
"oxlint": "^1.66.0",
|
|
58
59
|
"prompts": "^2.4.2",
|
|
59
60
|
"typescript": ">=5.0.4 <7",
|
|
60
|
-
"oxlint-plugin-react-doctor": "0.2.
|
|
61
|
+
"oxlint-plugin-react-doctor": "0.2.8"
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"@types/prompts": "^2.4.9",
|
|
64
65
|
"commander": "^14.0.3",
|
|
65
|
-
"eslint-plugin-react-hooks": "^7.1.1",
|
|
66
66
|
"ora": "^9.4.0",
|
|
67
|
-
"@react-doctor/api": "0.2.
|
|
68
|
-
"@react-doctor/core": "0.2.
|
|
69
|
-
},
|
|
70
|
-
"peerDependencies": {
|
|
71
|
-
"eslint-plugin-react-hooks": "^6 || ^7"
|
|
72
|
-
},
|
|
73
|
-
"peerDependenciesMeta": {
|
|
74
|
-
"eslint-plugin-react-hooks": {
|
|
75
|
-
"optional": true
|
|
76
|
-
}
|
|
67
|
+
"@react-doctor/api": "0.2.8",
|
|
68
|
+
"@react-doctor/core": "0.2.8"
|
|
77
69
|
},
|
|
78
70
|
"engines": {
|
|
79
71
|
"node": "^20.19.0 || >=22.12.0"
|