# Investigate Bug

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

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

---


Investigate bug: $ARGUMENTS

---

Launch the consultant:consultant agent. 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

