refactoring-patterns - Safe Refactoring Patterns and Workflow
Provides safe refactoring workflows, common structural patterns, tooling recommendations, and pre-ship verification guidelines.
Tags
Updated: 2026-09-16Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Extract methods classes or modules
- Rename code symbols and variables
- Move functions and types
- Inline direct calls and expressions
- Replace conditionals with polymorphism
- Introduce parameter objects
- Replace magic numbers with constants
Inputs
- Source code
- Test suite
Outputs
- Refactored code
- Git commits
Requirements
- Test coverage for affected code
- Language refactoring tools or IDE
- Git version control
