Command Palette

Search for a command to run...

Назад к скиллам
скилл № 74372

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes. Observe the failure first. Do not use it to implement an…

БесплатноЗапускает вложенные скрипты
jeremybrasherот jeremybrasher★ 41 звезда на GitHub

Установить systematic-debugging в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Systematic Debugging

Overview

Core principle: ALWAYS find root cause before attempting fixes. Symptom fixes are failure.

Violating the letter of this process is violating the spirit of debugging.

The Iron Law

NO FIXES WITHOUT ROOT CAUSE INVESTIGATION FIRST

If you haven't completed Phase 1, you cannot propose fixes.

When to use

Use for a technical failure you can name: test failures, production bugs, unexpected behavior, performance problems, build failures, integration issues.

Use this ESPECIALLY when:

  • Under time pressure (emergencies make guessing tempting)
  • "Just one quick fix" seems obvious
  • You've already tried multiple fixes
  • Previous fix didn't work
  • You don't fully understand the issue

Don't skip when:

  • Issue seems simple (simple bugs have root causes too)
  • You're in a hurry (rushing guarantees rework)
  • Manager wants it fixed NOW (systematic is faster than thrashing)

Do not use this to:

  • Implement an already-approved design (that is implementation, not debugging)
  • Add a feature that has no failing behavior
  • Rewrite architecture on the first failure
  • Produce a postmortem, a status update, or a blame assignment

Intake — before Phase 1

You need three things. Nothing else starts. Do not form a hypothesis, do not add instrumentation, do not propose a fix.

  1. A named failure. An error message, a failing test, a broken behavior, a measured regression. "Something's wrong" or "the app is weird" is not enough.
  2. A system you can observe. Repo, logs, stack, environment, or a reproduction the partner can run. A screenshot of a symptom with no access is not enough.
  3. A way to gather evidence. Either a consistent reproduction, or a next measurement you can take. If you can neither reproduce nor measure, you cannot investigate.

If any of those is missing, stop. Say what is missing and what you need. Do not invent a root cause. Do not propose a "likely" fix to keep moving.

Then, and only then, enter Phase 1.

HOLD — stop and return this, not a fix

When you cannot proceed, return the gap. Do not fill it with a polished patch.

Condition What is missing What it needs Return instead of a fix
No named failure The object of investigation Error, failing test, broken behavior, or measured regression "I need the failure itself — an error, a test, or the broken behavior. I will not invent one."
No observable system Access to code, logs, stack, or environment A path, a log, a repo, or a reproduction the partner can run "I cannot observe the system, so I cannot investigate. Holding."
Neither reproducible nor measurable A next fact Steps that trigger it, or one measurement to take "Not reproducible and I have no next measurement. I will not guess."
Phase 1 not done A stated root cause with evidence Completed investigation: error read, reproduced or measured, recent changes checked The investigation so far. No patch.
Hypothesis is vague A single testable claim "I think X is the root cause because Y" Write the claim or HOLD. Do not change code.
Fix would ship without a failing reproduction A test or script that fails the same way Simplest reproduction that fails first The reproduction. No production change.
3+ fixes already failed A decision on the pattern, not another patch Human discussion: keep this architecture or change it The three failures, the coupling they revealed, the question. Do not attempt fix #4.
Human said "stop guessing" / "is that not happening?" / "we're stuck?" A return to evidence Phase 1 restarted with what you assumed named Stop. Name the assumption. Return to Phase 1.
Production, data-loss, or security blast radius Human authority to touch that surface Explicit yes from the partner The risk and the question. No change.
Companion file missing (root-cause-tracing.md, a TDD skill, a verification skill) Nothing — those files are optional The methods already in this file Do not stall. Use the quick versions below.

A HOLD is a return value, not a delay before you guess.

Defaults: cut first

This operation defaults to less, not more.

  • Do not add a component, wrapper, retry, timeout, or feature flag to work around a failure you have not named.
  • Do not keep code from a failed hypothesis. Revert it before the next test.
  • Do not bundle refactor with the fix. "While I'm here" is a new request.
  • Do not add a second layer of instrumentation after the failing boundary is already visible.
  • Prefer revert of the recent change that introduced the failure over a new branch of logic.
  • Prefer delete the bad path over adding a guard that leaves the bad path alive.
  • The smallest change is allowed only after a root cause is named. Smallest-change is not a license to patch a symptom.
  • Extra files, extra tests beyond the one reproduction, or extra logging in the shipped fix need a reason from the failure
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • CREATION-LOG.md
  • LICENSE
  • SCORE.json
  • SOURCE.md
  • condition-based-waiting-example.ts
  • condition-based-waiting.md
  • defense-in-depth.md
  • find-polluter.sh
  • root-cause-tracing.md
  • test-academic.md
  • test-pressure-1.md
  • test-pressure-2.md
  • test-pressure-3.md

FAQ

Что делает скилл systematic-debugging?

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes. Observe the failure first. Do not use it to implement an already-approved design, to add a feature with no failing behavior, or to guess a root cause from a one-line complaint.

Как установить скилл systematic-debugging?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл systematic-debugging запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить systematic-debugging с