What problem does it solve?
This Skill addresses the challenges of maintaining and evolving React codebases by providing a structured methodology for architectural refactoring, improving code quality, testability, and maintainability.
Core Features & Use Cases
- Comprehensive Rule Set: Offers 40+ rules across 7 categories (Component Architecture, State Architecture, Hook Patterns, Component Decomposition, Coupling & Cohesion, Data & Side Effects, Refactoring Safety).
- Actionable Guidance: Each rule includes code smell indicators, before/after transforms, and safe refactoring steps.
- Use Case: When reviewing a large Pull Request, use this Skill to identify potential architectural issues and suggest best practices for improving component structure, state management, and module boundaries.
Quick Start
Use the react-refactor skill to identify and fix issues related to component decomposition in the 'src/components/UserProfile.tsx' file.