debug
/debug - Debug Command
Section titled “/debug - Debug Command”Purpose
Section titled “Purpose”Analyze and debug an error, exception, or unexpected behavior.
/debug [error message or description]Debug issue: $ARGUMENTS
Workflow
Section titled “Workflow”Step 1: Analyze Error
Section titled “Step 1: Analyze Error”- Parse error message and stack trace
- Identify error location
- Understand error type
Step 2: Investigate
Section titled “Step 2: Investigate”- Trace execution path
- Check related code
- Form hypotheses
Step 3: Fix
Section titled “Step 3: Fix”- Implement minimal fix
- Verify fix works
- Add regression test
Output
Section titled “Output”## Debug Report
### Error[Error message]
### Root Cause[Explanation]
### Fix[Code changes]
### Prevention[Test added]Gap Analysis Rule
Section titled “Gap Analysis Rule”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.