/whetstone:ia-debuggingfrom whetstone
Systematic root-cause debugging with verification. Use for errors, stack traces, broken tests, flaky tests, regressions, or anything not working as expected.
Ships in whetstone. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Ground permanent repairs in an evidence-backed causal explanation. A hypothesis may justify a bounded reversible experiment; label it as experimental until verified. During an active incident, an authorized rollback or feature disable may restore service before root cause is known. Record remaining uncertainty and keep the repair investigation open: mitigation is not proof of repair.
For diagnosis-only requests, inspect source/artifacts and run safe read-only checks within caller authority; do not repair or violate a no-build constraint. Diagnosis may finish with an evidenced cause while its proposed repair remains unverified. Use NEEDS_CONTEXT only for information blocking the requested work.
Keep edits within the hypothesis's narrow file scope; revise the hypothesis before expanding it. A site that makes the same root-cause mistake inside the authorized scope (the component, directory, or repository the user asked to have fixed) is in scope; one outside it is report-only until the user approves. Preserve other work. Before sharing diagnostics or searching externally, remove credentials, customer data, hostnames, IPs, paths, and SQL fragments as appropriate; use environment-sourced credentials rather than embedding secrets. Read baseline-and-data-handling.md for branch/build comparisons or diagnostic data sharing.
ia-verification-before-completion; do not weaken assertions, swallow failures, or special-case the exercised input. Run a bypass self-check with a nearby input reaching the same bad state; return to root cause if it bypasses the change. Security-relevant fixes need a fresh adversarial re-attack under specialized-patterns.md. Then sweep for the same defect shape: search the repo (skip generated/vendored code) for the fix's signature (call, missing guard, or lock omission) and for other code that rests on the same wrong assumption under different names or expression shapes, and classify each match as same bug, safe (why), or unsure; report each unsure match with what would settle it. Every match classified as the same bug inside the authorized scope (the component, directory, or repository the user asked to have fixed) is part of the minimal fix: fix it in this run with its own red/green check where a seam can reach it, or record the missing seam. Leave a match unchanged only when fixing it would reverse a deliberate behavior or its file carries someone else's uncommitted edits, and report each such site with the reason. Report a same-bug match outside the authorized scope with the reason and edit it only after the user approves. A match where the same construct is correct because its inputs or conventions differ is safe, not an instance. Trim the verified fix and remove diagnostic instrumentation.For CI failures, rendering/async first moves, performance, intermittent failures, postmortems, or recurring patterns, read specialized-patterns.md. For a multi-layer validation defect, read defense-in-depth.md. Follow the detailed repair reference when diagnostic anti-patterns or repeated failed fixes appear.
Emit the seven fields for the requested scope:
SYMPTOM: Observed failure
ROOT CAUSE: Evidenced causal conclusion with file:line covering every symptom, or remaining uncertainty
FIX: Verified repair; use PROPOSED FIX and validation command in diagnosis-only mode
EVIDENCE: Causal evidence and, for repairs, actual verification results
REGRESSION: Actual regression, or proposed test/missing seam when no repair was performed
RELATED: Same-shape sweep (N checked, N same bug, each fixed or left with reason; or not run and why); prior bugs, risks, architecture
STATUS: DONE | DONE_WITH_CONCERNS | BLOCKED | NEEDS_CONTEXT
DONE means the repair was verified or the requested diagnosis was completed with evidence; it never certifies an untested proposed remedy. DONE_WITH_CONCERNS states completed scope and residual uncertainty. BLOCKED names the blocker; NEEDS_CONTEXT names required missing information. Mitigation alone does not close a repair request.
Before completing a repair, check causal evidence, actual regression coverage or its stated limit, bypass/re-attack results, and removal of diagnostic logging. For non-trivial production bugs, capture a lightweight timeline, cause, impact, fix, and prevention postmortem using the specialized reference. When the deciding fact took deep investigation because existing logs, metrics, and errors did not show it, propose in RELATED: the cheap always-on signal (a log field, a metric, or an assertion) that would have shown it immediately, as a proposal outside the minimal fix.
SPEC.md (opens in a new tab)references/baseline-and-data-handling.md (opens in a new tab)references/competing-hypotheses.md (opens in a new tab)references/defense-in-depth.md (opens in a new tab)references/repair-and-escalation.md (opens in a new tab)references/reproduction-and-investigation.md (opens in a new tab)references/root-cause-tracing.md (opens in a new tab)references/specialized-patterns.md (opens in a new tab)scripts/collect-diagnostics.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
29 skills in this plugin
/ia-agent-native-architectureDesign agent-native applications where agents replace UI users as the primary actor. Use when designing MCP tools, agent-loop architectures, system prompt design, hooks policy, shared-workspace file patterns, or self-modifying agent systems./ia-brainstormingPre-implementation exploration: deep interview, approach comparison, design doc. Use when exploring a vague feature idea, clarifying ambiguous requirements, or comparing approaches before coding. For the full workflow, use the ia-brainstorm command (Claude Code)./ia-code-reviewStructured code reviews with severity-ranked findings and deep multi-agent mode. Use when performing a code review, auditing code quality, or critiquing PRs, MRs, or diffs, including a diff or patch pasted inline, even when the review looks quick from reading it. For the full multi-agent workflow, use the ia-review command (/ia-review in Claude Code).npx claudepluginhub iliaal/whetstone --plugin whetstone