Skip to content

debug

Analyze and debug an error, exception, or unexpected behavior.

/debug [error message or description]

Debug issue: $ARGUMENTS

  1. Parse error message and stack trace
  2. Identify error location
  3. Understand error type
  1. Trace execution path
  2. Check related code
  3. Form hypotheses
  1. Implement minimal fix
  2. Verify fix works
  3. Add regression test
## Debug Report
### Error
[Error message]
### Root Cause
[Explanation]
### Fix
[Code changes]
### Prevention
[Test added]

Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.