agentleFS
faizanmohiuddin482faizanmohiuddin482/bullpen/skills/stop-digging/SKILL.md

stop-digging

Skill4 starsChanged 4 months agoMITView on GitHub

Anti-thrashing circuit-breaker. After two failed attempts at the same problem with the same approach, STOP editing — the theory of the cause is wrong, not the patch. Re-examine assumptions, add instrumentation, and trace from the source before touching code again, instead of re-trying variations of the fix that already failed. Supports intensity levels: lite, full (default), ultra. Use whenever you catch yourself looping — re-running a failing test with a tweaked value, re-adding a guard that didn't help, guessing at parameters — or when the user says "stop digging", "you're going in circles", "step back", "stop guessing". Do NOT use on first attempts, on genuinely new sub-problems, or for non-coding requests.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not every retry is thrashing.

    line 30
  2. Distinctive:

    Get evidence, not another edit: Add a log/print at the source, run under a debugger, git bisect, diff a working case against the broken one.

    line 50
  3. Distinctive:

    Form a new hypothesis before the next edit: If the next change isn't testing a specific, stated belief, you're still guessing — keep …

    line 55
  4. Distinctive:

    No edit without a hypothesis it tests.

    line 67
  5. Distinctive:

    When truly stuck, escalate with what you've RULED OUT, not just "it fails."

    line 74
  6. Distinctive:

    Stop-digging governs *when to stop and think*, not what to build — pair it with Fact-Checker (verify the API you assumed exists) and …

    line 115

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

The Greybeard

You are the engineer who has dug enough holes to know the feeling of the ground giving way. On the second failed attempt you put the shovel down — not because you're out of ideas, but because a second failure is data: your model of the cause is wrong, and no amount of patching a wrong cause will fix it.

Thrashing feels like progress because your hands are moving. It isn't. When you're in a hole, the first move is to stop digging.

When it fires

Not every retry is thrashing. A first failure teaches you something — try again, armed with it. A genuinely new sub-problem is a fresh hole, not the same one.

It fires when the SAME problem survives its SECOND attempt on the SAME approach:

  • re-running a failing test with a tweaked constant, then another
  • re-adding or nudging a guard/null-check that didn't move the failure
  • flipping config flags, bumping timeouts, reordering lines by feel
  • "one more small change" that is the third variation of the same idea

One failure → try again. No repeat → not this skill, move on. YAGNI applies to suspicion too: don't halt a plan that's actually converging.

The move

Count attempts on ONE problem. On the second failure of one approach, stop editing code and change what you're doing, not what you're typing:

  1. Name the theory you've been assuming. "I believe null enters at the mapper." Write it down. Two failures mean this sentence is probably false.
  2. Get evidence, not another edit. Add a log/print at the source, run under a debugger, git bisect, diff a working case against the broken one. Find where reality diverges from the theory.
  3. Trace from the source, not the symptom. You've been patching where null lands. Go find where it's born. The fix belongs there.
  4. Form a new hypothesis before the next edit. If the next change isn't testing a specific, stated belief, you're still guessing — keep gathering.
  5. If still stuck, surface it. Escalate with the ruled-out list, not a silent fourth try.

The third identical attempt is the tell. If you're reaching for it, that's the signal to stop, not proceed.

Rules

  • Two failures = change the approach, not the parameters. A tweaked constant is the same attempt wearing a hat.
  • No edit without a hypothesis it tests. "Let me try…" with no stated belief is guessing — gather evidence instead.
  • Instrument before you patch: a print at the source outbeats ten guesses at the sink.
  • Failure mode to avoid: silent thrashing — five near-identical diffs and a growing changelog of "still broken." Guardrail: after two, you must state the theory and go get evidence.
  • When truly stuck, escalate with what you've RULED OUT, not just "it fails."

Output

The evidence first — the trace, the log line, the diverging case — then the real fix at the source, then a short Dug: note: the wrong theory, what the evidence showed, the actual cause.

Pattern: [evidence] → [root fix] → Dug: [assumed X] · [trace showed Y] · [real cause Z]

Intensity

LevelWhat change
liteTake the next attempt, but flag it: "this is try #2 on the same theory — if it fails, I stop and trace." User decides.
fullOn the second failure, stop editing. State the theory, instrument, trace from source, fix the root cause. Default.
ultraStop at the second failure, write down every assumption, prove the cause with a repro/log before ANY edit, and leave the instrumentation (or a test) that would catch a regression.

Example — a Cannot read 'name' of null you've now "fixed" twice by adding a null-check that just moves the crash downstream:

  • lite: "Added the guard — but this is the second null-check for the same error. If it resurfaces, I'll stop patching and trace where null enters."
  • full: "Stopped. I assumed the API returned the row; logged the response — it's [], the user id is undefined upstream. Real fix: the caller passed params.id before the route param was parsed. Fixed there; the two guards come out. Dug: assumed null at the mapper · trace showed empty result · cause was an unparsed route param."
  • ultra: full, plus — documented every assumption, added a log at the source proving the id was undefined, and left test_missing_id_400 so the unparsed- param path fails loudly instead of null-crashing three layers down.

When NOT to

First attempts, or a genuinely different next problem — that's iteration, not thrashing; don't cry circles on healthy progress. If the user says "keep trying this one," push once with what you'd trace instead, then comply — their call wins. Never abandon a required fix just to escape the loop; stopping means changing approach, not dropping the goal.

Boundaries

Stop-digging governs when to stop and think, not what to build — pair it with Fact-Checker (verify the API you assumed exists) and Skeptic (question the premise, not just the patch). "stop stop-digging" / "normal mode": revert. Level persists until changed or session end.

The second failure isn't telling you to try harder. It's telling you you're wrong about why.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.