Skip to content
pproenca avatar

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
View on GitHub

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 -y

Installs 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

Similar to React Refactor

More Frontend & UI Code