In short.
Systematic Debugging is a skill for developers using AI coding assistants to diagnose bugs, but its strict process depends on access to relevant code, diagnostics and tests. It moves from investigating the cause through comparing working examples and testing hypotheses to implementing and verifying one fix. Companion files cover backward tracing, validation at multiple layers and waiting for observable conditions. The TypeScript examples contain project-specific imports, and the shell helper searches test files sequentially while ignoring test-command failures. Reported improvements are author accounts without supporting execution records. Nothing was executed, so compatibility, effectiveness and performance remain unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes all six files in skills/systematic-debugging at commit 22f0b463e7a5e579904dd6211a520321035526f7: SKILL.md, condition-based-waiting.md, condition-based-waiting-example.ts, defense-in-depth.md, find-polluter.sh and root-cause-tracing.md. It also includes the repository LICENSE as the related rights notice. Linked pages, other folders and the separately referenced testing and verification skills are excluded. No code, installation, assistant integration, test suite or reported case outcome was executed or independently reproduced.
The overview
Identity
Systematic Debugging is the systematic-debugging skill in the obra/superpowers repository. Its main file gives an AI coding assistant a prescribed debugging process, while five companion files provide techniques and implementation examples.
The original directory is [https://github.com/obra/superpowers/tree/main/skills/systematic-debugging]. The version described here is commit 22f0b463e7a5e579904dd6211a520321035526f7, available at [https://github.com/obra/superpowers/tree/22f0b463e7a5e579904dd6211a520321035526f7/skills/systematic-debugging]. The repository licence names Jesse Vincent as the 2025 copyright holder.
Assessment
Its clearest strength is turning vague debugging advice into observable steps: reproduce the failure, inspect recent changes, instrument component boundaries, compare working code and test one explanation at a time. It also defines when repeated failed fixes should lead to a discussion about the architecture.
It appears most useful when an assistant repeatedly proposes plausible changes without establishing why the failure occurs. It supplies instructions rather than an enforcement mechanism; adherence and diagnosis quality remain dependent on the assistant, available evidence and developer judgment. No execution establishes whether it improves outcomes.
Users
The intended situations include failing tests, production bugs, unexpected behavior, performance problems, build failures and integration issues. Developers dealing with repeated unsuccessful fixes or failures spanning several components are especially well matched to its detailed investigation steps.
Beginners get a concrete sequence and examples of questions to ask. Experienced developers get guidance on tracing callers, inspecting configuration propagation and distinguishing a local defect from a wider architectural problem. Using those techniques still requires understanding the project's code and test environment.
Capabilities
The main skill covers error interpretation, reproduction, recent-change inspection, component-boundary diagnostics, comparison with working implementations, hypothesis testing and verification. Root Cause Tracing follows bad values backward through callers. Defense-in-Depth Validation illustrates entry checks, business rules, environment guards and diagnostic logging.
Condition-Based Waiting replaces guessed delays with checks for observable state. Its TypeScript companion provides helpers for finding an event, reaching an event count and matching a custom predicate. The shell helper attempts to identify a test that creates an unwanted file or directory by running matching test files individually.
Using it
Requirements and compatibility
Applying the process requires access to relevant errors, source code, configuration and a way to reproduce or investigate the failure. It calls for a failing automated test where possible, or a one-off reproduction script otherwise. Supported assistant hosts, model versions and automatic skill-discovery behavior are not established by these files.
The shell helper requires Bash, standard command-line utilities and a project whose npm test command accepts the supplied file argument. The TypeScript event helpers import Lace-specific ThreadManager and event types through a project path alias, so they need matching definitions or adaptation.
The main file also references superpowers:test-driven-development and superpowers:verification-before-completion. Those separate skills are outside this directory, and their contents and requirements are unknown here.
How it works
The four phases are investigation, pattern analysis, hypothesis testing and implementation. Investigation gathers the failure's context before proposing fixes. Pattern analysis compares broken behavior with working examples and identifies dependencies. Hypothesis testing changes one variable at a time. Implementation adds a failing reproduction, applies one focused fix and checks that the reproduction now passes, no other tests are broken and the issue is actually resolved.
After three or more unsuccessful fixes, the process calls for discussing the architecture with a human before continuing. For asynchronous tests, the supplied helpers repeatedly inspect current events, schedule another check after 10 milliseconds and use a default timeout of 5,000 milliseconds.
Setup
Keep SKILL.md and its five companion files together so the relative file references remain meaningful. The unchanged main file is available at [https://raw.githubusercontent.com/obra/superpowers/22f0b463e7a5e579904dd6211a520321035526f7/skills/systematic-debugging/SKILL.md]. The directory does not supply a host-specific installation command or establish how an assistant loads the skill.
Before adopting the code helpers, adapt the event types and imports to the project and confirm the test runner's file-selection syntax. The shell helper needs the unwanted path to be absent initially for a meaningful detection attempt. No installation or compatibility check was performed.
Example
The tracing guide describes an unwanted Git repository appearing inside a source directory. It follows the operation backward through workspace and session creation to a test reading an empty temporary-directory value before beforeEach had initialized it. The documented correction makes premature access throw an error and adds validation at several layers. This is the author's walkthrough, not an independently reproduced result.
The waiting example replaces fixed delays around an agent abort with explicit event counts: wait for two TOOL_CALL events, abort, await completion, then wait for two TOOL_RESULT events. This illustrates synchronizing on observable progress; its suitability depends on the project's event semantics and history.
Assessment & evidence
Limitations
The instructions contain strong claims about speed and preventing recurrence, but no comparative evaluation establishes those claims. Layered validation can reduce risk; the examples do not prove that a bug becomes impossible. The process also cannot supply diagnostic access or missing project knowledge.
The waiting helpers search existing event history without recording a starting point, so old matching events can satisfy a new wait. The generic waiting function returns only truthy results, which matters when the desired result is zero, false or an empty string.
Despite its bisection description, find-polluter.sh runs files sequentially. It suppresses test output and ignores test-command failures. A zero exit status does not establish a passing or clean suite: an existing target causes skips, and an unmatched pattern can result in no tests. Its whitespace-split file loop also cannot reliably handle filenames containing spaces.
The environment-guard example uses a string-prefix comparison for temporary-directory containment. A sibling path sharing the same prefix can pass that check, so it is not a robust containment guarantee. These are observations from the supplied code; runtime behavior was not assessed.
Why the approach may help
The practical rationale is to make each proposed fix answer a specific explanation of the failure. Reproduction supplies an observable target, backward tracing connects symptoms to their origin, and changing one variable makes the result easier to interpret. Comparing working code also provides a concrete reference for investigating differences.
It is reasonable to expect extra investigation steps before implementation. Whether those steps save time overall, reduce regressions or improve an assistant's behavior is unknown. Those outcomes require evidence from actual use.
Alternatives
A developer can use the four-phase method manually as a debugging checklist. For a narrower issue, the included tracing guide offers a starting point for tracking a bad value, while the waiting guide addresses asynchronous test synchronization.
The waiting guide explicitly allows fixed delays when testing timing itself, such as debounce behavior, provided the interval has a known basis. The material does not compare external debugging tools or other skills, so relative effectiveness and cost are unknown.
Evidence
The material consists of the main skill, three technique guides, one TypeScript implementation example, one Bash helper and the repository MIT notice. Together they establish the prescribed process and the visible implementation details.
The waiting material reports fixing 15 flaky tests, improving pass rate from 60% to 100% and reducing execution time by 40%. The tracing and validation guides report 1,847 passing tests. These are author-reported case outcomes; no raw test results, benchmark method or independent reproduction accompanies them. Repeated accounts of the same case do not provide independent confirmation.
Access & freshness
Costs
The MIT licence grants permission to use and redistribute the material without a licence charge. The files provide no pricing for an AI assistant, model usage, development environment or test infrastructure, so total operating cost is unknown.
The procedure requires investigation and verification work, and the shell helper invokes a test command for each eligible file it reaches. No measured runtime, token usage or financial cost is available.
Rights
The repository's MIT licence permits use, copying, modification, distribution, sublicensing and sale. Copies or substantial portions must retain the copyright notice and permission notice. The material is supplied without warranty, and the licence limits the copyright holder's liability.
The captured notice is available at [https://raw.githubusercontent.com/obra/superpowers/22f0b463e7a5e579904dd6211a520321035526f7/LICENSE]. Retain it when redistributing the skill or companion files.
Version and freshness
The files are pinned to commit 22f0b463e7a5e579904dd6211a520321035526f7 and were captured on 2026-11-12. The waiting and tracing material dates its example debugging session to 2025-10-03.
Those case dates and the licence's 2025 copyright year do not establish a release date or maintenance schedule. A release number, current host compatibility and changes on the main branch after this revision are unknown.
Practical next steps
Obtain the skill and companion files from the pinned original directory [https://github.com/obra/superpowers/tree/22f0b463e7a5e579904dd6211a520321035526f7/skills/systematic-debugging] and retain the MIT notice. Confirm how the intended assistant loads instructions and resolves companion files.
For an initial evaluation, choose a reproducible development bug and record the failing behavior, hypothesis, focused change and verification result. Before using the helpers, adapt the TypeScript imports and event-history handling, inspect the shell test command and preserve test failures in visible output. These are suggested evaluation steps; no such evaluation was performed.
