What problem does it solve?
React development often introduces performance regressions, accessibility gaps, and anti-patterns that are hard to spot in code review, leading to user-facing bugs and degraded UX. This Skill automates scanning changed components and directories to surface those issues early with concrete file:line references and remediation suggestions.
Core Features & Use Cases
- Anti-pattern detection: Finds unnecessary useEffect, missing dependency arrays, prop drilling, index-as-key, inline object/array creation, and direct DOM manipulation.
- Performance auditing: Flags large re-renders, missing memoization, heavy imports for lazy-loading, image optimization issues, and improper client component usage.
- Accessibility & design checks: Reports missing alt text, labels, button text, keyboard navigability issues, color-contrast problems, and AI slop visual anti-patterns with file:line and recommended fixes.
- Scoped scanning: Targets git-diff changed .tsx/.jsx files, a specified directory, or the entire src/ to fit code-review and feature-completion workflows.
- Reference-driven: Points to curated reference docs for performance and design rationale.
Quick Start
Run react-doctor on the changed files or src/ to generate a health report with critical, warning, and info findings.