The refactor skill helps developers improve code structure and readability through surgical changes like extracting functions, renaming variables, and eliminating code smells while preserving behavior. It's designed for engineers maintaining existing codebases who need to gradually enhance maintainability without rewriting code from scratch. The skill solves the problem of technical debt and difficult-to-maintain code by providing principles and patterns for incremental, safe refactoring guided by tests and version control.
npx skills add https://github.com/github/awesome-copilot --skill refactor