Files
claudekit/.claude/commands/debug.md
T

655 B

/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

## Debug Report

### Error
[Error message]

### Root Cause
[Explanation]

### Fix
[Code changes]

### Prevention
[Test added]