What problem does it solve? Working code often accumulates unnecessary complexity — deep nesting, long functions, unclear names, and duplicated logic — 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, 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 flag parameters, 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 requiring tests, lint, and clean diffs. - Use Case: After finishing a feature whose tests pass but whose implementation has deeply nested conditionals and vague variable names, run this Skill to restructure the code into guard clauses and well-named helpers, verifying tests after each incremental change. ## Quick Start Ask the agent to simplify the recently modified module using the code-simplification workflow while keeping all existing tests passing unchanged.