Parallel debugging

From ngophatneknha/ai-engineering-hub · View interactive version

Parallel debugging is an AI agent skill from the GitHub repository ngophatneknha/ai-engineering-hub. Debug complex issues using competing hypotheses with parallel investigation, evidence collection, and root cause arbitration. Use this skill when debugging bugs with multiple potential causes, performing root cause analysis, or organizing parallel investigation workflows.

How to use this skill

Skill file

Parallel Debugging

Framework for debugging complex issues using the Analysis of Competing Hypotheses (ACH) methodology with parallel agent investigation.

When to Use This Skill

Hypothesis Generation Framework

Generate hypotheses across 6 failure mode categories:

1. Logic Error

2. Data Issue

3. State Problem

4. Integration Failure

5. Resource Issue

6. Environment

Evidence Collection Standards

What Constitutes Evidence

| Evidence Type | Strength | Example |

| ----------------- | -------- | --------------------------------------------------------------- |

| Direct | Strong | Code at file.ts:42 shows if (x > 0) should be if (x >= 0) |

| Correlational | Medium | Error rate increased after commit abc123 |

| Testimonial | Weak | "It works on my machine" |

| Absence | Variable | No null check found in the code path |

Citation Format

Always cite evidence with file:line references:

**Evidence**: The validation function at `src/validators/user.ts:87`
does not check for empty strings, only null/undefined. This allows
empty email addresses to pass validation.

Confidence Levels

| Level | Criteria |

| ------------------- | ----------------------------------------------------------------------------------- |

| High (>80%) | Multiple direct evidence pieces, clear causal chain, no contradicting evidence |

| Medium (50-80%) | Some direct evidence, plausible causal chain, minor ambiguities |

| Low (<50%) | Mostly correlational evidence, incomplete causal chain, some contradicting evidence |

Result Arbitration Protocol

After all investigators report:

Step 1: Categorize Results

Step 2: Compare Confirmed Hypotheses

If multiple hypotheses are confirmed, rank by:

  1. Confidence level
  2. Number of supporting evidence pieces
  3. Strength of causal chain
  4. Absence of contradicting evidence

Step 3: Determine Root Cause

Step 4: Validate Fix

Before declaring the bug fixed:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.