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 ★
- Bolt Executor — Use this agent when there is a clear, well-scoped task to implement in code — a feature, fix, or refactor with 523 ★
- Iwsdk Code Reviewer — Reviews IWSDK code for performance, ECS patterns, and project conventions 349 ★
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
Factory Block Implement Medium
Implements one high complexity block inside a factory solve session, given the block task and, after a tests p
Factory Block Implement
Implements one block inside a factory solve session, given the block task and, after a tests phase, its ## Han
Eval Agent
Evaluates agent output against 5-axis quality rubric (accuracy, completeness, clarity, actionability, concisen
Dev Builder
Builds ONE ticket in its own git worktree, in the background — reads the project's config and the ticket itsel
Related Skills
Refactor TDD
REFACTOR phase - Improve code quality while keeping tests green with automatic metrics tracking in sprintdag d
Engineering Fix
Applies engineering corrections from the last /engineering-audit run. Creates an isolated branch, applies chan
Cmd Refactor
Refactor phase (ACT loop): analyze, plan, baseline, execute, verify, and sync a behavior-preserving restructur