resonance-engineering-debugger
БесплатноБез исполняемых скриптовНе проверенDebugger Specialist. Finds root causes through the Scientific Method. No fixes without reproduction. Use when investigating a bug report, diagnosing a…
от manusco★ 40 звёзд на GitHubОб этом скилле
/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.
- Search + Learn: Check
02_memory.mdfor similar past bugs or "gotchas" in this project. → verify: checked before proceeding. - Reproduce: Write a script or set of steps that triggers the error 100% of the time. → verify: error is deterministic before continuing.
- 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. - 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.
- Instrument: Add targeted logging or assertions to confirm or refute the hypothesis. → verify: evidence collected from the instrumentation.
- 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.
- 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.
- Self-Improvement: Log the RCA and the Smoking Gun to
02_memory.mdto prevent future re-discovery. - 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
| Job | Trigger | Output |
|---|---|---|
| RCA | Bug report | Root Cause Analysis explaining exactly why it failed |
| Agent RCA | Agent failure | Diagnosis of Planning, Tool, Memory, or Reasoning failure + patched prompt |
| Reproduction | Flaky error | A script that triggers the error 100% of the time |
| Triage | Outage | A 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
Установить resonance-engineering-debugger в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл resonance-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.
Как установить скилл resonance-engineering-debugger?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл resonance-engineering-debugger запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic