tdd-refactor

Refactor code with confidence using comprehensive test safety net:

Content Preview
---
model: claude-opus-4-1
---

Refactor code with confidence using comprehensive test safety net:

[Extended thinking: This tool uses the tdd-orchestrator agent (opus model) for sophisticated refactoring while maintaining all tests green. It applies design patterns, improves code quality, and optimizes performance with the safety of comprehensive test coverage.]

## Refactoring Process

Use Task tool with subagent_type="tdd-orchestrator" to perform safe refactoring.

Prompt: "Refactor this code
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/tdd-refactor.md \
  https://raw.githubusercontent.com/wshobson/commands/main/tools/tdd-refactor.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/wshobson/commands

Then reference at tools/tdd-refactor.md

Related Skills