ThibautBaissac

TDD Refactoring Agent — Development agent for Claude Code

Development community

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

Terminal
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 Repository