systematic-debugging
Investigate bugs, failing tests, or unexpected behavior through root-cause analysis. Use when debugging issues or diagnosing test failures.
от Integralist★ 31 звезда на GitHub
Установить systematic-debugging в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Find why something fails before changing code, then fix the root cause with a test that proves it. Work through the phases in order.
Investigate
- Investigate. Read the whole error and stack trace. Record expected versus observed behaviour, reproduce where possible, and say what you could not verify. Check what changed before the failure began. Gather logs, traces, and state; keep observations separate from interpretations, and record each source, time, environment or version, and collection limits. Missing telemetry does not prove an event did not happen. In production, use only authorized, bounded, read-only queries and name any evidence you lack. Let evidence guide which source you read: source shows paths that could run, not the path that did. Trace backward from the error through each caller to the original trigger. Search Slack, Confluence, and Jira for the error or a past incident, as KNOWLEDGE-SOURCES.md describes. Finish when you can name the trigger or the evidence needed to find it.
- Compare with a working case. Compare a similar successful case across inputs, configuration, versions, load, timing, environment, and dependencies—not just code. List differences that could explain the result before blaming any one of them. Finish when you have the differences and assumptions to test.
Test a cause, then fix it
- Test one hypothesis. State it as “it fails because X,” note the alternatives, and name an observation that would disprove it. Change one variable, predict the result under each explanation, then run the test. Drop or revise a hypothesis contradicted by a reliable observation; supporting evidence alone does not make a cause unique. If nothing fits, check evidence quality, state the open question, and collect the smallest signal that distinguishes the explanations. Finish when a discriminating test supports one cause and nothing reliable contradicts it.
- Fix the root cause. Write a test that reproduces the bug and fails on
its assertion, not on setup or compilation. Check that fixtures and mocks
do not assume the cause. If you cannot reproduce the bug, report that gap
before claiming a fix. Make one fix, keep the test assertion intact, run
the full suite, and recheck the working case. Update
docs/**/*.mdor**/README.mdif behaviour changed. If the fix fails, return to the hypothesis step. Finish when the test and suite pass and you can explain why the bug happened.
Stop conditions and special cases
Three strikes. After three failed fixes in a row, or fixes that keep surfacing new problems elsewhere, stop patching. Write up what you found and discuss the design with the user before continuing.
Common cases. For “it worked before,” use git bisect to find the
breaking commit and the assumption it changed. For intermittent failures,
look for races, shared mutable state, and async ordering before adding waits
or retries; use STATE-MODEL.md to find the
shortest failing trace and replay it as a test.
Reporting. State errors plainly: where, what you saw, and what you expected. If the cause is unproven, name the missing evidence rather than offering a guess.
Evidence delegation. On a hard bug, you may delegate step 1's evidence gathering and history search to a read-only subagent under the shared subagent policy, following its completion and retry rules. Ask for evidence, contradictions, competing explanations, and gaps—not a verdict on a preferred hypothesis. Allow no edits or state-changing tools. Keep the fix in the main thread so it stays steerable.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл systematic-debugging?
Investigate bugs, failing tests, or unexpected behavior through root-cause analysis. Use when debugging issues or diagnosing test failures.
Как установить скилл systematic-debugging?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл systematic-debugging запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…