LogoClawIndex
CasesSkillsAbout
LogoClawIndex

refactor - Improve code structure without changing behavior

Gradually refactors existing code to improve maintainability, readability, type safety, and architecture while preserving external behavior.

Tags

Updated: 2026-12-03

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Extract functions
  • Rename variables
  • Break down large functions
  • Improve type safety
  • Eliminate code smells
  • Apply design patterns
  • Preserve external behavior
  • Enforce layer separation

Inputs

  • Existing codebase
  • Refactoring target
  • Test suite
  • Architecture constraints

Outputs

  • Refactored source files
  • Updated test files
  • Improved code structure

Requirements

  • Codebase access
  • Permission to modify files

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.
refactoring
maintainability
code quality
clean architecture
type safety
Extract functions
Rename variables
Break down large functions
Improve type safety
Existing codebase
Refactoring target
Test suite
Refactored source files
Updated test files
Improved code structure