No slash command · from deniz-process
Use when encountering any bug, test failure, performance regression, or unexpected behavior, before proposing fixes
Ships in deniz-process. 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.
Core principle: build a feedback loop, then find the root cause — no fixes before both. Symptom fixes are failure. A tight pass/fail signal for the bug is what bisection, hypotheses, and instrumentation all consume; without one, no amount of staring at code will save you.
Violating the letter of this process is violating the spirit of debugging.
NO FIXES WITHOUT A RED FEEDBACK LOOP AND A ROOT CAUSE
If you haven't completed Phases 1–3, you cannot propose fixes.
Use for ANY technical issue: test failures, bugs in production, unexpected behavior, performance regressions, build failures, integration issues.
Use this ESPECIALLY when:
Don't skip when: the issue seems simple (simple bugs have root causes too), you're in a hurry (systematic is faster than thrashing), or someone wants it fixed NOW.
This skill has you show commands, outputs and captured artifacts. Redact every secret first:
write <REDACTED> in its place. Build loops against env vars, so the credential stays in the
environment rather than in what you show. Captured artifacts carry auth headers: quote only the
lines that carry the signal.
If the redacted output is not enough to diagnose the bug, say so and ask your human partner.
This is the skill. Everything else is mechanical. If you have a tight pass/fail signal that goes red on this bug, you will find the cause. If you don't, stop — build one first.
Spend disproportionate effort here. Be aggressive. Be creative. Refuse to give up.
git bisect run it.Treat the loop as a product:
A 30-second flaky loop is barely better than no loop; a 2-second deterministic one is a debugging superpower.
The goal is not a clean repro but a higher reproduction rate. Loop the trigger 100×, parallelise, add stress, narrow timing windows, inject sleeps. A 50%-flake is debuggable; 1% is not — keep raising the rate until it is.
Stop and say so explicitly. List what you tried. Ask your human partner for (a) access to the environment that reproduces it, (b) a redacted captured artifact (HAR file, log dump, core dump, recording with timestamps), or (c) permission to add temporary production instrumentation. Do not proceed to hypothesise without a loop.
Phase 1 is done when you can name one command — a script path, a test invocation, a curl — that you have already run at least once (show the invocation and its output, redacted), and that is:
If you catch yourself reading code to build a theory before this command exists, stop — jumping straight to a hypothesis is the exact failure this skill prevents.
Run the loop. Watch it go red. Confirm:
Then shrink the repro to the smallest scenario that still goes red: cut inputs, callers, config, data, and steps one at a time, re-running the loop after each cut. Done when every remaining element is load-bearing — removing any one makes the loop go green. A minimal repro shrinks the hypothesis space and becomes the regression test later.
Before forming any hypothesis:
root-cause-tracing.md in this directory. Fix at the source,
not at the symptom.Generate 3–5 ranked hypotheses before testing any. Single-hypothesis generation anchors on the first plausible idea.
Each hypothesis must be falsifiable — state its prediction:
"If is the cause, then will make the loop go green / will make it worse."
If you cannot state the prediction, it's a vibe — discard or sharpen it.
Show the ranked list to your human partner before testing. They often re-rank instantly ("we just deployed a change to #3") or have already ruled some out. Don't block on it — proceed with your ranking if they're away.
Test minimally: the smallest possible change, one variable at a time. Didn't work? Form a NEW hypothesis — don't stack fixes. Don't know? Say "I don't understand X" and investigate — never pretend to know.
Each probe must map to a specific prediction from Phase 4. Change one variable at a time.
Tag every debug log with a unique prefix, e.g. [DEBUG-a4f2] — cleanup becomes a single
grep. Untagged logs survive; tagged logs die.
Performance regressions: logs are usually the wrong tool. Establish a baseline measurement (timing harness, profiler, query plan), then bisect. Measure first, fix second.
Regression test first — at a correct seam. Turn the minimised repro into a failing test
using the deniz-process:test-driven-development skill. A correct seam exercises the real bug
pattern as it occurs at the call site; a too-shallow seam gives false confidence. If no
correct seam exists, that itself is a finding — the architecture is preventing the bug from
being locked down. Document it and raise it with your human partner. If you forced the red by
mutating code or a fixture, diff against a pristine copy to prove the mutation landed before
you trust it.
Implement a single fix at the root cause. ONE change; no "while I'm here" improvements, no bundled refactoring.
Verify. Test passes, no other tests broken, and the Phase 1 loop goes green against the original (un-minimised) scenario. Use the deniz-process:verification-before-completion skill before claiming success.
If the fix doesn't work: STOP and count. Fewer than 3 attempts → return to Phase 3 with the new information. 3 or more → question the architecture:
Each fix revealing a new problem elsewhere, fixes needing "massive refactoring", every fix creating new symptoms — that pattern is not a failed hypothesis, it is a wrong architecture. Stop fix attempts on this bug before fix #4. Finish independent work, then bring the architecture question to your human partner with the evidence and your recommendation.
Required before declaring done:
[DEBUG-...] instrumentation removed (grep the prefix)Then ask: what would have prevented this bug? If the answer is architectural (no good test
seam, tangled callers, hidden coupling), raise it with your human partner as its own piece of
work — after the fix is in, when you know the most. See defense-in-depth.md for adding
validation at multiple layers once the root cause is known.
If systematic investigation reveals the issue is truly environmental or external: document what you investigated, implement appropriate handling (retry, timeout, error message), add monitoring. But 95% of "no root cause" cases are incomplete investigation.
If you catch yourself thinking:
ALL of these mean: STOP. Return to the phase you skipped.
| Excuse | Reality |
|---|---|
| "Issue is simple, don't need process" | Simple issues have root causes too. The process is fast for simple bugs. |
| "Emergency, no time for process" | Systematic debugging is FASTER than guess-and-check thrashing. |
| "A loop is overkill, I can eyeball this" | Without a red signal you cannot even prove the bug is fixed. |
| "Just try this first, then investigate" | The first fix sets the pattern. Do it right from the start. |
| "I'll write the test after confirming the fix" | Untested fixes don't stick. Red first proves the test can catch it. |
| "Multiple fixes at once saves time" | You can't isolate what worked, and it causes new bugs. |
| "Reference too long, I'll adapt the pattern" | Partial understanding guarantees bugs. Read it completely. |
| "I see the problem, let me fix it" | Seeing symptoms ≠ understanding the root cause. |
| "One more fix attempt" (after 2+) | 3+ failures = architectural problem. Question the pattern, don't fix again. |
| Phase | Key activity | Done when |
|---|---|---|
| 1. Loop | Construct a tight pass/fail signal | One red-capable, deterministic, fast command — already run |
| 2. Reproduce + minimise | Watch it go red, shrink the repro | Every remaining element is load-bearing |
| 3. Root cause | Errors, recent changes, evidence, data flow, patterns | You understand WHAT and WHY |
| 4. Hypothesise | 3–5 ranked, falsifiable predictions | One confirmed by minimal test |
| 5. Instrument | One probe per prediction, tagged | Hypotheses distinguished by evidence |
| 6. Fix | Test-first at a correct seam, single fix | Test green, suite green, loop green |
| 7. Cleanup | Remove instrumentation, post-mortem | Checklist above complete |
Available in this directory:
root-cause-tracing.md — trace bugs backward through the call stack to the original triggerdefense-in-depth.md — add validation at multiple layers after finding the root causecondition-based-waiting.md — replace arbitrary timeouts with condition pollingWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub blind-striker/agent-skills-and-plugins --plugin deniz-process45 skills in this plugin
/asd-ste100Use when English text must be parsed without a human to resolve ambiguity — tool descriptions, error messages, inter-agent instructions, system prompts, status reports — and misreading has a real cost, or when text reads as dense, hedged, or easy to misparse. Triggers: disambiguate, STE100 rewrite, apply Simplified Technical English, plain-language rewrite, controlled-language rewrite, rewrite so an agent cannot misread this. Not for creative or marketing copy./ask-denizUse when unsure which skill or ceremony fits, or when asked which to use, across installed deniz Modules: process workflows, .NET, Aspire, and Akka. Manual ceremonies stay user-started./brainstormingOther plugins' skills for the same job