A comprehensive refactoring rulebook packaged as a Claude skill. It walks through 47 specific rules across 8 categories, from critical stuff like reading CLAUDE.md and preserving behavior to lower priority items like language-specific idioms. The priority system is sensible: context discovery and behavior preservation come first, then scope management and control flow, finally naming and dead code cleanup. Each rule links to detailed examples with before/after code. The approach is pragmatic, emphasizing small diffs, existing project conventions over generic best practices, and explicit code over clever one-liners. Worth noting the rule of three forduplication and the emphasis on recently modified code only. Good for teams wanting consistent refactoring standards without the usual hand-waving about clean code.
npx skills add https://github.com/pproenca/dot-skills --skill code-simplifier