What problem does it solve? Working code often ends up harder to read than it needs to be, with deep nesting, long functions, and unclear names that slow down maintenance and review. This Skill guides behavior-preserving refactoring so code becomes easier to understand without changing what it does. ## Core Features & Use Cases - Behavior-Preserving Refactoring: Every simplification must keep inputs, outputs, side effects, and error behavior identical, with verification after each change. - Structured Simplification Process: A four-step workflow covering understanding the code first, spotting complexity signals, applying incremental changes, and verifying the final diff. - Convention-Aware Cleanup: Simplifications follow existing project conventions (AGENTS.md, neighboring code patterns) instead of imposing external style preferences. - Use Case: After a feature passes its tests but the implementation has nested ternaries and duplicated conditionals, use this Skill to refactor it into clear, reviewable code with a clean diff. ## Quick Start Ask the agent to simplify the recently modified function in your TypeScript file while preserving its exact behavior and following project conventions.