bug-localization
Installation
SKILL.md
Bug Localization
Systematically pinpoint the exact location of bugs in a codebase using a combination of stack trace analysis, error log correlation, code flow tracing, spectrum-based fault localization, and bisection techniques. This skill transforms vague symptoms into precise file-and-line identification.
When to Use This Skill
Use this skill when you need to:
- Determine which file, class, or function contains a bug based on an error report
- Analyze stack traces to find the true origin of an exception (not just where it surfaced)
- Correlate multiple log entries to identify the point where behavior diverges from expectations
- Apply statistical fault localization techniques (Tarantula, Ochiai) to test suite results
- Use git bisect or delta debugging to narrow down the commit or change that introduced a defect
- Trace data flow through a system to find where values become incorrect
- Identify the root cause when an error manifests far from its origin
Trigger phrases: "find the bug", "localize the fault", "where is the bug", "trace the error", "analyze stack trace", "narrow down the issue", "which commit broke", "bisect the failure", "fault localization"