mit einem Klick
rule-research
// Research and scope React Doctor rule ideas before implementation. Use when validating a proposed rule, grounding it in docs, OSS examples, RDE evidence, false-positive traps, detector precision, or v1 non-goals.
// Research and scope React Doctor rule ideas before implementation. Use when validating a proposed rule, grounding it in docs, OSS examples, RDE evidence, false-positive traps, detector precision, or v1 non-goals.
Validate implemented React Doctor rules before PR or merge. Use after rule tests pass to review correctness, run RDE against OSS, inspect false positives, generate changesets, write PR descriptions, and triage bot or human review comments.
Write React Doctor rules from a validated rule contract. Use when implementing oxlint plugin rules, planning AST/scope/control-flow detection, designing adversarial tests, adding utilities, or updating rule registration.
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.
| name | rule-research |
| description | Research and scope React Doctor rule ideas before implementation. Use when validating a proposed rule, grounding it in docs, OSS examples, RDE evidence, false-positive traps, detector precision, or v1 non-goals. |
Use this as stage 1 of the React Doctor rule pipeline.
Pipeline:
rule-research defines the rule contract.rule-writing turns the contract into tests and implementation.rule-validate verifies noise, correctness, PR copy, and review feedback.Do not start implementation until the rule contract is clear. If the user already asked you to implement, make the contract concise and continue.
Start by asking only for missing information that blocks a useful contract:
When enough is known, present a short rule contract and either ask for confirmation or continue if the user already requested implementation.
This rule catches <code pattern> that causes <specific problem>.packages/oxlint-plugin-react-doctor/src/plugin/rules/packages/oxlint-plugin-react-doctor/src/plugin/utils/packages/oxlint-plugin-react-doctor/src/plugin/rule-registry.ts*.test.ts files.Use this prompt shape when asking an eval or research agent to search OSS:
Find real-world evidence for a React Doctor rule:
Rule: `<rule-name>`
Goal:
Find examples where <exact bug definition>.
Return:
- Strong positive examples
- Pattern-adjacent examples
- False-positive traps
- Detector implications
- Suggested adversarial tests
Prefer examples tied to real framework/library usage.
Do not treat similar-looking valid code as a positive.
Return this contract at the end of research:
Rule definition:
This rule catches <code pattern> that causes <specific problem>.
Runtime reason:
<1-3 sentences>
Detector precision:
Syntax-only | scope-aware | path-aware
Evidence:
- <docs, OSS, issue, RDE, or similar-tool evidence>
Strong positives:
- <exact reportable examples>
False-positive traps:
- <valid examples that must stay quiet>
In scope for v1:
- <supported cases>
Out of scope for v1:
- <explicit non-goals>
Test seeds:
- <invalid and valid fixture ideas>
Open questions:
- <only questions that affect correctness or scope>