skillfed

investigate

Investigate guides you through structured debugging in five phases, from evidence collection to verified fix. It enforces the Iron Law principle—never fix without a confirmed root cause—using pattern analysis, hypothesis testing with a 3-strike escalation rule, and regression coverage. Output includes a machine-readable debug report with the full evidence chain.

Investigate enforces systematic debugging by collecting evidence and confirming root cause before applying any fix.

AI-generated summary based on this skill's SKILL.md

2,142 165 MIT updated by catlog22

Install

catlog22/Claude-Code-Workflow/investigate · repository language: TypeScript

git clone https://github.com/catlog22/Claude-Code-Workflow
cp -r Claude-Code-Workflow/.claude/skills/investigate ~/.claude/skills/investigate
npx skillfed install catlog22/Claude-Code-Workflow/investigate

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I debug my code systematically with Investigate?

Investigate guides you through five structured phases: evidence collection, pattern analysis, hypothesis testing, root cause confirmation, and verified fix implementation. The skill enforces the Iron Law—never fix without a confirmed root cause—by requiring you to gather logs, stack traces, and error patterns before proposing solutions. Each phase builds an evidence chain that feeds into a machine-readable debug report.

What is the root cause analysis process in Investigate?

Investigate uses hypothesis testing with a 3-strike escalation rule to isolate bugs. You collect error patterns across your codebase, trace them to their origin, and test minimal probes to validate each hypothesis. The skill prevents guessing by requiring structured validation at each step, ensuring you confirm the actual cause before implementing any fix.

How does Investigate help trace bug from logs and stack traces?

Investigate systematically extracts signals from logs and stack traces to map error scope and isolate the problem. It analyzes patterns across your codebase to assess how widespread the issue is, then guides you to the root cause through disciplined tracing. The output includes the full evidence chain so you can see exactly how the bug was located.

What does Investigate's debug report include?

Investigate generates a structured debug report with the complete evidence chain, confirmed root cause, and regression test coverage. The report is machine-readable, making it easy to share findings, track the investigation, and ensure your fix is validated before deployment. This enforces accountability and prevents fixes without proper justification.

Can Investigate help me debug production errors?

Yes. Investigate is designed for production error investigation by collecting evidence from live systems, tracing error patterns to assess scope, and confirming root cause before you deploy a fix. The structured methodology and regression test coverage reduce the risk of introducing new bugs while fixing the original issue.

Why does Investigate enforce the Iron Law principle?

Investigate enforces the Iron Law—never fix without a confirmed root cause—to prevent wasted effort and cascading failures. By requiring evidence collection, pattern analysis, and hypothesis validation before any fix, the skill ensures you address the actual problem, not symptoms. This disciplined approach saves time and improves code quality.

SKILL.md

rendered from the published skill — quoted content, verbatim

Investigate

Systematic debugging skill that enforces the Iron Law: never fix without a confirmed root cause. Produces a structured debug report with full evidence chain, minimal fix, and regression test.

Iron Law Principle

No fix without confirmed root cause. Every investigation follows a strict evidence chain: 1. Reproduce the bug with concrete evidence 2. Analyze patterns to assess scope 3. Form and test hypotheses (max 3 strikes) 4. Implement minimal fix ONLY after root cause is confirmed 5. Verify fix and generate structured report

Violation of the Iron Law (skipping to Phase 4 without Phase 3 confirmation) is prohibited.

Key Design Principles

  1. Evidence-First: Collect before theorizing. Logs, stack traces, and reproduction steps are mandatory inputs.
  2. Minimal Fix: Change only what is necessary. Refactoring is not debugging.
  3. 3-Strike Escalation: If 3 consecutive hypothesis tests fail, STOP and

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 8 files
.claude/skills/investigate/SKILL.md
.claude/skills/investigate/phases/01-root-cause-investigation.md
.claude/skills/investigate/phases/02-pattern-analysis.md
.claude/skills/investigate/phases/03-hypothesis-testing.md
.claude/skills/investigate/phases/04-implementation.md
.claude/skills/investigate/phases/05-verification-report.md
.claude/skills/investigate/specs/debug-report-format.md
.claude/skills/investigate/specs/iron-law.md

Related skills

Tags

evidence-driven hypothesis-validation regression-testing minimal-fixes diagnostic-workflow bug-reproduction pattern-matching escalation-protocol structured-reporting