About
Python Refactor is a specialized skill for Claude Code designed to modernize legacy codebases and eliminate 'spaghetti' logic. It prioritizes the transformation of disorganized scripts into structured, object-oriented systems following SOLID principles and dependency injection patterns. The skill operates with a safety-first mindset, requiring mandatory migration checklists, comprehensive static analysis via flake8, and continuous test validation to ensure that code quality improves without introducing functional regressions or performance bottlenecks.