Parallel Debugging skill for Claude

Debug complex issues using competing hypotheses with parallel investigation, evidence collection, and root cause arbitration.

When Claude uses it

Use this skill when debugging bugs with multiple potential causes, performing root cause analysis, or organizing parallel investigation workflows.

Parallel Debugging SKILL.md

The full skill file from wshobson/agents (MIT).

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 TypeStrengthExample
DirectStrongCode at file.ts:42 shows if (x > 0) should be if (x >= 0)
CorrelationalMediumError rate increased after commit abc123
TestimonialWeak"It works on my machine"
AbsenceVariableNo 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

LevelCriteria
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

How to install Parallel Debugging

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit wshobson/agents/plugins/agent-teams/skills/parallel-debugging#main ~/.claude/skills/parallel-debugging

Codex

npx degit wshobson/agents/plugins/agent-teams/skills/parallel-debugging#main ~/.codex/skills/parallel-debugging

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Parallel Debugging skill do?

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 do I install Parallel Debugging in Claude Code?

Copy the skill folder into ~/.claude/skills/parallel-debugging, for example with "npx degit wshobson/agents/plugins/agent-teams/skills/parallel-debugging#main ~/.claude/skills/parallel-debugging". Claude Code loads it automatically and uses it when a task matches.

+Does Parallel Debugging work with ChatGPT or Codex?

Yes. Parallel Debugging uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/parallel-debugging. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Parallel Debugging free?

Parallel Debugging is published on GitHub by wshobson under the MIT license, which allows free use.

Related software development skills

  1. Code Review

    Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's…

    mattpocock/skills★ 327k
  2. Using Agent Skills

    Discovers and invokes agent skills. Use when starting a session, or when you need to decide which skill or workflow applies to the piece of…

    addyosmani/agent-skills★ 119k
  3. Build

    Fully automate a coding task with make-plan, do, and babysit.

    thedotmack/claude-mem★ 118k
  4. Preference Optimization

    Align a fine-tuned model with preference data using DPO, ORPO, KTO, or SimPO.

    wshobson/agents★ 43k
  5. Projection Patterns

    Build read models and projections from event streams. Use when implementing CQRS read sides, building materialized views, or optimizing…

    wshobson/agents★ 43k
  6. Protocol Reverse Engineering

    Master network protocol reverse engineering including packet analysis, protocol dissection, and custom protocol documentation.

    wshobson/agents★ 43k
  7. Python Anti Patterns

    Use this skill when reviewing Python code for common anti-patterns to avoid.

    wshobson/agents★ 43k
  8. Python Background Jobs

    Python background job patterns including task queues, workers, and event-driven architecture.

    wshobson/agents★ 43k
  9. Python Code Style

    Python code style, linting, formatting, naming conventions, and documentation standards.

    wshobson/agents★ 43k

See all software development skills →

More skills from wshobson

  1. Parallel Feature Development

    Coordinate parallel feature development with file ownership strategies, conflict avoidance rules, and integration patterns for multi-agent…

    wshobson/agents★ 43k
  2. Paypal Integration

    Integrate PayPal payment processing with support for express checkout, subscriptions, and refund management.

    wshobson/agents★ 43k
  3. Pci Compliance

    Implement PCI DSS compliance requirements for secure handling of payment card data and payment systems.

    wshobson/agents★ 43k

All skills by wshobson →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.