What problem does it solve? Working code often accumulates unnecessary complexity—deep nesting, long functions, unclear names, and duplicated logic—that slows down every future change. This Skill provides a disciplined, behavior-preserving process for simplifying code so it is easier to read, maintain, and extend. ## Core Features & Use Cases - Behavior-Preserving Refactoring: Every simplification must keep inputs, outputs, side effects, and error behavior identical, verified by running the existing test suite after each change. - Concrete Pattern Detection: Identifies specific complexity 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 rules for following project conventions and avoiding over-simplification. - Use Case: After finishing a feature whose tests pass but whose implementation feels heavy, run this Skill to incrementally simplify the changed code—one reviewable commit at a time—without touching unrelated modules. ## Quick Start Ask the agent to simplify the recently modified code in this module while keeping all tests passing and behavior unchanged.