agentsclimarketplace

Aos debugging

Skill riz007/architect-os/skills/aos-debugging

AI-native software engineering operating system for modern application architecture, scaffolding, and AI-assisted development.

Install
npx -y skills add riz007/architect-os --skill aos-debugging

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

A structured debugging loop for tracking down a bug, failing test, exception, stack trace, regression, or "this used to work" report. Use proactively when investigating why code is broken, reproducing a failure, or diagnosing unexpected behavior — before changing any code. Prevents guess-driven editing by forcing reproduction, hypothesis, and a single verified fix.

SKILL.md

2.1 KB, as published. Nobody here has run it

Diagnosing bugs

This is a model-invoked discipline. When something is broken, resist the urge to start editing. Work the loop.

1. Reproduce first

  • Get a deterministic reproduction: the exact command, input, and expected vs. actual.
  • If you cannot reproduce it, say so and gather more signal (logs, a failing test, the stack trace) before touching code.
  • Capture the smallest reproduction you can — a failing unit test is ideal.

2. Locate, don't guess

  • Read the stack trace top-down to the first frame in our code.
  • Read the actual source at that location — do not assume what it does.
  • Form one hypothesis at a time, stated concretely: "X is null because Y returns early when Z."

3. Confirm the hypothesis before fixing

  • Prove it with a log, a breakpoint, a test, or by reading the data flow end to end.
  • If the evidence contradicts the hypothesis, discard it and form a new one. Do not stack speculative fixes.

4. Fix at the root, once

  • Change the smallest thing that addresses the root cause — not the symptom.
  • No shotgun edits, no "try this and see." One deliberate change.
  • If the fix touches business logic, keep it in the service layer (see aos-implementing-features).

5. Verify and lock it in

  • Re-run the reproduction. Confirm it now passes.
  • Add a regression test that would have caught this bug, so it stays fixed.
  • Run the surrounding test suite to confirm nothing else broke.

Anti-patterns to avoid

  • Editing multiple files hoping one sticks.
  • "Fixing" by adding a null-check at the symptom while the real cause is upstream.
  • Removing a failing assertion instead of fixing the behavior.
  • Declaring it fixed without re-running the reproduction.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.