Guides architectural refactoring of React applications: component architecture, state management, hook patterns, decomposition, coupling, and refactoring safety.
How this skill is triggered — by the user, by Claude, or both
Slash command
/pproenca-dot-skills-1:react-refactorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
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).
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).
| 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 |
| Hook Patterns | HIGH | 6 | Single responsibility, naming, dependency stability, composition |
| Component Decomposition | HIGH | 6 | Scroll test, extraction by change reason, view/logic separation |
| Coupling & Cohesion | MEDIUM | 4 | Dependency injection, circular deps, stable imports, barrel-free |
| Data & Side Effects | MEDIUM | 4 | Server-first fetch, TanStack Query, error boundaries |
| Refactoring Safety | LOW-MEDIUM | 5 | Characterization tests, behavior testing, integration tests |
Critical patterns — get these right first:
Common mistakes — avoid these anti-patterns:
react skillreact-optimise skillreact-hook-form skillnpx claudepluginhub joshuarweaver/cascade-code-general-misc-1 --plugin pproenca-dot-skills-1Architectural refactoring guide for React applications covering component decomposition, state architecture, hook patterns, coupling, data flow, and refactoring safety.
Provides expert guidance on React hooks, composition patterns, and performance optimization. Automatically activates when discussing hooks, state management, re-renders, or component composition.
Guides developers on modern React patterns including hooks, composition, performance optimization, and TypeScript best practices.