agentsclimarketplace

Diagnose

Skill rene404/workflow-skills/skills/diagnose

Systematic debugging loop for hard bugs, unexpected failures, and performance regressions. Reproduce → minimise → hypothesise → instrument → fix → regression test. Use when the user says "debug this", "diagnose", reports a bug, describes something broken or throwing, or pastes a stack trace. Do NOT skip straight to a fix — always reproduce first.From its SKILL.md

Install
npx -y skills add rene404/workflow-skills --skill diagnose

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

2.6 KB, as published. Nobody here has run it

Loop

Run each phase in order. Do not skip ahead.

1. Reproduce

  • Get a reliable reproduction: exact command, request, or input that triggers the failure.
  • If the bug is intermittent, find the condition that makes it deterministic.
  • Write down the observed vs expected behaviour precisely.

2. Minimise

  • Strip away unrelated code, data, or config until you have the smallest case that still reproduces.
  • A minimal reproduction exposes the root cause faster and makes the regression test obvious.

3. Hypothesise

  • List 2–4 concrete hypotheses ranked by likelihood.
  • Each hypothesis must be falsifiable (i.e., there is a test that would disprove it).
  • Do not start instrumenting until you have at least two hypotheses.

4. Instrument

  • Add targeted logging, assertions, or temporary print statements to test the top hypothesis.
  • Run the reproduction. Observe. Does the evidence support or falsify the hypothesis?
  • If falsified, move to the next hypothesis and repeat.
  • Do not scatter logging everywhere — one focused probe at a time.

5. Fix

  • Implement the minimal change that addresses the confirmed root cause.
  • Do not refactor surrounding code while fixing. Scope is the bug.
  • Run the full test suite. All tests must pass before continuing.

6. Regression test

  • Write a test that would have caught this bug.
  • Confirm it fails on the unfixed code (or verify the condition conceptually).
  • Confirm it passes on the fixed code.
  • Commit: fix + regression test together.

Hard rules

  • Never jump to Step 5 without completing Steps 1–4.
  • Never fix two bugs in one commit.
  • If the fix is large or touches many files, use /plan to break it into safe steps first.

Common traps

TrapCorrect action
"I think I know what it is"Still reproduce and hypothesise
Fix doesn't hold in CIThe reproduction was not complete — go back to Step 1
Can't reproduce locallyDocument the exact environment difference; don't fix blind
Multiple failures at onceFix the deepest root cause first, then re-run

Related

  • /tdd — if the fix requires new behaviour, drive it with tests
  • /verify — final check after fix is in place

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.