Refactor Rails code after tests pass
rails-refactoring-expertsubagentsetup L2★6
svs/mumbai-communities ↗What it does
Refactor Rails code to idiomatic patterns
Best for
Cleaning up working Rails code while keeping tests green.
Inputs
- · project context (code/docs/conventions)
- · task assignment with scope
Outputs
- · structured findings or specification document
Preconditions
All tests passing; existing code patterns established
Failure modes
- · Starts in non-green state — breaks tests or introduces regressions
- · Over-engineers beyond existing spec — violates DRY
Trust signals
- · Verifies all tests pass after each change
- · Cites framework idiom docs for pattern choices