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-sourc…
它会碰到什么
这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。
技能内容
Run a local rule evaluation
Use React Doctor Evals (RDE) for bounded local iteration. Use run-parity only after the change has a pushed pull request.
Prepare both checkouts
export REACT_DOCTOR_CHECKOUT=/absolute/path/to/react-doctor
export RDE_CHECKOUT=/absolute/path/to/react-doctor-evals
git -C "$RDE_CHECKOUT" pull --ff-only
ni -C "$RDE_CHECKOUT"
nr -C "$RDE_CHECKOUT" build
nr -C "$REACT_DOCTOR_CHECKOUT" build
The path: spec reads uncommitted React Doctor changes. Run RDE commands from the eval checkout.
Run a bounded sample
cd "$RDE_CHECKOUT"
node dist/cli.js run "path:$REACT_DOCTOR_CHECKOUT" --runner local --take 100
node dist/cli.js digest "path:$REACT_DOCTOR_CHECKOUT" --rule <rule-id>
node dist/cli.js digest "path:$REACT_DOCTOR_CHECKOUT" --json --rule <rule-id> > <artifact-directory>/hits.json
Increase --take only after tests and the first sample pass.
Inspect target-rule hits
For each hit, or a representative sample when counts are high:
- Open the pinned repository at the reported location.
- Compare the code with the rule contract.
- Classify the hit as true positive, false positive, or unsupported.
- Add a rule regression test for each false positive.
- Add confirmed false positives to the
fuzzregression corpus. - Rebuild and rerun the same sample.
Record repository count separately from project-root count. Do not treat error records as clean scans.
Report results
Report checkout revisions, target rule, repositories, project roots, diagnostics, inspected hits, fixed false positives, and the artifact path. State any setup error or skipped repository.
After local validation, return to rule-validate. That skill decides whether to invoke pull request parity.
想直接用这个技能?
本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。