Упрощение и рефакторинг кода

★ 8.7 · engineering

code-simplification is a Claude Code skill that refactors code for clarity and maintainability without altering its behavior. It targets situations where working code has grown harder to read or extend: deeply nested logic, functions exceeding 50 lines, chained ternaries, boolean flag parameters, or duplication introduced by merges and time-pressured patches. The skill follows five principles — exact behavior preservation, adherence to project conventions, clarity over cleverness, avoiding over-simplification, and scoping changes to recently modified code. Before any edit, it applies Chesterton's Fence: understand why the code is structured as it is before deciding to change it. Useful for code reviews, technical-debt sessions, and preparing modules for new feature work.