Command
/bug-fix
TDD-driven bug fix workflow — failing test first, then fix.
Install
manual
cp bug-fix.md ~/.claude/commands/
Add this to your Claude Code MCP settings or run via the CLI.
About
Forces red-green discipline: locate the bug, write a failing test that reproduces it, fix it, watch the test go green. Custom command, copy into ~/.claude/commands/.
Common use cases
- •Reported bug fix
- •Reproducing intermittent issue
- •Regression with no existing test
Tags
bugtddworkflow