Back to Library
Bug Investigation Task
task
Systematic approach to debugging issues with clear investigation steps
debuggingbug-fixinvestigationworkflow
Prompt Content
# Bug Investigation
## Issue: {{issue_description}}
## Investigation Steps
### 1. Reproduce
- Understand the exact steps to reproduce
- Note any error messages or unexpected behavior
### 2. Locate
- Search for relevant code using grep/find
- Trace the data flow from trigger to symptom
- Check recent changes in git history
### 3. Diagnose
- Add console.log or debugger statements
- Check browser DevTools (Network, Console)
- Verify data at each step
### 4. Fix
- Make the minimal change needed
- Consider edge cases
- Don't break existing functionality
### 5. Verify
- Test the fix thoroughly
- Check for regressions
- Update tests if neededVariables
This prompt uses the following variables that should be replaced
{{issue_description}}issue_descriptionstringRequired
Description of the bug to investigate
Details
- Category
- task
- Version
- 1
- Created
- 12/12/2025
- Last Updated
- 12/12/2025