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.

refactoring - Refactor existing code safely with tests

Diagnose code smells, select Fowler refactorings, and apply them in small, tested steps without changing observable behavior.

Tags

Updated: 2026-09-28

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Diagnose code smells
  • Select refactoring techniques
  • Establish a test safety net
  • Apply refactorings incrementally
  • Run compilation and tests
  • Review refactoring outcomes

Inputs

  • Existing codebase
  • Existing test suite
  • Refactoring target
  • Programming language

Outputs

  • Refactored source code
  • Additional automated tests
  • Step-by-step refactoring guidance
  • Compilation and test results

Requirements

  • Access to the codebase
  • Automated test capability
  • Compilation or build capability

Source

  • Spec: SKILL.md
refactoring
code smells
software design
automated testing
legacy code
JavaScript
Diagnose code smells
Select refactoring techniques
Establish a test safety net
Apply refactorings incrementally
Existing codebase
Existing test suite
Refactoring target
Refactored source code
Additional automated tests
Step-by-step refactoring guidance