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.
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.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.truffler (the find-similar-functions skill) to fuzzy-search these paths for an existing rule, detector, or utility by symbol name before assuming a behavior is new: bunx @rayhanadev/truffler "<symbol or behavior>" packages/oxlint-plugin-react-doctor/src/plugin --kind function,interface,type,constant --limit 20Find 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.
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>