investigate

Diagnose bugs through systematic root cause investigation and verified fixes.

1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/TarunTeja44/portfolio --skill investigate-tarunteja44
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: investigate
Source: https://github.com/TarunTeja44/portfolio/tree/main/.agents/skills/investigate
Command: npx skills add https://github.com/TarunTeja44/portfolio --skill investigate-tarunteja44

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Debugging often devolves into guessing and symptom-patching, where each quick fix creates new bugs elsewhere. This Skill enforces a disciplined four-phase debugging workflow that finds the actual root cause before any code is changed, then proves the fix works 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 requires reproduction before forming a hypothesis. - Hypothesis Testing with Guardrails: Matches bugs against known patterns (race conditions, null propagation, state corruption, config drift), optionally searches the web for sanitized error signatures, and stops after 3 failed hypotheses to escalate. - Scope Locking: Restricts edits to the affected directory via a freeze mechanism, preventing scope creep during a debug session. - Verified Fixes: Requires a regression test that fails without the fix and passes with it, plus a full test suite run and a structured debug report. - Use Case: A user reports "the checkout total is wrong after applying a coupon." The Skill traces the discount calculation, finds a recent commit changed rounding order, confirms the hypothesis with a log statement, fixes the root cause, and adds a regression test. ## Quick Start Ask the assistant to debug this error and find the root cause before changing any code.

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 reproduce the bug, trace the code path and recent git changes, form one testable root cause hypothesis, verify it with a temporary log or assertion, then fix only the root cause and add a regression test that fails without the fix.

What is root cause analysis in software debugging?

Root cause analysis identifies the underlying reason a bug occurs rather than patching its visible symptom. It involves reading error output, tracing data flow, checking recent commits for regressions, and confirming the hypothesis with evidence before writing any fix.

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

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

When should I stop debugging and escalate 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. Repeated failures usually signal an architectural issue rather than a simple bug.

Why do quick fixes make debugging harder over time?

Fixing symptoms without addressing root cause creates whack-a-mole debugging, where each patch masks the real problem and introduces new failure modes. Recurring bugs in the same files indicate an architectural smell that needs investigation, not another patch.