React Refactor
Architectural refactoring guide for React apps covering component, state, and hook structure, plus refactoring safety.
- CCM score
- 47 of 100
- skills.sh installs
- 807
- GitHub stars
- 228
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers 40 rules across 7 categories, from component and state architecture down to refactoring safety and characterization tests
- Includes patterns such as compound components, headless components, state colocation, state machines, and URL-based state
- Provides a scroll test and extraction-by-change-reason guidance for decomposing oversized components
- Designed for refactoring existing React codebases, reviewing PRs for architectural issues, and improving module boundaries
Install
$ npx -y skills add pproenca/dot-skills --skill react-refactor -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
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
Details
- Repository
- github.com/pproenca/dot-skills
- Categories
- Frontend & UI Code, Code Review & Quality
- First seen
- Jun 3, 2026
More from pproenca/dot-skills
All 100- Chrome Extension Ui746
- Shadcn745
- Chrome Extension739
- Shell717
- Tailwind670
- Refactor665
- Expo572
- React511
- Tailwind Responsive Ui486
- Tailwind Ui Refactor478
- Zustand468
- Debug456
- Ios Design452
- Feature Spec442
- Feature Arch437
- React Testing Library433
- Expo React Native Coder426
- Jscodeshift426
- Tdd426
- Humanize422
- React Optimise414
- Knip Deadcode412
- Rails Hotwire391
- Ts Google389
Similar to React Refactor
More Frontend & UI Coderefactorpproenca/dot-skills665 installsStructured refactoring guide of 43 rules across eight prioritized categories, drawn from Fowler's catalog and Clean Code.
react-composition-patternssecondsky/claude-skills504 installsReact composition patterns that scale for refactoring boolean-prop components and designing flexible, reusable APIs.
vercel-composition-patternsvercel-labs/agent-skills471.4K installsReact composition patterns that scale components and prevent boolean prop sprawl in React codebases.
typescript-refactorpproenca/dot-skills814 installsType-safety and modernization guide for TypeScript and TSX refactoring, current to TypeScript 6.0 and React 19.
react-patternssickn33/agentic-awesome-skills1.2K installsModern React guidance covering components, hooks, state, React 19, performance, and TypeScript typing.
frontend-react-best-practicessergiodxa/agent-skills1.2K installsReact performance rules and composition patterns covering re-renders, bundle size, and hydration pitfalls.