What problem does it solve? Convoluted code with deep nesting, boolean spaghetti, and interleaved concerns slows down every future change, but rewriting it by hand risks silently altering behavior. This Skill finds one convoluted unit of business logic, pins its current behavior with tests, and simplifies it in place with zero behavior change. ## Core Features & Use Cases - Hotspot Discovery: Uses git churn history and code smells (deep nesting, long boolean chains, mixed concerns) to pick one high-value convoluted unit. - Behavior Pinning: Writes pinning tests capturing current inputs and outputs, including edge cases, before touching any code. - Behavior-Preserving Refactor: Flattens nesting with early returns, names intermediate values, and splits interleaved concerns without introducing new abstractions. - Use Case: A function in your monorepo keeps appearing in fix commits and has four levels of nested conditionals. Invoke the routine to pin its behavior with tests, rewrite it readably, verify the full package gate is green, and ship via /ship. ## Quick Start Run /routine-logic-simplifier on the package containing the convoluted logic you want simplified without changing its behavior.