What problem does it solve? Working code often accumulates unnecessary complexity—deep nesting, long functions, unclear names, and duplicated logic—that makes it hard to read, maintain, and extend. This Skill provides a disciplined, behavior-preserving process for simplifying code without introducing regressions. ## Core Features & Use Cases - Behavior-Preserving Refactoring: Applies five principles (preserve behavior, follow project conventions, prefer clarity, maintain balance, scope to changes) so every simplification keeps inputs, outputs, side effects, and error behavior identical. - Pattern Detection Checklists: Identifies concrete simplification signals such as 3+ level nesting, 50+ line functions, nested ternaries, boolean flag parameters, dead code, and over-engineered abstractions. - Language-Specific Guidance: Includes before/after examples for TypeScript, JavaScript, Python, and React/JSX, plus incremental commit discipline and a verification checklist. - Use Case: After shipping a feature with passing tests, run a simplification pass on the modified files to flatten nested conditionals into guard clauses, rename generic variables, and extract duplicated logic—one tested change at a time. ## Quick Start Ask the AI to simplify the recently modified code in the current file while keeping all tests passing and behavior unchanged.