LogoClawIndex
CasesSkillsAbout
LogoClawIndex

refactor - Refactor Code Without Changing Behavior

Improves code structure and readability through gradual refactoring while preserving external behavior.

Tags

Updated: 2026-10-01

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Extract functions
  • Rename variables
  • Split large functions
  • Improve type safety
  • Remove code smells
  • Apply design patterns
  • Preserve external behavior

Inputs

  • Existing codebase
  • Test suite
  • Refactoring objective

Outputs

  • Refactored source files
  • Test results

Requirements

  • Executable tests

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 quality
maintainability
design patterns
type safety
Extract functions
Rename variables
Split large functions
Improve type safety
Existing codebase
Test suite
Refactoring objective
Refactored source files
Test results