mirror of
https://github.com/duthaho/claudekit.git
synced 2026-06-14 22:14:57 +03:00
54 lines
655 B
Markdown
54 lines
655 B
Markdown
# /debug - Debug Command
|
|
|
|
## Purpose
|
|
|
|
Analyze and debug an error, exception, or unexpected behavior.
|
|
|
|
## Usage
|
|
|
|
```
|
|
/debug [error message or description]
|
|
```
|
|
|
|
---
|
|
|
|
Debug issue: **$ARGUMENTS**
|
|
|
|
## Workflow
|
|
|
|
### Step 1: Analyze Error
|
|
|
|
1. Parse error message and stack trace
|
|
2. Identify error location
|
|
3. Understand error type
|
|
|
|
### Step 2: Investigate
|
|
|
|
1. Trace execution path
|
|
2. Check related code
|
|
3. Form hypotheses
|
|
|
|
### Step 3: Fix
|
|
|
|
1. Implement minimal fix
|
|
2. Verify fix works
|
|
3. Add regression test
|
|
|
|
## Output
|
|
|
|
```markdown
|
|
## Debug Report
|
|
|
|
### Error
|
|
[Error message]
|
|
|
|
### Root Cause
|
|
[Explanation]
|
|
|
|
### Fix
|
|
[Code changes]
|
|
|
|
### Prevention
|
|
[Test added]
|
|
```
|