What problem does it solve? Working code often accumulates unnecessary complexity—deep nesting, long functions, unclear names, and duplication—that makes it harder to read, maintain, and extend. This Skill provides a disciplined process for simplifying code without changing its behavior. ## 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, and error handling identical. - Pattern Detection Checklists: Identifies concrete simplification signals such as 3+ level nesting, 50+ line functions, nested ternaries, boolean flag parameters, dead code, and duplicated logic. - Language-Specific Guidance: Includes before/after examples for TypeScript, JavaScript, Python, and React/JSX, plus a verification checklist covering tests, linting, and diff cleanliness. - Use Case: After shipping a feature with passing tests, run this Skill to flatten nested conditionals into guard clauses, rename generic variables, and extract duplicated logic—producing a clean, reviewable diff. ## Quick Start Ask the agent to simplify the recently modified module using the code-simplification process while keeping all tests passing unchanged.