react-refactor

Installation
SKILL.md

React Refactor Best Practices

Architectural refactoring guide for React applications. Contains 40 rules across 7 categories, prioritized by impact from critical (component and state architecture) to incremental (refactoring safety).

When to Apply

  • Refactoring existing React codebases or planning large-scale restructuring
  • Reviewing PRs for architectural issues and code smells
  • Decomposing oversized components into focused units
  • Extracting reusable hooks from component logic
  • Improving testability of React code
  • Reducing coupling between feature modules

Rule Categories

Category Impact Rules Key Topics
Component Architecture CRITICAL 8 Compound components, headless pattern, composition over props, client boundaries
State Architecture CRITICAL 7 Colocation, state machines, URL state, derived values
Related skills

More from pproenca/dot-skills

Installs
399
GitHub Stars
141
First Seen
Feb 11, 2026