investigate

Diagnose software failures by tracing execution paths and validating root-cause hypotheses.

8|5|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/shenxingy/Clade --skill investigate-shenxingy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: investigate
Source: https://github.com/shenxingy/Clade/tree/main/configs/skills/investigate
Command: npx skills add https://github.com/shenxingy/Clade --skill investigate-shenxingy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prevents wasted debugging time and repeat failures by forcing a disciplined root-cause hypothesis before any fix is attempted.

Core Features & Use Cases

  • Root-cause hypothesis first: Requires a specific, testable claim about the failure’s underlying cause rather than addressing symptoms.
  • Structured debugging workflow: Guides symptom collection, execution path tracing, hypothesis testing, and verification.
  • Scope lock and blast-radius control: Uses a freeze directory to limit edits to the minimum scope needed for the fix.
  • Pattern-aware analysis: Helps recognize common failure classes (race conditions, stale caches, timezone/encoding issues, integration/config drift).
  • 3-strike escalation with safe stopping: If hypotheses fail repeatedly, directs the workflow to BLOCKED with a recommendation to add instrumentation or escalate.

Quick Start

Use the investigate skill to analyze why a failing command, error log, or crash is occurring in a git repo and produce a structured debug report with a confirmed root cause hypothesis.

Frequently Asked Questions about investigate

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

FAQPage Schema
How do I diagnose a root cause before fixing a bug in a git-based codebase?

A structured debugging workflow collects symptoms, traces execution paths, and validates a root-cause hypothesis before any code fix. This prevents wasted debugging time and repeat failures by ensuring you address the underlying issue rather than just treating symptoms.

What is root cause hypothesis testing in software error investigation?

Root cause hypothesis testing requires forming a specific, testable claim about a failure's underlying cause and validating it with evidence. If three hypotheses fail, the workflow directs you to a BLOCKED state with recommendations to add instrumentation or escalate.

How do I trace execution paths to investigate crashes and broken behaviors?

Trace execution paths by following the actual code flow during a failure while collecting symptoms. Pattern-aware analysis helps recognize common failure classes like race conditions, stale caches, timezone or encoding issues, and integration or config drift.

Does root cause debugging work for regression testing and recent-change correlation?

Yes, root cause debugging applies to regression testing and recent-change correlation in git-based codebases. It guides reproducibility and requires a regression test as part of the structured debug report outcome after confirming the root-cause hypothesis.

What is scope lock discipline when applying a code fix?

Scope lock discipline uses a freeze directory to limit edits to the minimum scope needed for the fix. This blast-radius control prevents unnecessary changes and ensures the code fix discipline targets only the confirmed root cause.

Why does my software debugging keep failing to fix repeat errors?

Software debugging often fails to fix repeat errors because fixes target symptoms rather than root causes. Forcing a disciplined root-cause hypothesis before any fix, combined with regression testing, prevents wasted time and repeat failures.