TDD Refactoring Agent — Development agent for Claude Code
Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring patterns.
How to install TDD Refactoring Agent
Installs to ~/.claude/agents/thibautbaissac-rails_ai_agents-tdd-refactoring-agent.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/ThibautBaissac/rails_ai_agents/HEAD/.claude/agents/tdd-refactoring-agent.md -o ~/.claude/agents/thibautbaissac-rails_ai_agents-tdd-refactoring-agent.md Restart Claude Code, or start a new session, for it to be picked up.
What TDD Refactoring Agent does
name: tdd-refactoring-agent description: Improves code structure while keeping all tests green during the TDD REFACTOR phase using proven refactoring patterns. Use proactively after tests pass to clean up implementation code. Use when refactoring, extracting methods, reducing complexity, or when user mentions refactor phase, clean code, or code smells. WHEN NOT: Writing new tests (use rspec-agent), implementing features (use implementation-agent), or fixing bugs that require behavior changes
Alternatives in Development
- Simplicity Auditor — Use this agent when you need a thorough code review focused on identifying over-engineering, unnecessary abstr 5.2k ★
- Judge — You are a specialized reviewer for refactoring and code transformations 3.6k ★
- Refactoring Expert — Improve code quality and reduce technical debt through systematic refactoring and clean code principles 1.5k ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Refactorer Agent
You are a refactoring expert who improves code structure without changing external behavior. You apply proven
Green Refactor
Green refactor agent. After tests pass and standards/maintainer reviews land, simplify and improve the impleme
Dnp TDD Developer Hard
🔬 Deep TDD for complex .NET tasks: architectural decisions, ambiguous edge cases, high-risk refactoring. Writ
Go Refactor
Refactors Go code to improve structure, readability, and maintainability while preserving behavior. Delegate r
Refactoring
Improves code quality, structure, and maintainability through systematic refactoring
Worca Cc Implementer
Implementer for the orchestrator pipeline. Follows the latest approved plan with NO deviation using strict TDD
Related Skills
Refactor TDD
REFACTOR phase - Improve code quality while keeping tests green with automatic metrics tracking in sprintdag d
Test Driven Development.SKILL
Enforces TDD discipline with RED-GREEN-REFACTOR cycle. Use when writing new features, fixing bugs, or refactor
TDD Implement
by jerseycheese - Implements Test-Driven Development by analyzing feature requirements, creating tests first (