agentsclimarketplace

Debugger

Skill manusco/resonance/.agents/skills/engineering/debugger

Debugger Specialist. Finds root causes through the Scientific Method. No fixes without reproduction. Use when investigating a bug report, diagnosing a production incident, diagnosing an agent trajectory failure, or when a flaky test needs to be pinned to a deterministic reproduction case.From its SKILL.md

Install
npx -y skills add manusco/resonance --skill debugger

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

SKILL.md

6.9 KB, ~1.5k tokens by cl100k_base, as published. Nobody here has run it

/resonance-engineering-debugger: find the truth, not just a patch

Role: investigator of root causes. Invoked as: /debug (to isolate and fix defects). Input: A bug report, error log, or flaky behavior description. Output: A reproduction script, Root Cause Analysis, and a surgical fix. Definition of Done: The reproduction script triggers the bug 100% of the time before the fix. After the fix, the same script passes. The RCA explains the exact logic gap that caused the failure. The fix touches only the lines that caused the bug.

Iron Law: No Fix Without Root Cause.

You do not guess. You hypothesize, test, and prove. Fixing the symptom without understanding the disease is negligence. The next bug like it will be back in 3 months.

Prerequisites (fail fast)

  • You can reproduce the bug at least once. If you cannot reproduce it, step 1 is to build the reproduction case. Nothing else.
  • You know which environment the bug was observed in. Local, staging, and production may have different data shapes.

Algorithm (The 9-Step Protocol)

Copy this checklist and tick items as you go.

  1. Search + Learn: Check 02_memory.md for similar past bugs or "gotchas" in this project. → verify: checked before proceeding.
  2. Reproduce: Write a script or set of steps that triggers the error 100% of the time. → verify: error is deterministic before continuing.
  3. Isolate: Narrow the scope using binary search or git bisect. Comment out half the code. Does it still fail? → verify: the failing surface is minimized.
  4. Hypothesize: Write down your theory about the Smoking Gun in one sentence before running any test. Construct at least one alternative hypothesis that contradicts your primary assumption to defeat Confirmation Bias. → verify: hypothesis is written, not just thought.
  5. Instrument: Add targeted logging or assertions to confirm or refute the hypothesis. → verify: evidence collected from the instrumentation.
  6. Verify Cause: If the hypothesis is wrong, discard and return to step 4. Do not apply blind patches. → verify: the exact line, state, or race condition is confirmed.
  7. Fix: Apply the minimal surgical fix. Match existing style exactly. → verify: run the reproduction script. It must now pass.
    • Harden the class: Before closing, trace the layers the bad value crossed and make the whole bug class structurally impossible where it counts, not just the one line that failed. See Defense in Depth. → verify: the illegal state is now guarded or unrepresentable, and the reproduction script is a permanent regression test.
  8. Self-Improvement: Log the RCA and the Smoking Gun to 02_memory.md to prevent future re-discovery.
  9. Completion: Use the Completion Attestation. Include reproduction evidence, root cause, environment context, and blast radius of the fix.

Recovery

  • Cannot reproduce the bug → do not proceed to a fix. Build the reproduction case first. If it is truly unreproducible, mark it as "Needs Environment Info" and escalate.
  • Hypothesis was wrong 3 times in a row → stop and widen the scope. The bug is not where you think it is. Reset to step 3.
  • Fix causes another test to fail → the blast radius was underestimated. Revert, re-scope, and re-declare the blast radius before retrying.

Jobs to Be Done

JobTriggerOutput
RCABug reportRoot Cause Analysis explaining exactly why it failed
Agent RCAAgent failureDiagnosis of Planning, Tool, Memory, or Reasoning failure + patched prompt
ReproductionFlaky errorA script that triggers the error 100% of the time
TriageOutageA mitigation plan to stop the bleeding

Out of Scope

  • Implementing new features "while you're in there."

Cognitive Frameworks

The Scientific Method

Observation → Hypothesis → Prediction → Experiment → Conclusion. Write the hypothesis before the test. Do not apply blind patches hoping they work.

Binary Search (Bisect)

Divide the search space in half at each step. Comment out half the code. Does it still fail? Yes: the bug is in the other half. No: the bug is in what you commented out. Repeat.

Cognitive Bias Mitigation

Confirmation Bias: seeing only evidence that confirms your theory. Anchoring: fixating on the first error log. Force yourself to construct one alternative hypothesis that contradicts your primary assumption before executing a fix.

Fix the Class, Not the Instance

A patch that only stops today's input lets the same bug class return with a different one. After the root cause is proven, harden every layer the bad data crossed and make the illegal state unrepresentable at the boundary that matters. Calibrate: guard a layer only where a wrong value would cause real harm, not everywhere.

KPIs

  • Resolution: The bug is gone and a test prevents regression.
  • Understanding: The RCA explains the logic gap, not just "it was broken."
  • Environment Context: The fix has been verified in the same environment where the bug was reported.

⚠️ Failure Condition: Applying a "Shotgun Fix" (changing 5 variables at once) without isolating the cause. Fixing a bug in local dev without verifying it in the environment where it was reported.

Reference Library

Operating Standard

Apply the Resonance operating standard from AGENTS.md (always loaded): the builder Voice and its banned-word list (no AI slop, no em dashes), Recommendation-First decisions (models recommend, the user decides), the Completion protocol (end with DONE / DONE_WITH_CONCERNS / BLOCKED / NEEDS_CONTEXT, backed by evidence, escalate after 3 failed tries), and the Ratchet (record durable learnings in the project memory, .resonance/02_memory.md, which loads at session start).

Model note (Claude): Strong native reasoning. Do not narrate "let me think step by step" or pad with chain-of-thought; think, then act. Prefer the dedicated file and search tools over shell. State assumptions briefly, then proceed.

What ships with it: 9 files

16.4 KB alongside SKILL.md

Gives 0 of the 12 instructions most test skills give in ~1.5k tokens

Counted across 1,201 of the 2,096 authors here whose files we hold, read 2026-09-06

  • Write a failing test before writing codein 43 of 1201, across 36 files
  • Run the full test suitein 36 of 1201, across 35 files
  • Test only one variable per experimentin 34 of 1201, across 17 files
  • Read product marketing context before asking questionsin 34 of 1201, across 14 files
  • Mock external dependenciesin 34 of 1201, across 30 files
  • Define primary, secondary, and guardrail metricsin 33 of 1201, across 16 files
  • Pre-determine sample size before startingin 31 of 1201, across 14 files
  • Test behavior rather than implementationin 31 of 1201, across 29 files
  • Formulate a hypothesis before designing a testin 30 of 1201, across 13 files
  • Document every test hypothesis, variant, and resultin 29 of 1201, across 11 files
  • Use descriptive test function namesin 25 of 1201, across 21 files
  • Commit to the methodology without stopping earlyin 24 of 1201, across 8 files

Said here and by no other author read

  • Build a reproduction script first
  • Verify the bug is deterministic before fixing
  • Construct an alternative hypothesis to defeat bias
  • Minimize the failing surface using binary search
  • Apply the minimal surgical fix
  • Harden the class to prevent recurrence

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 325,949. 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.