refactoring-workflow-optimization
Installation
SKILL.md
Refactoring Workflow Optimization
Overview
Systematic approach to code refactoring with pre-analysis, batch planning, and validation checkpoints. Reduces refactoring time and improves first-attempt success rate.
Problem: Refactoring tasks show 20+ individual edits when batch operations would be more efficient, TypeScript errors discovered after incomplete refactoring passes, agents miss local constant declarations that shadow class-level constants.
Solution: Pre-analysis phase to find ALL occurrences, categorize by type, create refactoring plan with logical batches, validate after each batch.
Impact: Reduce refactoring time by 60-70%, improve first-attempt success rate.
Pre-Analysis Phase
Step 1: Find ALL Occurrences
Use grep to find ALL occurrences of the pattern (not just first few):