stop-digging

stop-digging is a skill for Claude Code from ccplugins/awesome-claude-code-plugins. It costs 159 tokens per session (1,440 once invoked), scanned A, original, Apache-2.0.

A debugging rule that stops repeated edits after the same problem survives two attempts using the same idea. It treats the repeated failure as evidence that the assumed cause may be wrong.

In plain words
What is it for?
Re-examining failing tests, guards, configuration changes, timeouts, and line-order changes before trying another patch.
Why use it?
It prevents thrashing—making small variations of the same fix without learning why the failure remains.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the bullpen plugin — 10 skills shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ccplugins/awesome-claude-code-plugins/stop-digging
Any agent
npx skills add ccplugins/awesome-claude-code-plugins --skill stop-digging
Clone the repo
git clone --depth 1 https://github.com/ccplugins/awesome-claude-code-plugins

Made for: Claude Code.

Or install bullpen, the plugin that ships this one along with the rest of its 10 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stop-digging

README.md
[![agentmods](https://agentmods.dev/badge/skills/ccplugins/awesome-claude-code-plugins/stop-digging.svg)](https://agentmods.dev/skills/ccplugins/awesome-claude-code-plugins/stop-digging)
Your own site
<a href="https://agentmods.dev/skills/ccplugins/awesome-claude-code-plugins/stop-digging"><img src="https://agentmods.dev/badge/skills/ccplugins/awesome-claude-code-plugins/stop-digging.svg" alt="Measured on agentmods" height="20"></a>
Per session 159 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,440 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00159 $0.01440
Opus 5 $0.00079 $0.00720
Sonnet 5 $0.00032 $0.00288
Haiku 4.5 $0.00016 $0.00144

Measured 3d ago against content hash d77b3998e8b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

stop-digging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/bullpen/skills/stop-digging/SKILL.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

Read the full file on GitHub · 122 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 122 lines · 159 tokens per session scan A d77b3998e8b5

Subscribe to this mod's changes

stop-digging is a skill published in the GitHub repository ccplugins/awesome-claude-code-plugins (932 stars, last pushed 24d ago), licensed Apache-2.0. It adds 159 tokens to every session and 1,440 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens