class-refactoring - Refactor PHP classes without changing behavior
Refactors PHP classes to improve structure, readability, testability, and maintainability while preserving behavior.
Tags
Updated: 2026-10-15Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Read target classes and dependencies
- Map callers and data flows
- Verify behavior assumptions
- Check target-line coverage
- Refactor structure without behavior changes
- Run fixers and checkers
- Author coverage tests when needed
- Chain After Completion review
Inputs
- MODE selection
- Target PHP class
- Related source code
- Callers and dependencies
- Related tests
- Project configuration
- Coverage tooling
- Applicable project rules
Outputs
- Refactored PHP code
- Coverage tests
- Git commits
- Fixer and checker results
- Refactoring review proposals
Requirements
- PHP project
- Access to applicable rule files
- Project coverage tooling
- Git repository access
