# Investigate Bug

> Deep bug investigation using consultant agent. Identifies root causes and fix suggestions.

- Skill: `majiayu000/investigate-bug-2` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/investigate-bug-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/investigate-bug-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/majiayu000/investigate-bug-2

---


Investigate bug: $ARGUMENTS

---

Use the Task tool with `subagent_type='consultant:consultant'`. The agent gathers symptoms, invokes the consultant CLI, and reports root cause analysis.

**Investigation focus**:
1. **Root cause**: What's actually broken and why
2. **Execution flow**: 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 handlers, improper recovery

**Severity levels**:
- **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

