What problem does it solve? Methods that mix parsing, validation, and business logic into one long block are hard to read, test, and maintain. This Skill restructures a single method so it reads as a high-level narrative backed by clearly named private helpers, while preserving exact behavior. ## Core Features & Use Cases - Principle-Driven Refactoring: Applies single responsibility, command/query separation, self-documenting naming, and guard clauses to restructure method internals. - Behavior Preservation Guarantee: Never renames the public method, changes its signature, or alters behavior; existing unit tests must still pass unmodified. - Self-Review Pass: Drafts the refactor, then re-applies every principle to the draft before presenting, catching leftover null checks, chained lookups, and nested error handling. - Use Case: You have a 60-line controller method that parses input, validates it, chains two database lookups, and logs at each step. Point the Skill at the file and method, and it proposes a short orchestrating public method with descriptively named helpers, keeping every log statement intact. ## Quick Start Refactor the ProcessOrder method in src/services/orderService.ts to follow clean code principles.