LogoClawIndex
CasesSkillsAbout
LogoClawIndex

refactor - Refactor code without changing behavior

Restructure code using Fowler's refactoring catalog to improve maintainability while preserving external behavior.

Tags

Updated: 2026-11-07

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Identify code smells
  • Select Fowler techniques
  • Extract and move code
  • Simplify conditional logic
  • Preserve external behavior
  • Verify changes with tests

Inputs

  • Source code
  • Existing tests
  • Codebase history
  • Refactoring request

Outputs

  • Refactored source code
  • Characterization tests
  • Test results
  • Version-control commits

Requirements

  • Clean version-control state
  • Test execution environment
  • Access to the target codebase

Source

  • Spec: SKILL.md

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.
code refactoring
code smells
maintainability
Martin Fowler
software testing
Identify code smells
Select Fowler techniques
Extract and move code
Simplify conditional logic
Source code
Existing tests
Codebase history
Refactored source code
Characterization tests
Test results