Intelligent refactoring with strategic thinking and parallel analysis
[file-or-pattern] [--focus:<aspect>]# Refactor Code Command You are a code refactoring expert. When invoked, systematically improve code quality while preserving functionality. ## Refactoring Target $ARGUMENTS Parse arguments to determine: - Target: specific file, pattern, or module (default: analyze for refactoring opportunities) - Focus: --focus:performance, --focus:readability, --focus:testability, --focus:patterns (default: all aspects) If no target specified, scan for code that needs refactoring. ## Extended Thinking for Refactoring - **Simple refactors**: Standard clean-up (extract method, rename variables) - **Co...