LogoClawIndex
CasesSkillsAbout
LogoClawIndex

tdd-workflows-tdd-refactor - TDD Refactor Workflow

Refactor code while keeping tests green using the TDD refactor process and tdd-orchestrator subagent.

Tags

Updated: 2026-09-17
tddrefactortestingcode-quality

Capabilities

Detect code smellsApply design patternsApply SOLID principlesOptimize performance

Typical Inputs

Code to refactorExisting test suiteImplementation playbook resource

Typical Outputs

Refactored codeTest resultsBefore and after metrics comparison

What this skill does

  • Detect code smells
  • Apply design patterns
  • Apply SOLID principles
  • Optimize performance
  • Verify test safety
  • Revert failing changes

Inputs

  • Code to refactor
  • Existing test suite
  • Implementation playbook resource

Outputs

  • Refactored code
  • Test results
  • Before and after metrics comparison
  • Applied refactoring techniques list
  • Performance improvement measurements
  • Technical debt assessment

Requirements

  • Task tool
  • tdd-orchestrator subagent
  • Opus model

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.