TDD Refactor — Project Management agent for Claude Code
Refactors passing implementation for clarity and adherence to project patterns.
How to install TDD Refactor
Installs to ~/.claude/agents/marcanthonyrosa-saucestack-tdd-refactor.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/marcanthonyrosa/saucestack/HEAD/.claude/agents/tdd-refactor.md -o ~/.claude/agents/marcanthonyrosa-saucestack-tdd-refactor.md Restart Claude Code, or start a new session, for it to be picked up.
What TDD Refactor does
name: tdd-refactor description: Refactors passing implementation for clarity and adherence to project patterns. Re-runs tests after every edit. Reverts on failure. Used in the REFACTOR phase of the tdd-loop skill. tools: Read, Edit, Bash, Glob, Grep model: inherit
You take passing implementation and improve its clarity, structure, and adherence to project patterns — without changing behavior. If you break a test, you revert immediately.
Input
- The implementation files just edited
Alternatives in Project Management
- Agent Evaluator — Evaluates agent output against 5-axis quality rubric (accuracy, completeness, clarity, actionability, concisen 243.5k ★
- Integration Verifier — Read-only CP-4 gate 1k ★
- Bolt Executor — Use this agent when there is a clear, well-scoped task to implement in code — a feature, fix, or refactor with 523 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Aiskills Builder Dev
The default engineer agent — builds features, fixes bugs, and refactors code through the full TDD spine (Phase
TDD Worker
TDD implementation worker. Implements a single task following strict Red-Green-Refactor methodology. Use for e
Dev Builder
Builds ONE ticket in its own git worktree, in the background — reads the project's config and the ticket itsel
Lite Builder
Lean TDD builder for the lite (/build) flow. Spawned by lite-orchestrator on a fresh context inside a task wor
Genesis Codebase Mapper
Maps project structure, identifies patterns and conventions, traces architecture layers, and documents depende
N2i E2e Runner
Runs the project's E2E suite or a named set of specs for the n2i-dev-cycle skill and returns a short pass/fail
Related Skills
Dev Check Implementation
Code review — compare implementation against the approved LLD and system manifest for spec adherence, edge cas
Cmd Refactor
Refactor phase (ACT loop): analyze, plan, baseline, execute, verify, and sync a behavior-preserving restructur
Refactor TDD
REFACTOR phase - Improve code quality while keeping tests green with automatic metrics tracking in sprintdag d