Bug Fix

Diagnose and fix a defect using reproduction-first investigation and regression testing

IAbuElRuzz Updated

File contents

Bug Fix Workflow

Bug report:

$ARGUMENTS

Required process

  1. Do not modify code until the failure is understood.
  2. Use a research subagent to trace the affected execution path.
  3. Reproduce the bug where practical.
  4. Identify the root cause, not only the visible symptom.
  5. Create or update a regression test that fails before the fix.
  6. Plan the smallest safe correction.
  7. Delegate implementation to a Sonnet subagent.
  8. Run the regression test and relevant broader tests.
  9. Use an Opus reviewer when the fix affects security, concurrency, persistence, shared infrastructure, or public APIs.
  10. Report the root cause, fix, and validation performed.

Avoid unrelated refactoring.

IAbuElRuzz/AgentSkills/tree/main/.claude/skills/bug-fix commit d8cc226018

Frequently asked questions

npx skillmds@latest add iabuelruzz/bug-fix