LogoClawIndex
CasesSkillsAbout
LogoClawIndex

refactor - Code Refactoring Skill for Behavior-Preserving Code Improvement

Refactor existing code to improve readability, maintainability, and structure while preserving external behavior

Tags

Updated: 2026-02-14

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • rename types and functions
  • extract functions and methods
  • inline trivial wrappers
  • introduce parameter objects
  • replace nested conditionals
  • extract shared logic
  • split large modules

Inputs

  • existing codebase
  • test suite
  • public API specification
  • performance requirements
  • logging contracts

Outputs

  • refactored code
  • updated documentation
  • cleaner diffs
  • preserved test passing
  • unchanged public APIs

Requirements

  • access to code repository
  • version control system
  • compiler/typechecker
  • test framework

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-quality
refactoring
maintainability
software-engineering
rename types and functions
extract functions and methods
inline trivial wrappers
introduce parameter objects
existing codebase
test suite
public API specification
refactored code
updated documentation
cleaner diffs