accessibility-audit
You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct comprehensive audits,…
Debug issues using competing hypotheses with parallel investigation by multiple agents
$ npx -y skills add wshobson/agents --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/team-debugContext preview
What this command does when you run it.
Debug issues using competing hypotheses with parallel investigation by multiple agents
description: "Debug issues using competing hypotheses with parallel investigation by multiple agents" argument-hint: "<error-description-or-file> [--hypotheses N] [--scope files|module|project]"
Debug complex issues using the Analysis of Competing Hypotheses (ACH) methodology. Multiple debugger agents investigate different hypotheses in parallel, gathering evidence to confirm or falsify each one.
1. Verify `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` is set 2. Parse `$ARGUMENTS`:
1. Analyze the error description or file:
2. Identify the symptom clearly: what is failing, when, and how 3. Gather initial context: recent git changes, related tests, configuration
Generate N hypotheses about the root cause, covering different failure mode categories:
1. **Logic Error** — Incorrect algorithm, wrong condition, off-by-one, missing edge case 2. **Data Issue** — Invalid input, type mismatch, null/undefined, encoding problem 3. **State Problem** — Race condition, stale cache, incorrect initialization, mutation bug 4. **Integration Failure** — API contract violation, version mismatch, configuration error 5. **Resource Issue** — Memory leak, connection exhaustion, timeout, disk space 6. **Environment** — Missing dependency, wrong version, platform-specific behavior
Present hypotheses to user: "Generated {N} hypotheses. Spawning investigators..."
1. Use `TeamCreate` tool to create the team with `team_name: "debug-{timestamp}"` and `description` 2. For each hypothesis, use `Agent` tool to spawn a teammate:
3. Use `TaskCreate` for each investigator's task:
1. Monitor TaskList for completion 2. As investigators complete, collect their evidence reports 3. Track: "{completed}/{total} investigations complete"
1. Compare findings across all investigators:
2. Rank confirmed hypotheses by:
3. Present root cause analysis:
## Debug Report: {error description}
### Root Cause (Most Likely)
**Hypothesis**: {description}
**Confidence**: {High/Medium/Low}
**Evidence**: {summary with file:line citations}
**Causal Chain**: {step-by-step from cause to symptom}
### Recommended Fix
{specific fix with code changes}
### Other Hypotheses
- {hypothesis 2}: {status} — {brief evidence summary}
- {hypothesis 3}: {status} — {brief evidence summary}1. Send `shutdown_request` to all investigators 2. Call `TeamDelete` to remove team resources
Production-ready agentic workflow building blocks: 94 plugins, 202 agents, 183 skills, 105 commands — built for Claude Code and consumed natively by OpenAI Codex CLI, Cursor, OpenCode, the Antigravity CLI, GitHub Copilot, and Pi from a single Markdown source.
Repo: wshobson/agents
You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct comprehensive audits,…
Systematic improvement of existing agents through performance analysis, prompt engineering, and continuous iteration.
The Multi-Agent Optimization Tool is an advanced AI-driven framework designed to holistically improve system performance through intelligent, coordinated…
Task delegation dashboard for managing team workload, assignments, and rebalancing
Develop features in parallel with multiple agents using file ownership boundaries and dependency management
Launch a multi-reviewer parallel code review with specialized review dimensions