Community Refactoring Best Practices: Same Results, Less Code Code-review and refactoring guide focused on the parts of code volume that come from judgment and modelling gaps — wrong abstraction choices, hidden semantic duplication, defensive habits, premature generality. This skill deliberately skips what linters and tools like , , , , or formatters already catch. It is the second pass: after the mechanical cleanup, what remains? Core Principles 1. Preserve behaviour. Every transformation must produce identical observable behaviour — same outputs, same errors, same side effects, same API sur…