LogoClawIndex
CasesSkillsAbout
LogoClawIndex

refactoring-patterns - Safe Refactoring Patterns and Workflow

Provides safe refactoring workflows, common structural patterns, tooling recommendations, and pre-ship verification guidelines.

Tags

Updated: 2026-09-16
refactoringcode-qualitysoftware-designclean-codetesting

Capabilities

Extract methods classes or modulesRename code symbols and variablesMove functions and typesInline direct calls and expressions

Typical Inputs

Source codeTest suite

Typical Outputs

Refactored codeGit commits

What this skill does

  • Extract methods classes or modules
  • Rename code symbols and variables
  • Move functions and types
  • Inline direct calls and expressions
  • Replace conditionals with polymorphism
  • Introduce parameter objects
  • Replace magic numbers with constants

Inputs

  • Source code
  • Test suite

Outputs

  • Refactored code
  • Git commits

Requirements

  • Test coverage for affected code
  • Language refactoring tools or IDE
  • Git version control

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.