bug-hunter

Diagnose and fix software bugs through systematic root-cause debugging workflows.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/5onyy/essential-ai-agent-skills --skill bug-hunter-5onyy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bug-hunter
Source: https://github.com/5onyy/essential-ai-agent-skills/tree/main/.cursor/skills/bug-hunter
Command: npx skills add https://github.com/5onyy/essential-ai-agent-skills --skill bug-hunter-5onyy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging often devolves into guesswork and random code changes that mask symptoms instead of fixing root causes. This Skill enforces a disciplined, evidence-driven debugging process so bugs get reproduced, traced, fixed, and prevented from recurring. ## Core Features & Use Cases - Structured Debugging Process: Guides through eight stages from reproduction and evidence gathering to hypothesis testing, root-cause analysis, and regression prevention. - Proven Techniques Library: Covers binary search, rubber duck debugging, print debugging, diff debugging, and git bisect time-travel debugging. - Common Bug Patterns: Provides concrete fixes for null/undefined errors, race conditions, off-by-one errors, type coercion, and missing await issues. - Use Case: When a user reports that login sessions expire immediately, the Skill walks through reproducing the timeout, tracing session cookie configuration, fixing the root cause in the auth flow, and adding a regression test. ## Quick Start Use the bug-hunter skill to systematically debug and fix the login timeout issue in my application.

Frequently Asked Questions about bug-hunter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug a bug I cannot reproduce?▼

Gather more context first: identify the environment (dev, staging, prod), browser or device, user actions preceding the failure, and any error logs. Intermittent bugs often require checking for race conditions, timing issues, or environment-specific configuration differences.

What is the best way to find the root cause of a bug?▼

Trace backward from the symptom through each layer of the stack until you find where correct behavior breaks down. Use logging, breakpoints, and binary search checkpoints to narrow the problem space, then fix the originating cause rather than patching the visible symptom.

How do I use git bisect to find when a bug was introduced?▼

Run git bisect start, mark the current broken commit with git bisect bad, and mark a known working commit with git bisect good. Git checks out intermediate commits for you to test, narrowing down the exact commit that introduced the regression.

Why does my async function return undefined in JavaScript?▼

Calling an async function without await returns a pending Promise, not the resolved value. Add await before the call, or use .then() chaining, so execution pauses until the asynchronous operation completes and the actual data is available.

When should I fix a symptom instead of the root cause?▼

Symptom-level fixes like optional chaining with fallback values are acceptable only as temporary mitigations. Permanent fixes should address the root cause, such as ensuring required data is set during initialization, and include a regression test to prevent recurrence.