agentleFS
aradmanamnaoonaradmanamnaoon/vibe-coding-skills/skills/debugging/loop-breaker/SKILL.md

loop-breaker

Skill0 starsChanged 18 days agoMITView on GitHub

Detect and stop no-progress debugging, retry, and tool-call loops while preserving repeated actions that make measurable progress. Use when the same action or error is recurring.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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:

    Read applicable repository instructions before edits.

    line 20
  2. Distinctive:

    If two materially different strategies fail to add evidence, escalate with the exact blocker instead of continuing.

    line 37
  3. Distinctive:

    Never terminate a legitimate batch solely because command names repeat.

    line 46
  4. Distinctive:

    No permanent/structural error is retried indefinitely.

    line 51
  5. Distinctive:

    When it is unclear whether state is changing, collect one explicit state snapshot before deciding.

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Purpose

Prevent wasted iterations by measuring progress and changing strategy when repeated actions stop producing new evidence.

When to activate

The agent has repeated similar commands, edits, retries, or hypotheses, or the same error returns after multiple attempts.

When not to activate

Repeated calls are expected and each iteration has an explicit changing state, counter, page, batch, or new evidence.

Preconditions

  • Read applicable repository instructions before edits.
  • Preserve unrelated working-tree changes and establish a baseline when the workflow can modify code.
  • Identify which tools and environments are actually available; do not claim unavailable checks ran.

Required inputs

  • Recent actions and results
  • Current objective and completion criteria
  • Any retry/backoff policy

Workflow

  1. Define a progress marker tied to the objective: new evidence, changed failing set, reduced error, processed item count, or state transition.
  2. Summarize the last three relevant attempts as action, result, and new information.
  3. Classify the repetition as progress-making, transient retry, or no-progress loop.
  4. For transient failures, apply the documented bounded retry/backoff policy; never invent unlimited retries.
  5. For no-progress loops, stop repeating the action and choose one materially different diagnostic strategy.
  6. If two materially different strategies fail to add evidence, escalate with the exact blocker instead of continuing.
  7. Record the stop condition so a later agent does not restart the same loop.

Relevant tools

Command/tool history, error classification, task plan, logs.

Safety restrictions

Never terminate a legitimate batch solely because command names repeat; judge progress from state/evidence.

Validation

  • A repeated action is allowed only when its progress marker changes or a bounded transient retry policy justifies it.
  • No permanent/structural error is retried indefinitely.
  • The final report lists attempts already exhausted.

Expected output

  • Progress marker
  • Loop classification
  • Next distinct action or explicit escalation
  • Exhausted attempts

Failure handling

When it is unclear whether state is changing, collect one explicit state snapshot before deciding; do not keep retrying to discover that implicitly.

Completion criteria

The skill is complete only when every applicable validation item above has observed evidence or is explicitly marked not executed with the concrete blocker. Do not replace missing evidence with confidence language.

Research mapping

This skill was selected from research problems: P007, P050. See research/vibe-coding-problems.md and research/problem-evidence.csv in the Vibe Coding Skills repository.

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.