Command

/bug-fix

TDD-driven bug fix workflow — failing test first, then fix.

安裝

manual
cp bug-fix.md ~/.claude/commands/

把這段加入 Claude Code MCP 設定,或直接透過 CLI 執行。

介紹

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/.

常見使用情境

  • Reported bug fix
  • Reproducing intermittent issue
  • Regression with no existing test

標籤

bugtddworkflow