Initial commit
This commit is contained in:
33
commands/investigate-bug.md
Normal file
33
commands/investigate-bug.md
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
description: Deep bug investigation using consultant agent. Identifies root causes, traces execution flow, assesses blast radius, and provides fix suggestions.
|
||||
---
|
||||
|
||||
Perform deep bug investigation using the consultant agent with the following prompt:
|
||||
|
||||
---
|
||||
|
||||
# Bug Investigation Prompt
|
||||
|
||||
## Investigation Focus
|
||||
|
||||
1. **Root Cause Identification**: What's actually broken and why
|
||||
2. **Execution Flow Tracing**: Path from trigger to failure
|
||||
3. **State Analysis**: Invalid states, race conditions, timing issues
|
||||
4. **Data Validation**: Input validation gaps, edge cases
|
||||
5. **Error Handling**: Missing error handlers, improper recovery
|
||||
|
||||
## Severity Assessment
|
||||
|
||||
- **CRITICAL**: Production down, data corruption, widespread impact
|
||||
- **HIGH**: Core functionality broken, major user impact
|
||||
- **MEDIUM**: Feature partially broken, workaround available
|
||||
- **LOW**: Minor issue, limited impact
|
||||
- **INFO**: Observation, potential issue, monitoring needed
|
||||
|
||||
---
|
||||
|
||||
*End of consultant prompt.*
|
||||
|
||||
## Implementation Note
|
||||
|
||||
Use the Task tool with `subagent_type='consultant:consultant'`. The agent will gather symptoms, append them to the prompt above, invoke the consultant CLI, and report root cause analysis.
|
||||
Reference in New Issue
Block a user