rule-research

Standardize technical specifications for React Doctor linting rules.

14.3k|455|Updated Feb 13, 2026
One-click install
npx skills add https://github.com/millionco/react-doctor --skill rule-research
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: rule-research
Source: https://github.com/millionco/react-doctor/tree/main/.agents/skills/rule-research
Command: npx skills add https://github.com/millionco/react-doctor --skill rule-research

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates ambiguity in rule development by forcing a structured, evidence-based definition of React code patterns before any implementation begins.

Core Features & Use Cases

  • Contract Definition: Standardizes the documentation of rule behavior, runtime impact, and scope boundaries.
  • Evidence Gathering: Facilitates the collection of official documentation, open-source examples, and test fixtures to ensure rule accuracy.
  • Use Case: When a developer identifies a potential performance issue in React, they use this Skill to define the exact syntax-aware detection logic and test cases, preventing false positives before writing the actual linter code.

Quick Start

Use the rule-research skill to draft a contract for a new rule that detects unnecessary re-renders caused by inline object literals in dependency arrays.

Frequently Asked Questions about rule-research

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define a React linting rule to prevent false positives before implementation?▼

To define a React linting rule without false positives, you establish a technical specification contract using evidence-based pattern analysis. This standardizes rule behavior, runtime impact, and scope boundaries before writing the actual linter code.

What is a rule contract in static analysis development?▼

A rule contract in static analysis is a structured technical specification defining exact syntax-aware detection logic and test cases. It documents rule behavior, runtime impact, and scope boundaries to eliminate ambiguity during linting rule development.

How do I document edge cases for React code patterns during rule research?▼

You document edge cases for React code patterns by systematically analyzing code behavior and gathering evidence like official documentation, open-source examples, and test fixtures. This ensures high-precision detection and actionable implementation contracts.

Does this rule research approach work for detecting React performance issues like unnecessary re-renders?▼

Yes, this rule research approach works for detecting React performance issues like unnecessary re-renders. You use it to define exact syntax-aware detection logic and test cases for specific patterns, such as inline object literals in dependency arrays.

What is the best way to standardize documentation for static analysis rule behavior?▼

The best way to standardize documentation for static analysis rule behavior is to enforce an evidence-based contract definition. This requires collecting official documentation, open-source examples, and test fixtures to ensure rule accuracy and high-precision detection.