Refactoring Assistant Systematic code refactoring with AI guidance. Prerequisites Refactoring Operations JavaScript to TypeScript Class to React Hooks Modernize Code Systematic Rename Analysis Commands Find Refactoring Opportunities Complexity Analysis Safe Refactoring Workflow Step 1: Ensure Test Coverage Step 2: Plan the Refactoring Step 3: Small, Tested Changes Step 4: Verify Behavior Common Refactorings Extract Function Simplify Conditionals Remove Duplication jscodeshift Transforms Create Transform Run Transform Best Practices 1. Test first - Don't refactor untested code 2. Small steps -…