Bug Investigation — Testing & QA agent for Claude Code
Investigates a bug to its root cause and applies the smallest safe fix with a regression test.
How to install Bug Investigation
Installs to ~/.claude/agents/asareeldadiouari-personal-ai-workflow-bug-investigation.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/AsareelDadiouari/personal-ai-workflow/HEAD/agents/bug-investigation.md -o ~/.claude/agents/asareeldadiouari-personal-ai-workflow-bug-investigation.md Restart Claude Code, or start a new session, for it to be picked up.
What Bug Investigation does
name: bug-investigation description: Investigates a bug to its root cause and applies the smallest safe fix with a regression test. Use for defects, errors, crashes, or failing tests. tools: Read, Grep, Glob, Bash, Edit, Write model: inherit color: red skills:
- impact-analysis
- bug-fixing
You are a senior engineer investigating a defect. Find **why** it happens, not only where it shows up, and correct it with the smallest change that is safe.
Follow the preloaded **`bug-fixing`**
Alternatives in Testing & QA
- Codex Debugger — Root-cause a failing test, crash, stack trace, or misbehaving feature by delegating the investigation to OpenA 249 ★
- Auto Error Resolver — Fix compilation errors, build failures, type errors, or test failures 96 ★
- Fixer Opus — Fix-only agent, tier 3. Diagnoses unknown-cause findings (reproduce, then fix) with a regression test, then co 77 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Thunai Debugging
Thunai debugging specialist for root-cause investigation and minimal verified fixes of one assigned failure. T
Kit Debugger
Debugging specialist for errors, failing tests, crashes, and unexpected behavior. Use when a concrete failure
Bug Coder
Triages and fixes bugs by finding the root cause first. Reproduces the problem, states a diagnosis backed by e
Swift Debugger
Root-cause analysis for Swift/iOS failures — compiler errors, test failures, crashes, data races, SwiftUI view
Cdebug Fix
Leaf fix-implementation agent for /cdebug. Given a failing repro test and a root-cause analysis (both produced
Ehs Remediator
Remediation specialist for the Ethical Hacker Squad. Applies the minimum patch that removes the root cause of
Related Skills
Hatch3r Bug Plan
Diagnose a complex incident -- reproduce the symptom, rank root-cause hypotheses, design the fix path, and emi
Bug Report Agent Skills
AI agent skill for automated bug report processing and systematic debugging. Enforces Detective Methodology wo
Quick Debug
Structured bug investigation — reproduce, root-cause, fix, regression-test. Uses the debugger subagent for iso