LogoClawIndex
CasesSkillsAbout
LogoClawIndex

code-refactorer - Refactor working code into layered architecture

Restructure working code into a clean layered architecture and apply SOLID while preserving outputs, side effects, errors, and timing.

Tags

Updated: 2026-11-06

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Apply SOLID principles
  • Map code to layers
  • Split god classes
  • Introduce interfaces
  • Preserve behavior exactly
  • Verify compiler and tests
  • Commit each refactoring step
  • Report discovered bugs

Inputs

  • Working source code
  • Repository task scope
  • Repository Git rules
  • Compiler and build configuration
  • Existing test suite

Outputs

  • Refactored source files
  • Layered module structure
  • Behavior verification results
  • Incremental Git commits
  • Discovered bug notes

Requirements

  • Git repository access
  • Compiler or build tool
  • Existing tests when available

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
SOLID
layered architecture
dependency injection
software architecture
Apply SOLID principles
Map code to layers
Split god classes
Introduce interfaces
Working source code
Repository task scope
Repository Git rules
Refactored source files
Layered module structure
Behavior verification results