cc-refactoring-guidance

Installation
SKILL.md

Skill: cc-refactoring-guidance

STOP - Refactoring Rules

  • Fix first, then refactor - Never simultaneously (separate commits)
  • Small changes need MORE rigor, not less - 1-line changes have HIGHEST error rate
  • >50% of changes fail first attempt - Review and test even "trivial" changes

Quick Reference

Rule Value Source
Small change error rate Peaks at 1-5 lines Weinberg 1983
First attempt success rate <50% for any change Yourdon 1986b
Review effect on 1-line changes 55% -> 2% error rate Freedman and Weinberg 1982
Big refactoring "Recipe for disaster" Kent Beck
Related skills

More from ryanthedev/code-foundations

Installs
1
GitHub Stars
243
First Seen
Mar 9, 2026