Debug complex issues using competing hypotheses

Parallel debugging

by wshobson · MIT license · ★ 39,857 on GitHub · v1.0.2 · updated Sep 21

Parallel debugging cover

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…

---
name: parallel-debugging
description: 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.
version: 1.0.2
---

# Parallel Debugging

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

## When to Use This Skill

- Bug has multiple plausible root causes
- Initial debugging attempts haven't identified the issue
- Issue spans multiple modules or components
- Need systematic root cause analysis with evidence
- Want to avoid confirmation bias in debugging

Overview

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

Manual install (npx, ZIP)
Claude Codenpx skills add wshobson/agents --skill parallel-debugging -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/wshobson/agents/tar.gz/4236bb91f839 \ | tar -xz -C ~/.claude/skills --strip-components=4 agents-4236bb91f839/plugins/agent-teams/skills/parallel-debugging
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/3262a5034a0d4367899f/parallel-debugging.zip" -OutFile "$env:TEMP\parallel-debugging.zip"; Expand-Archive "$env:TEMP\parallel-debugging.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md4.6 KB
  • references/1 file · 3.2 KB
Read the files here
wshobson/4236bb92 files
SKILL.md
Show the full text134 lines

Parallel Debugging

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

When to Use This Skill

  • Bug has multiple plausible root causes
  • Initial debugging attempts haven't identified the issue
  • Issue spans multiple modules or components
  • Need systematic root cause analysis with evidence
  • Want to avoid confirmation bias in debugging

Hypothesis Generation Framework

Generate hypotheses across 6 failure mode categories:

1. Logic Error
  • Incorrect conditional logic (wrong operator, missing case)
  • Off-by-one errors in loops or array access
  • Missing edge case handling
  • Incorrect algorithm implementation
2. Data Issue
  • Invalid or unexpected input data
  • Type mismatch or coercion error
  • Null/undefined/None where value expected
  • Encoding or serialization problem
  • Data truncation or overflow
3. State Problem
  • Race condition between concurrent operations
  • Stale cache returning outdated data
  • Incorrect initialization or default values
  • Unintended mutation of shared state
  • State machine transition error
4. Integration Failure
  • API contract violation (request/response mismatch)
  • Version incompatibility between components
  • Configuration mismatch between environments
  • Missing or incorrect environment variables
  • Network timeout or connection failure
5. Resource Issue
  • Memory leak causing gradual degradation
  • Connection pool exhaustion
  • File descriptor or handle leak
  • Disk space or quota exceeded
  • CPU saturation from inefficient processing
6. Environment
  • Missing runtime dependency
  • Wrong library or framework version
  • Platform-specific behavior difference
  • Permission or access control issue
  • Timezone or locale-related behavior

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
  • Confirmed: High confidence, strong evidence, clear causal chain
  • Plausible: Medium confidence, some evidence, reasonable causal chain
  • Falsified: Evidence contradicts the hypothesis
  • Inconclusive: Insufficient evidence to confirm or falsify
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
  • If one hypothesis clearly dominates: declare as root cause
  • If multiple hypotheses are equally likely: may be compound issue (multiple contributing causes)
  • If no hypotheses confirmed: generate new hypotheses based on evidence gathered
Step 4: Validate Fix

Before declaring the bug fixed:

  • Fix addresses the identified root cause
  • Fix doesn't introduce new issues
  • Original reproduction case no longer fails
  • Related edge cases are covered
  • Relevant tests are added or updated
1---
2name: parallel-debugging
3description: 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.
4version: 1.0.2
5---
6 
7# Parallel Debugging
8 
9Framework for debugging complex issues using the Analysis of Competing Hypotheses (ACH) methodology with parallel agent investigation.
10 
11## When to Use This Skill
12 
13- Bug has multiple plausible root causes
14- Initial debugging attempts haven't identified the issue
15- Issue spans multiple modules or components
16- Need systematic root cause analysis with evidence
17- Want to avoid confirmation bias in debugging
18 
19## Hypothesis Generation Framework
20 
21Generate hypotheses across 6 failure mode categories:
22 
23### 1. Logic Error
24 
25- Incorrect conditional logic (wrong operator, missing case)
26- Off-by-one errors in loops or array access
27- Missing edge case handling
28- Incorrect algorithm implementation
29 
30### 2. Data Issue
31 
32- Invalid or unexpected input data
33- Type mismatch or coercion error
34- Null/undefined/None where value expected
35- Encoding or serialization problem
36- Data truncation or overflow
37 
38### 3. State Problem
39 
40- Race condition between concurrent operations
41- Stale cache returning outdated data
42- Incorrect initialization or default values
43- Unintended mutation of shared state
44- State machine transition error
45 
46### 4. Integration Failure
47 
48- API contract violation (request/response mismatch)
49- Version incompatibility between components
50- Configuration mismatch between environments
51- Missing or incorrect environment variables
52- Network timeout or connection failure
53 
54### 5. Resource Issue
55 
56- Memory leak causing gradual degradation
57- Connection pool exhaustion
58- File descriptor or handle leak
59- Disk space or quota exceeded
60- CPU saturation from inefficient processing
61 
62### 6. Environment
63 
64- Missing runtime dependency
65- Wrong library or framework version
66- Platform-specific behavior difference
67- Permission or access control issue
68- Timezone or locale-related behavior
69 
70## Evidence Collection Standards
71 
72### What Constitutes Evidence
73 
74| Evidence Type | Strength | Example |
75| ----------------- | -------- | --------------------------------------------------------------- |
76| **Direct** | Strong | Code at `file.ts:42` shows `if (x > 0)` should be `if (x >= 0)` |
77| **Correlational** | Medium | Error rate increased after commit `abc123` |
78| **Testimonial** | Weak | "It works on my machine" |
79| **Absence** | Variable | No null check found in the code path |
80 
81### Citation Format
82 
83Always cite evidence with file:line references:
84 
85```
86**Evidence**: The validation function at `src/validators/user.ts:87`
87does not check for empty strings, only null/undefined. This allows
88empty email addresses to pass validation.
89```
90 
91### Confidence Levels
92 
93| Level | Criteria |
94| ------------------- | ----------------------------------------------------------------------------------- |
95| **High (>80%)** | Multiple direct evidence pieces, clear causal chain, no contradicting evidence |
96| **Medium (50-80%)** | Some direct evidence, plausible causal chain, minor ambiguities |
97| **Low (<50%)** | Mostly correlational evidence, incomplete causal chain, some contradicting evidence |
98 
99## Result Arbitration Protocol
100 
101After all investigators report:
102 
103### Step 1: Categorize Results
104 
105- **Confirmed**: High confidence, strong evidence, clear causal chain
106- **Plausible**: Medium confidence, some evidence, reasonable causal chain
107- **Falsified**: Evidence contradicts the hypothesis
108- **Inconclusive**: Insufficient evidence to confirm or falsify
109 
110### Step 2: Compare Confirmed Hypotheses
111 
112If multiple hypotheses are confirmed, rank by:
113 
1141. Confidence level
1152. Number of supporting evidence pieces
1163. Strength of causal chain
1174. Absence of contradicting evidence
118 
119### Step 3: Determine Root Cause
120 
121- If one hypothesis clearly dominates: declare as root cause
122- If multiple hypotheses are equally likely: may be compound issue (multiple contributing causes)
123- If no hypotheses confirmed: generate new hypotheses based on evidence gathered
124 
125### Step 4: Validate Fix
126 
127Before declaring the bug fixed:
128 
129- [ ] Fix addresses the identified root cause
130- [ ] Fix doesn't introduce new issues
131- [ ] Original reproduction case no longer fails
132- [ ] Related edge cases are covered
133- [ ] Relevant tests are added or updated
134 
View all files on GitHub →

Details

Version
1.0.2
Updated
Sep 21, 2026
License
MIT
Stars on the repo
★ 39,857
Checked
Source
wshobson/agents ↗
Creator
wshobson · 179 listings
View creator

Similar skills

See all →
MCPExpert debugging specialist for errors, test failuresDebugger AgentCloudAI-X/claude-workflow-v2 · by CloudAI-XExpert debugging specialist for errors, test failures, crashes, segmentation faults, memory leaks, timeouts, race conditions, deadlocks, and unexpected behavior. Use PROACTIVELY when encountering any error, exception, or failing test. Performs systematic root cause analysis.★ 1.4k GitHub starsSkillEncountering any bug, test failure, or unexpected behaviorSystematic debuggingobra/superpowers · by obraUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes★ 290k GitHub starsSkillRequires running verification commands and confirming outputVerification before completionobra/superpowers · by obraUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always★ 290k GitHub starsSkillGuides systematic root-cause debuggingDebugging and error recoveryaddyosmani/agent-skills · by addyosmaniGuides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.★ 98.7k GitHub starsSkillMaster systematic debugging techniques, profiling toolsDebugging strategieswshobson/agents · by wshobsonMaster systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or technology stack. Use when investigating bugs, performance issues, or unexpected behavior.★ 39.9k GitHub starsSkillMaster error handling patterns across languages includingwshobson/agents · by wshobsonMaster error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.★ 39.9k GitHub stars

More from wshobson

SkillMaster C/.NET backend development patterns for buildingwshobson/agents · by wshobsonMaster C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.★ 39.9k GitHub starsSkillImplement WCAG 2.2 compliant interfaces with mobileAccessibility compliancewshobson/agents · by wshobsonImplement WCAG 2.2 compliant interfaces with mobile accessibility, inclusive design patterns, and assistive technology support. Use when auditing accessibility, implementing ARIA patterns, building for screen readers, or ensuring inclusive user experiences.★ 39.9k GitHub starsSkillMaster Material Design 3 and Jetpack Compose patternsAndroid Mobile Designwshobson/agents · by wshobsonMaster Material Design 3 and Jetpack Compose patterns for building native Android apps. Use when designing Android interfaces, implementing Compose UI, or following Google's Material Design guidelines.★ 39.9k GitHub starsSkillMigrate from AngularJS to Angular using hybrid modeAngular migrationwshobson/agents · by wshobsonMigrate from AngularJS to Angular using hybrid mode, incremental component rewriting, and dependency injection updates. Use when upgrading AngularJS applications, planning framework migrations, or modernizing legacy Angular code.★ 39.9k GitHub starsSkillUnderstand anti-reversing, obfuscationAnti reversing techniqueswshobson/agents · by wshobsonUnderstand anti-reversing, obfuscation, and protection techniques encountered during software analysis. Use this skill when analyzing malware evasion techniques, when implementing anti-debugging protections for CTF challenges, when reverse engineering packed binaries, or when building security research tools that need to detect virtualized environments.★ 39.9k GitHub starsSkillBuild production Apache Airflow DAGs with best practicesApache Airflow DAG Patternswshobson/agents · by wshobsonBuild production Apache Airflow DAGs with best practices for operators, sensors, testing, and deployment. Use when creating data pipelines, orchestrating workflows, or scheduling batch jobs.★ 39.9k GitHub stars