What problem does it solve? Working code often accumulates unnecessary complexity—deep nesting, long functions, unclear names, and duplicated logic—that slows down reviews and future maintenance. This Skill provides a disciplined refactoring process that reduces complexity without changing behavior, so cleanup never introduces regressions. ## Core Features & Use Cases - Behavior-Preserving Refactoring: Every change must keep inputs, outputs, side effects, error handling, and edge cases identical, verified against existing tests. - Five Guiding Principles: Preserve behavior, follow project conventions, prefer clarity over cleverness, avoid over-simplification, and scope changes to recently modified code. - Structured Four-Step Process: Understand the code first, identify simplification signals (nested ternaries, boolean flags, dead code), apply changes incrementally with test runs, then verify with a final checklist. - Use Case: After shipping a feature with passing tests, run this Skill to flatten deeply nested conditionals, rename misleading variables, and remove dead code—producing a clean, reviewable diff with zero behavior change. ## Quick Start Ask the agent to simplify the recently modified module using the simplify skill while keeping all tests passing and behavior unchanged.