investigate

Investigate software errors through a four-phase root-cause workflow.

6|2|Updated Oct 18, 2021
One-click install
npx skills add https://github.com/jerrywu001/jerrywu001 --skill investigate-jerrywu001
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: investigate
Source: https://github.com/jerrywu001/jerrywu001/tree/main/.claude/skills/investigate
Command: npx skills add https://github.com/jerrywu001/jerrywu001 --skill investigate-jerrywu001

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you debug errors and broken behavior by systematically locating the root cause instead of applying guesses or temporary patches.

Core Features & Use Cases

  • Four-phase root-cause workflow: investigate, analyze, hypothesize, and implement in a controlled sequence.
  • Evidence-first confirmation: validates hypotheses before making changes, reducing the chance of whack-a-mole failures.
  • Scope locking to prevent scope creep: restricts edits to the narrowest affected area when possible so you don’t accidentally break adjacent systems.
  • Pattern recognition and targeted searches: checks for common bug patterns (race, nil propagation, state corruption, integration failure, config drift, stale cache) and uses targeted information search when needed.

Quick Start

Tell the AI: “Investigate this bug/error and find the root cause, then propose the smallest safe fix with a regression test.”

Frequently Asked Questions about investigate

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

FAQPage Schema
How do I find the root cause of a software bug instead of just patching symptoms?

To find the root cause of a software bug, you need a systematic workflow that investigates the error, analyzes the code path, hypothesizes the cause, and implements the fix. This approach validates hypotheses with evidence before making changes to prevent whack-a-mole failures.

What is the best way to debug failing tests and trace stack traces to the responsible code?

The best way to debug failing tests is using a root-cause-first workflow that traces stack traces to the responsible code path. It checks for common bug patterns like race conditions, nil propagation, and state corruption to locate the exact failure point.

How do I fix unexpected software behavior without breaking adjacent systems?

To fix unexpected software behavior without breaking adjacent systems, apply scope locking to restrict edits to the narrowest affected module. This prevents scope creep and ensures your regression test targets only the verified root cause.

Does evidence-first debugging help prevent regression errors when modifying code?

Evidence-first debugging prevents regression errors by requiring hypothesis confirmation before applying any code changes. By validating the root cause first, you ensure the fix is safe and targeted, reducing the chance of introducing new failures.

What common bug patterns should I check for during error investigation?

During error investigation, you should check for common bug patterns including race conditions, nil propagation, state corruption, integration failures, config drift, and stale cache. Identifying these patterns helps trace the root cause faster.