Help us improve
Share bugs, ideas, or general feedback.
From ultra-debug
Spawn debugger and critic agents to collaboratively investigate a bug's root cause through adversarial hypothesis testing. Produces a grounded markdown report with no speculation.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ultra-debug:ultra-debugThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Orchestrate a team of debugger agents and a critic agent to investigate the root cause of a production issue through adversarial hypothesis testing.
Share bugs, ideas, or general feedback.
Orchestrate a team of debugger agents and a critic agent to investigate the root cause of a production issue through adversarial hypothesis testing.
The user provides: $ARGUMENTS
This may be a Sentry issue URL/ID, a problem description, relevant shop IDs, timestamps, error messages, or any combination.
Spend minimal time here — just enough to frame the problem and form hypotheses. Quick searches are fine; deep investigation is the debuggers' job.
Do NOT spend more than a few tool calls here. Move on to hypothesis formation quickly.
Based on the summary and your general knowledge of the system, generate 5 distinct, testable hypotheses. Each hypothesis must be:
TeamCreate with team_name: "ultra-debug-<short-kebab-description>"
Create one task per hypothesis using TaskCreate:
Investigate: <hypothesis summary>Create one task for the critic:
Critique all hypothesesSpawn all agents in parallel (single message with multiple Agent tool calls).
For each hypothesis, spawn a debugger:
Agent tool:
subagent_type: "debugger-teammate"
team_name: "ultra-debug-<name>"
name: "debugger-N"
prompt: |
You are debugger-N in team ultra-debug-<name>.
YOUR HYPOTHESIS:
<hypothesis description>
PROBLEM CONTEXT:
<gathered context from Phase 0>
YOUR TEAMMATES:
- Other debuggers: <list names and their hypotheses>
- Critic: critic-1
YOUR TASK ID: <task-id>
Begin investigation. Share findings via SendMessage with critic-1
and relevant debuggers.
Spawn one critic:
Agent tool:
subagent_type: "critic-teammate"
team_name: "ultra-debug-<name>"
name: "critic-1"
prompt: |
You are critic-1 in team ultra-debug-<name>.
PROBLEM CONTEXT:
<gathered context from Phase 0>
HYPOTHESES UNDER INVESTIGATION:
1. <hypothesis 1> — investigated by debugger-1
2. <hypothesis 2> — investigated by debugger-2
3. <hypothesis 3> — investigated by debugger-3
YOUR TASK ID: <task-id>
Wait for debuggers to share initial findings, then begin your
adversarial review. Continue for up to 5 rounds until every
hypothesis is either proved or disproved.
After all agents report their final assessments:
.claude-works/ultra-debug-<name>/report.md# <title>
**Date**: YYYY-MM-DD
**Status**: CONFIRMED | INCONCLUSIVE
## Problem Statement
<What is broken. When it started. Who is affected. How it manifests.>
## Root Cause
<If CONFIRMED: Single definitive statement of the root cause, with primary evidence reference.>
<If INCONCLUSIVE: What was eliminated and what remains unresolved.>
## Evidence
| # | Finding | Source |
|---|---------|--------|
| 1 | <concrete finding> | <file:line / log timestamp / query / Sentry event ID> |
| 2 | ... | ... |
## Investigation Timeline
| Hypothesis | Verdict | Summary |
|------------|---------|---------|
| <hypothesis 1> | CONFIRMED / DISPROVED | <one line> |
| <hypothesis 2> | CONFIRMED / DISPROVED | <one line> |
## Debate Log
### Hypothesis 1: <name>
- **Debugger finding**: <summary with evidence refs>
- **Critic challenge**: <the challenge and its basis>
- **Resolution**: <how it was resolved, with evidence>
### Hypothesis 2: <name>
...
## Recommendations
<Concrete, actionable next steps based on findings. Reference specific code locations.>
The final report MUST NOT contain any of these hedge words or phrases:
likely, unlikely, maybe, perhaps, possibly, probably, might, could (expressing uncertainty), appears to, seems to, seems like, it looks like, we think, we believe, should be (expressing uncertainty), in theory
Every statement must be either:
file:line as link text and GitHub permalink with commit SHA as URL (e.g., [/path/to/file.ts:142](https://github.com/org/repo/blob/<commit-sha>/path/to/file.ts#L142)). Run git rev-parse HEAD to get the current commit SHA.npx claudepluginhub swen128/claude-plugins --plugin ultra-debugDebug complex issues using competing hypotheses with parallel investigation, evidence collection, and root cause arbitration. Use when bugs have multiple potential causes.
Deploys parallel agent investigators to test multiple bug hypotheses simultaneously, gather confirming/disproving evidence, synthesize findings, rank causes, and apply minimal verified fixes.
Investigates production issues and bugs through hypothesis-driven debugging. Accepts stacktraces, logs, error messages, or vague behavioral descriptions and produces a root cause analysis.