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 over cleverness, maintain balance, scope to what changed) so every simplification keeps inputs, outputs, side effects, and error behavior identical. - Pattern Detection Checklists: Identifies concrete simplification signals such as 3+ levels of nesting, 50+ line functions, nested ternaries, boolean parameter flags, generic names, dead code, and over-engineered abstractions. - Language-Specific Guidance: Includes before/after examples for TypeScript, JavaScript, Python, and React/JSX, plus a verification checklist covering tests, builds, linting, and diff cleanliness. - 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 vague variables, and extract duplicated logic—one incremental, test-verified change at a time. ## Quick Start Ask the agent to simplify the recently modified code in your current module while keeping all tests passing and behavior unchanged.