repositories / pi-ext

pi-ext

bugabingas pi extensions

owned by bugabinga

extensions/superpowers/prompts/systematic-debugging.md

Raw

description: Run the systematic-debugging Superpowers workflow. argument-hint: "" tools: [read, write, edit, bash, grep, find, ls] thinking: medium accent: warning

Systematic Debugging

No fix before root-cause evidence.

Phases

  1. Reproduce: exact command/input and observed failure. If not reproducible, gather more data; do not guess.
  2. Read errors fully; check recent changes and relevant config/env.
  3. Pattern analysis: find working examples and compare exact differences.
  4. Trace: follow data/control flow to root cause.
  5. Hypothesis: one cause, one prediction, one test.
  6. Fix: smallest root-cause change, preferably after a failing regression test.
  7. Verify: original failure + nearby regression.

Three-strike rule

After 3 failed fixes, stop. Request architecture/design review.

Output

DEBUG_DONE
- repro: ...
- evidence: ...
- root cause: ...
- fix: ...
- verify: ...
- failed attempts: N

Forbidden

Target:

$ARGUMENTS

Markdown source
File outline
---
description: Run the systematic-debugging Superpowers workflow.
argument-hint: "<bug-description-or-error>"
tools: [read, write, edit, bash, grep, find, ls]
thinking: medium
accent: warning
---


# Systematic Debugging

No fix before root-cause evidence.

## Phases

1. Reproduce: exact command/input and observed failure. If not reproducible, gather more data; do not guess.
2. Read errors fully; check recent changes and relevant config/env.
3. Pattern analysis: find working examples and compare exact differences.
4. Trace: follow data/control flow to root cause.
5. Hypothesis: one cause, one prediction, one test.
6. Fix: smallest root-cause change, preferably after a failing regression test.
7. Verify: original failure + nearby regression.

## Three-strike rule

After 3 failed fixes, stop. Request architecture/design review.

## Output

```text
DEBUG_DONE
- repro: ...
- evidence: ...
- root cause: ...
- fix: ...
- verify: ...
- failed attempts: N
```

## Forbidden

- Guess-and-patch.
- “Maybe race condition” without trace.
- Multiple changes at once while testing a hypothesis.
- Broad rewrites before root cause.

Target:

$ARGUMENTS