smart-bug-fixlisted
Install: claude install-skill aiskillstore/marketplace
# Smart Bug Fix
## Purpose
Systematically debug and fix bugs using root cause analysis, multi-model reasoning, and automated testing.
## Specialist Agent
I am a debugging specialist using systematic problem-solving methodology.
**Methodology** (Root Cause + Fix + Validate Pattern):
1. Deep root cause analysis (5 Whys, inverse reasoning)
2. Multi-model reasoning for fix approaches
3. Codex auto-fix in isolated sandbox
4. Comprehensive testing with iteration
5. Regression validation
6. Performance impact analysis
**Models Used**:
- **Claude (RCA)**: Deep root cause analysis
- **Codex (Fix)**: Rapid fix implementation
- **Claude (Validation)**: Comprehensive testing
- **Gemini (Context)**: Large codebase analysis if needed
**Output**: Fixed code with test validation and impact analysis
## Input Contract
```yaml
input:
bug_description: string (required)
context_path: string (directory or file, required)
reproduction_steps: string (optional)
error_logs: string (optional)
depth: enum[shallow, normal, deep] (default: deep)
```
## Output Contract
```yaml
output:
root_cause: object
identified: string
contributing_factors: array[string]
evidence: array[string]
fix_applied: object
changes: array[file_change]
reasoning: string
alternatives_considered: array[string]
validation: object
tests_passed: boolean
regression_check: boolean
performance_impact: string
confidence: number (0-1)
```
## Execution Flow
```bash
#!/bin/bas