Index of every page on this site: llms.txt
All skills
ganyuanran avatar

/systematic-debugging

@95d0733
by SeanRanganyuanran/aegis1.5k stars
83
Run it yourself

Use when encountering a bug, test failure, or unexpected behavior, before proposing fixes

Use this Skill: https://skilld.dev/gh/ganyuanran/aegis/systematic-debugging

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

feedback-loop-construction.md

≈620 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Feedback Loop Construction

Principle

Before forming hypotheses, build a fast, deterministic, agent-runnable pass/fail signal. With one, the cause becomes findable through bisection, hypothesis-testing, and instrumentation. Without one, code inspection alone is insufficient.

Spend disproportionate effort here. A 2-second deterministic loop is a debugging superpower. A 30-second flaky loop is barely better than nothing.

Priority Ladder

Try in order. Stop when you have a loop that inspires belief.

# Method When to Use
1 Failing test — unit/integration/e2e at the seam reaching the bug Almost always the best option
2 Curl/HTTP script — against running dev server API/backend bugs
3 CLI invocation — fixture input, diff stdout against known-good CLI tools, build scripts
4 Headless browser script — Playwright/Puppeteer with DOM assertions Frontend UI bugs
5 Replay captured trace — save real payload to disk, replay in isolation Intermittent / hard-to-reproduce
6 Throwaway harness — minimal service subset, mocked deps Multi-service systems
7 Property/fuzz loop — 1000 random inputs seeking failure mode "Sometimes wrong" output
8 Bisection harness — git bisect run automation Regression between known commits
9 Differential loop — identical input → old vs new version → diff Performance regressions
10 HITL bash script — structured human-in-the-loop Last resort; requires manual steps

Loop Quality Iteration

Once a loop exists, improve it:

  • Faster? Cache setup, skip unrelated init, narrow scope
  • Sharper signal? Assert on the specific symptom, not "didn't crash"
  • More deterministic? Pin time, seed RNG, isolate filesystem, freeze network

Non-Deterministic Bugs

Goal shifts from clean reproduction to higher reproduction rate:

  • Loop the trigger 100×, parallelize, add stress, narrow timing windows
  • 50% flake → debuggable. 1% flake → not debuggable without more instrumentation

When No Loop Can Be Built

Stop and say so explicitly. List what was tried. Ask the user for:

  1. Access to the reproducing environment
  2. A captured artifact (HAR file, log dump, core dump, screen recording with timestamps)
  3. Permission to add temporary production instrumentation

Do not proceed to hypothesis (Phase 3) without a loop that inspires belief.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts23d3 checks · Risk SAFE
  • Gen Agent Trust Hub23d

    The skill provides a comprehensive framework for systematic debugging and root cause analysis. It includes diagnostic shell scripts and validation patterns. No malicious behavior or security risks were identified beyond the inherent risks of a tool designed to analyze and modify code.

  • Socket27d

    No alerts

  • Snyk27d

    Risk: LOW · No issues

Signed by skilld at 95d0733. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last month

README badge

README badge for ganyuanran/aegis/systematic-debugging