In short.
Aegis systematic-debugging is a debugging instruction pack for developers working with AI coding assistants, but its complete process depends on companion Aegis references. Its distinctive feature is requiring evidence about what can recreate a failure before calling an explanation the root cause. It also defines repair boundaries, conditional test-first requirements and verification expectations. The documentation supports a detailed understanding of the approach; compatibility, practical overhead and effectiveness remain unverified.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage comprises all nine captured files in skills/systematic-debugging at commit ab3e7710496e638823162d6aa46c3ca525b0acd2: SKILL.md, advanced-debugging-governance.md, condition-based-waiting-example.ts, condition-based-waiting.md, defense-in-depth.md, feedback-loop-construction.md, find-polluter.sh, root-cause-claim-contract.md and root-cause-tracing.md. The repository-root LICENSE is the supplied related notice. Other Aegis skills, the complexity and minimality references outside this folder, and the workspace helper implementation are excluded. The original repository and immutable acquisition addresses are preserved. Installation, code execution, assistant integration, test outcomes and real user journeys were not assessed.
The overview
Identity
The resource is the skills/systematic-debugging folder in GanyuanRan/Aegis, available at [https://github.com/GanyuanRan/Aegis/tree/main/skills/systematic-debugging]. Its entry point, SKILL.md, declares the name systematic-debugging and targets bugs, test failures and unexpected behavior.
The folder contains seven Markdown files, including the entry point, plus a Bash scanner and a TypeScript example. It is primarily instructions an assistant loads, supported by helper source code. The version described is commit ab3e7710496e638823162d6aa46c3ca525b0acd2.
Assessment
The strongest fit is recurring failures, disputed explanations and bugs crossing component boundaries. The skill asks an assistant to identify the component responsible for the faulty behavior, investigate upstream influences and distinguish a lasting repair from a local workaround.
Its extensive evidence requirements imply additional investigation and reporting effort. Even its compact route requires proof that a bug is local. The amount of overhead and whether it improves repair success are unknown.
Users
Developers pairing with coding assistants can use it to structure investigations and review proposed fixes. Experienced engineers may find the explicit treatment of shared ownership, contracts, timing and multiple causes useful.
Beginners receive definitions and worked examples, but still need help judging reproduction quality, causal evidence and architectural responsibility. Terms such as causal topology and counterfactual intervention introduce a learning burden. The files do not establish that an assistant can apply these judgments reliably without supervision.
Capabilities
The instructions cover reproducing the failed user outcome, inspecting recent changes, comparing working behavior, tracing bad values and choosing a repair boundary before editing. Additional checks address new branches, fallbacks, duplicate responsibility and complexity growth. After three failed fixes, the process calls for architecture escalation.
The supporting material explains deterministic feedback loops, backward tracing, condition-based waiting and validation boundaries. find-polluter.sh invokes tests file by file and reports whether a specified filesystem path appeared. The TypeScript example provides helpers for waiting for an event, an event count or a predicate match.
Using it
Requirements
An assistant needs a way to load the Markdown instructions and access relevant project code, errors and reproduction tools. Supported assistant products, minimum versions and model requirements are not specified in this folder.
The Bash scanner requires Bash, npm and utilities including find and mktemp. Its usefulness depends on the project's test runner honoring the supplied file filter. The TypeScript example imports project-specific ThreadManager and event types through ~/threads paths, so direct reuse requires compatible definitions or adaptation.
The full process references other Aegis materials, including test-driven-development, verification-before-completion, complexity guidance and a workspace helper. Their implementations and installation requirements are outside this folder.
Mechanism
The main sequence is isolate, identify the responsible owner, decide before editing, prove a hypothesis, then repair and verify. Seven diagnostic layers range from symptoms to specification gaps. These represent investigation viewpoints; the documents explicitly distinguish them from the actual shape of a causal relationship.
The causal contract requires evidence-backed closure, a checked observation that could disprove the explanation, a strong challenge to the explanation, explicit classification of the causes and justification for where investigation stops. It distinguishes independent causes from conditions that must combine to produce a failure. An immediate cause stays provisional if an upstream mechanism can recreate it.
Test-first behavior depends on the recorded TDD route. The entry point names an off default, lists risks including bug fixes and shared contracts for strict routing, and requires a failing test before repair only for a recorded strict route. Its evidence cards are described as advisory judgments rather than certification.
Setup
Obtain the folder at the pinned revision, preserve its relative file layout and retain the repository-root LICENSE. The immutable folder address is [https://github.com/GanyuanRan/Aegis/tree/ab3e7710496e638823162d6aa46c3ca525b0acd2/skills/systematic-debugging]. Load SKILL.md through the chosen assistant's supported skill mechanism; host-specific installation commands are not established by these files.
Resolve companion references needed for the intended workflow. Before using the pollution scanner, confirm how npm test handles file arguments and choose a target path that does not already exist. The scanner executes project tests, so those invocations can create project state.
Example
The TypeScript example describes a test that aborts an agent after tool execution starts. Instead of sleeping for a guessed duration, it waits for two TOOL_CALL events, aborts, then waits for two TOOL_RESULT events before checking the result count.
The helpers poll every 10 milliseconds and default to a 5,000-millisecond timeout. Getter or predicate exceptions reject the promise. This illustrates waiting for observable progress; it does not establish that those intervals suit another project or that existing matching events belong to a new operation.
Assessment & evidence
Limitations
The folder is not self-contained for every referenced workflow. Installation, assistant compliance and end-to-end repair effectiveness remain unverified. Completing an evidence card cannot establish that its causal explanation is correct; the causal contract explicitly acknowledges this limit.
Some supporting advice is broader than the entry point's routing. The defense-in-depth reference recommends validation at every layer, while SKILL.md calls for that reference only after evidence establishes a second independent validation boundary is needed. The temporary-directory example is explicitly a test guard, not an adversarial filesystem sandbox.
The scanner detects a path appearing after a test invocation; attribution needs an isolated rerun. Exit 0 establishes only that no new pollution was observed during successful invocations. Separately, the generic waiting example treats false, zero and empty strings as pending because it checks truthiness; the event helpers use undefined as their pending signal.
Reasoning
The practical case for this skill rests on its concrete questions: what recreates the failure, what evidence would disprove the explanation, which component owns the behavior and which other paths remain affected. These questions make a proposed repair easier to challenge and review.
Its distinction between independent causes and jointly necessary conditions also affects repair scope: independent active causes require separate coverage, while a conjunction may be broken by correcting one defective condition. These are useful analytical safeguards, but their documented presence does not demonstrate better outcomes in practice.
Alternatives
The folder offers narrower approaches for specific needs. condition-based-waiting.md focuses on asynchronous test timing, and root-cause-tracing.md focuses on tracing a bad value backward. The quick bug lane provides a compact presentation for an evidenced local, single-owner defect, while retaining its causal-proof requirements.
For initial reproduction, the feedback-loop reference offers ordinary tests, HTTP requests, CLI invocations and captured-trace replay as possible starting points. No comparative evidence establishes how this skill performs against other debugging skills or tools.
Evidence
The documentation and helper source establish the proposed process and inspectable implementation details. They do not establish runtime compatibility or successful application in a new repository.
Historical examples report 15 flaky tests fixed across three files, a pass-rate change from 60% to 100% and 40% faster execution. Related tracing and validation examples report 1,847 passing tests. These are author-reported historical outcomes; raw execution logs, measurement methods and independent replication are not supplied. They are not transferable performance guarantees.
Access & freshness
Costs
The MIT license grants software permissions free of charge. Total operating cost is unknown: assistant or model charges, test infrastructure and developer time are not priced in the folder.
No reliable estimate establishes the additional context usage, investigation time or financial savings associated with the full process.
Rights
The supplied repository-root notice is the MIT License. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions.
The notice credits Copyright (c) 2025 Jesse Vincent and Copyright (c) 2025-2026 Ganyuan Ran. It supplies the software without warranty and limits liability. Redistribution of the captured files should preserve the complete notice.
Freshness
The source snapshot is pinned to commit ab3e7710496e638823162d6aa46c3ca525b0acd2 and was captured on 2026-11-16 at 22:45:48.645 UTC. The capture time identifies the snapshot, not a release date or last-maintenance date.
Several worked examples refer to a debugging session dated 2025-10-03. Those dates do not establish when the current instructions were last revised. Later changes on main and a semantic release version are unknown.
Actions
Confirm that the intended assistant can load the skill and resolve the companion materials needed for your use case. Choose a known, reproducible bug for an initial evaluation, identify the expected user outcome and record the applicable TDD route before repair edits.
Evaluate whether the resulting explanation survives a meaningful counterexample and whether the repair addresses the original outcome and a relevant neighboring case. For helper reuse, adapt the project-specific TypeScript types and confirm npm test filtering before relying on scanner attribution. Practical success remains unknown until those checks are actually performed.
