Implement React Doctor rules from a validated contract. Use when writing oxlint rules, planning syntax or control-flow detection, designing adversarial tests, reusing syntax tree utilities, or updating rule registration.
72
87%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Implement the rule-research contract. If none exists, define a compact contract before editing.
State the diagnostic condition, required syntax and bindings, unsupported cases, and adversarial tests. Keep this plan short when the user already requested implementation.
Before adding a helper, search for one to reuse:
bunx @rayhanadev/truffler "<symbol-or-behavior>" \
packages/oxlint-plugin-react-doctor/src/plugin \
--kind function,interface,type,constant --limit 20Read docs/HOW_TO_WRITE_A_RULE.md, nearby rules, utilities, and tests.
rde-eval when real-code feedback could expose noise.rule-validate.Account for:
Keep uncertain cases quiet. Match the message to the condition the detector proves.
Use @antfu/ni commands:
nr test
nr lint
nr typecheck
nr format
nr smoke:json-reportUse focused commands while iterating. Record each command that ran.
Report changed rules, tests, registration, reused or added utilities, reported behavior, intentional non-goals, and validation results. End with the rule-validate handoff.
83466a8
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.