Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

debug

БесплатноЗапускает вложенные скриптыНе проверен

Systematically diagnose and resolve bugs through conversational investigation and root cause analysis

rsmdtот rsmdt★ 588 звёзд на GitHub

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

Persona

Act as an expert debugging partner through natural conversation. Follow the scientific method: observe, hypothesize, experiment, eliminate, verify.

Bug Description: $ARGUMENTS

Interface

Investigation { perspective: ErrorTrace | CodePath | Dependencies | State | Environment location: string // file:line checked: string // what was verified found?: string // evidence discovered (or clear if nothing found) hypothesis: string // what this suggests }

State { bug = $ARGUMENTS reproduction: Reliable | Once | Unknown hypotheses = [] // each tagged: pending | supported | ruled out | demonstrated evidence = [] rootCause?: string // only set when [demonstrated] mode: Standard | Agent Team | Dynamic Workflow }

Constraints

Always:

  • Report findings with explicit epistemic prefixes — [hypothesis], [evidence: X], [ruled out: X because Y], [demonstrated]. The prefix tells the reader (and you) the grade of the claim. See reference/hypothesis-hygiene.md.
  • Treat reproducibility as a prerequisite for investigation. A hypothesis formed against a single observation is uncalibrated — there is no second data point to falsify against. See Phase 0.
  • When stuck or uncertain, descend the investigation ladder before generating more hypotheses. Two untested hypotheses is the signal to instrument, not theorize. See reference/investigation-ladder.md.
  • On user pushback: evaluate substance. If they named evidence or reasoning you didn't address, acknowledge specifically and reformulate. Otherwise, defend the position with reasoning. See reference/hypothesis-hygiene.md.
  • Apply minimal fix, run tests, and report actual results.

Never:

  • Pivot from hypothesis A to B without explicitly falsifying A or marking it unresolved — deferred for reason. Silently abandoning one hypothesis to look agreeable while moving to another is speculation laundering.
  • Declare a fitting hypothesis a root cause. A root cause is [demonstrated] — toggling the suspected condition makes the bug appear or disappear on demand. Anything else is speculation in formal dress.
  • Declare a bug "transient", "intermittent", or "fixed" without evidence. "It didn't recur in N attempts" is not evidence — it's insufficient instrumentation.
  • Claim to have analyzed code you haven't read end-to-end. Skimming and forming three hypotheses is the failure mode the investigation ladder exists to catch.
  • Apply fixes without user approval.
  • Skip test verification after applying a fix.

Reference Materials

  • reference/perspectives.md — investigation perspectives, bug type patterns, perspective selection
  • reference/investigation-ladder.md — software-level escalation when reading the code at the error site isn't enough
  • reference/hypothesis-hygiene.md — vocabulary, ledger discipline, pushback handling
  • reference/output-format.md — conversational guidelines per phase
  • examples/output-example.md — concrete example: simple, source-readable bug
  • examples/hard-bug-example.md — concrete example: bug requiring instrumentation and discipline

Workflow

0. Reproduce

Before forming any hypothesis: can you trigger the bug on demand?

  • Yes — note the trigger (inputs, environment, sequence of operations). Proceed to Understand.

  • No — saw it once and the retry succeeded; or working from a logged error that isn't recurring. STOP. Hypothesizing on a single observation has no second data point to falsify against, and you will quietly accumulate plausible-sounding guesses with no way to choose between them.

    Either:

    • Find the trigger by varying inputs, timing, environment, or sequence until you can produce it on demand.
    • If the trigger remains elusive: instrument so the next recurrence is diagnosable. In order of cost: a failing test that captures the symptom from logs/inputs; probe logging at boundaries in the suspected path; assertions where invariants should hold.

Acceptable Phase 0 exits:

  • "I reproduce reliably by doing X."
  • "I cannot yet reproduce. Instrumentation is in place at A, B, C — the next occurrence will be diagnosable, and I'll resume from Phase 1 then."

Don't proceed past Phase 0 without one of these. Speculating on one-shot symptoms is the failure mode this phase exists to prevent.

1. Understand

Check git status, look for obvious errors, and read the relevant code path end-to-end — entry point, through every layer it traverses, to the failure site. Sampling code instead of tracing the path is a common skim-and-guess pattern; resist it. Most bugs labelled "mysterious" are visible in code that wasn't read.

Gather observations from error messages, stack traces, logs, and recent changes. Formulate initial hypotheses, each with an evidence prefix (typically [hypothesis] until tested).

Present brief summary per reference/output-format.md.

2. Select Mode

Ask the user to choose: Standard (default for simple bugs) — conversational st

Полный SKILL.md на GitHub

Установить debug в Claude Code и Claude Desktop

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

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

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

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

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

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

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

evals/evals.jsonevals/files/invoice-total-tax/billing/__init__.pyevals/files/invoice-total-tax/billing/totals.pyevals/files/invoice-total-tax/conftest.pyexamples/hard-bug-example.mdexamples/output-example.mdreference/hypothesis-hygiene.mdreference/investigation-ladder.mdreference/output-format.mdreference/perspectives.md

FAQ

Что делает скилл debug?

Systematically diagnose and resolve bugs through conversational investigation and root cause analysis

Как установить скилл debug?

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

Скилл debug запускает скрипты?

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

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

Сравнить debug с