LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

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-15

Capabilities

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

Source

  • Spec: SKILL.md
PHP
class refactoring
code quality
test coverage
maintainability
Laravel
Read target classes and dependencies
Map callers and data flows
Verify behavior assumptions
Check target-line coverage
MODE selection
Target PHP class
Related source code
Refactored PHP code
Coverage tests
Git commits