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 nested ternaries, boolean parameter flags, dead code, and over-engineered abstractions, with language-specific examples for TypeScript, JavaScript, Python, and React. - Incremental Verification Workflow: Enforces one-change-at-a-time edits with test runs after each step, plus a final verification checklist covering tests, linting, and diff cleanliness. - Use Case: After merging a feature that works but feels heavy, ask the agent to simplify the modified module—it will extract guard clauses, rename vague variables, remove duplication, and keep all tests passing. ## Quick Start Ask the agent to simplify the recently modified code in the current file while keeping all existing tests passing.