
React Refactor
A comprehensive architectural guide for cleaning up React codebases with 40 rules across component structure, state management, and hook patterns. Organized by impact level, so you tackle critical issues like state colocation and compound components before worrying about test strategies. Most useful when you're refactoring a messy codebase, reviewing PRs for architectural smells, or breaking apart those 800-line components everyone's afraid to touch. The rules are specific and measurable, like "reduces prop count by 50-70%" or "eliminates 2-4 levels of nesting." Deliberately scoped to architecture only, so pair it with the react-optimise skill if you're chasing performance wins too.
- skills.sh installs
- 791
- GitHub stars
- 222
- last updated
- Aug 21, 2026
Install
$ npx -y skills add pproenca/dot-skills --skill react-refactor --agent claude-codeInstalls into .claude/skills of the current project.
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
Sponsors
Details
- Repository
- github.com/pproenca/dot-skills
- Categories
- Frontend Development, Backend & APIs, Documentation, Code Review & Quality, Debugging
- First seen
- Jun 3, 2026
More from pproenca/dot-skills
All 100- Chrome Extension Ui732
- Shadcn732
- Chrome Extension729
- Shell704
- Tailwind657
- Refactor651
- Expo561
- React496
- Tailwind Responsive Ui470
- Tailwind Ui Refactor467
- Zustand453
- Debug444
- Ios Design436
- Feature Spec431
- Feature Arch423
- React Testing Library418
- Jscodeshift416
- Expo React Native Coder415
- Tdd415
- Humanize409
- React Optimise403
- Knip Deadcode390
- Rails Hotwire380
- Ts Google378