agentsclimarketplace

Debugger

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

The Vibe Coding Operating System.

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.

What its author says it does

Copied from the file, not written here

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.

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.

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

Counted across 964 of the 1,571 authors here whose files we hold, read 2026-08-06

  • close the browser when donein 55 of 964, across 12 files
  • wait for network idle statein 51 of 964, across 6 files
  • launch chromium in headless modein 49 of 964, across 6 files
  • use descriptive selectors for elementsin 49 of 964, across 6 files
  • run provided scripts with help flag firstin 49 of 964, across 6 files
  • add appropriate explicit waitsin 48 of 964, across 5 files
  • use bundled scripts as black boxesin 46 of 964, across 3 files
  • do not read script source codein 46 of 964, across 3 files
  • use sync playwright for scriptsin 46 of 964, across 3 files
  • inspect dom before executing actionsin 46 of 964, across 3 files
  • run the full test suitein 36 of 964, across 34 files
  • write the failing test firstin 25 of 964, across 18 files

Said here and by no other author read

  • narrow the bug scope using binary search
  • construct one alternative hypothesis
  • add targeted logging to test hypotheses
  • apply the minimal surgical fix
  • harden layers the bad data crossed
  • make the reproduction script a regression test

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 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.