Takes messy Python and makes it maintainable through a four-phase workflow: analyze complexity metrics, plan changes with mandatory migration checklists for destructive refactors, execute transformations one pattern at a time, then validate with static analysis before tests. The safety protocol is unusually strict, requiring you to search all usages, migrate incrementally, and verify complete migration before removing old code. Built for legacy code modernization and onboarding scenarios where scattered globals and 500-plus line files need proper OOP structure. The hard stance on regression prevention (any failure means total failure) makes it slower but appropriate when correctness matters more than speed. Includes scripts for measuring cognitive complexity and architectural anti-patterns.
npx skills add https://github.com/acaprino/alfio-claude-plugins --skill python-refactor