investigate

Diagnose bugs through systematic root cause investigation and verified fixes.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/bobbo01/B2BPlatform --skill investigate-bobbo01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: investigate
Source: https://github.com/bobbo01/B2BPlatform/tree/main/.agents/skills/gstack-investigate
Command: npx skills add https://github.com/bobbo01/B2BPlatform --skill investigate-bobbo01

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging often devolves into guessing and symptom-patching, which creates whack-a-mole bugs that resurface later. This Skill enforces a disciplined five-phase debugging workflow that finds the actual root cause before any fix is applied, then proves the fix with a regression test. ## Core Features & Use Cases - Root Cause Investigation: Collects symptoms, traces code paths with Grep and Read, checks recent git history, and reproduces the bug before forming any hypothesis. - Hypothesis Testing with Guardrails: Matches bugs against known patterns (race conditions, null propagation, state corruption, config drift), applies a 3-strike escalation rule, and locks edit scope to the affected directory to prevent scope creep. - Verified Fixes with Regression Tests: Requires a test that fails without the fix and passes with it, runs the full test suite, and outputs a structured debug report with file:line evidence. - Use Case: A user reports "login intermittently fails in production." The Skill traces the auth flow, checks recent commits to the session module, identifies a race condition in token refresh, confirms it with a temporary log, applies a minimal fix, and adds a regression test. ## Quick Start Ask the assistant to investigate why a specific error or unexpected behavior is happening and find the root cause before fixing it.

Frequently Asked Questions about investigate

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

FAQPage Schema
How do I debug a bug systematically instead of guessing?

Follow a phased approach: collect symptoms and stack traces, trace the code path from symptom to cause, check recent git changes, and reproduce the bug before forming a hypothesis. Only apply a fix after the root cause is confirmed with evidence.

What is root cause analysis in software debugging?

Root cause analysis identifies the underlying defect causing a bug rather than patching its symptoms. It involves tracing data flow, testing a specific hypothesis with temporary logging, and verifying the fix with a regression test that fails without it.

How do I write a regression test for a bug fix?

Write a test that reproduces the original bug scenario and fails before the fix is applied, then passes after. This proves both that the test is meaningful and that the fix actually resolves the root cause.

Why do my bug fixes keep causing new bugs elsewhere?

Recurring failures after fixes usually mean you are patching symptoms at the wrong layer, not the root cause. If three hypotheses fail, stop and escalate, since the issue is likely architectural rather than a simple defect.

When should a debugging session be escalated to a human?

Escalate after three failed hypotheses, when a fix touches more than five files, when the change is security-sensitive and uncertain, or when the bug cannot be reproduced and verified. Bad work is worse than no work.