Aller au contenu
Skillpedia
Tests48k · #4054

break-ai-fix-loops

Ce qu’il fait

Cet outil vous aide à sortir du cycle « essais et erreurs » lorsqu'un programme informatique (une IA) tente de corriger une erreur mais échoue toujours de la même façon. Il garantit que les corrections sont vérifiées de façon fiable et limite le nombre de tentatives.

Quand l’utiliser

  • ✓Lorsque l'IA répète les mêmes corrections sans résoudre le problème.
  • ✓Lorsqu'un test simple réussit, mais que le programme échoue toujours en utilisation réelle.
  • ✓Lorsque vous voulez être certain qu'une correction a réellement fonctionné et pouvoir revenir en arrière si ce n'est pas le cas.

Lien du skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/break-ai-fix-loops/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/break-ai-fix-loops/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“L'IA tourne en boucle en essayant de corriger ce bug. Pouvez-vous utiliser « Break AI Fix Loops » pour vous assurer que les corrections sont bien vérifiées ?”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Il consigne les détails exacts du problème et ce qui devrait se produire. Chaque tentative de correction est limitée et vérifiée par des preuves concrètes, afin de s'assurer que la correction est réelle et non une simple répétition.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Break AI Fix Loops

Replace patch-and-retry behavior with a bounded, evidence-producing repair. Treat a changed patch as progress only when an observable state changes.

When to Use This Skill

  • Use when an AI coding agent cycles through similar patches without changing the observed failure.
  • Use when a focused test passes but the installed, deployed, UI, API, persistence, or other real execution path still fails.
  • Use when a repair claim needs a verifier that can reject a known-bad state and a rollback that has actually restored the baseline on a disposable copy.
  • Do not use for a one-shot, already-understood edit whose acceptance check directly exercises the complete claimed behavior.

Establish the repair contract

Before the first edit, record:

  • the exact defect and the behavior that would disprove it;
  • the revision, configuration, input, and execution path under test;
  • the baseline command, literal result, and exit status;
  • the strongest check that directly observes the claimed behavior;
  • the rollback command and the state it must restore.

Save raw evidence before normalizing it. Redact credentials, tokens, cookies, personal data, and private URLs. Never put secrets into a fingerprint record or committed ledger.

If the defect cannot be reproduced, stop editing. Report INCONCLUSIVE with the missing observation instead of guessing at a fix.

Use a three-attempt budget

Allow at most three repair attempts for one acceptance claim. An attempt begins when code, configuration, dependencies, generated artifacts, or test expectations change. Inspections and read-only probes do not consume an attempt.

Do not reset the budget because the agent restarts, opens a new session, rewrites the same patch, changes models, clears a cache, or renames the hypothesis. A newly exposed downstream failure still belongs to the same three-attempt budget unless it is a separately accepted task.

For every attempt, write these fields before the next edit:

Field Required evidence
Hypothesis One causal mechanism, not a restatement of the symptom
Prediction An observation that would distinguish this hypothesis from the previous one
Change Exact changed paths and a patch or before/after hash
Focused check Exact command, input, literal output, and exit status
Real-path check Direct observation, or NOT_RUN with a reason
Symptom fingerprint Stable fingerprint described below
Decision ADVANCE, SHIFT_CAUSE, PROVEN, or STOP

Use the evidence ledger as a copyable record.

Fingerprint the observable failure

Fingerprint what the system did, not the agent's explanation. Build a canonical record from:

{
  "schema_version": 1,
  "command": "the exact verification command",
  "input_digest": "digest or stable identifier of the tested input",
  "exit_code": 1,
  "failure_class": "stable-machine-readable-class",
  "stable_excerpt": "the smallest decisive output with volatile values removed",
  "real_path_state": "the directly observed state, or NOT_OBSERVED"
}

Keep the unedited output beside this sanitized record. Remove timestamps, run IDs, ANSI codes, random ports, and temporary paths from stable_excerpt only when they do not affect the defect. Do not normalize away values that could distinguish two causes.

Optionally compute the canonical SHA-256 fingerprint from this skill directory:

python3 scripts/fingerprint.py evidence/attempt-1.json

The helper validates the record, rejects unknown fields, and prints the fingerprint. It does not execute commands or redact evidence.

The helper uses only the Python 3.9+ standard library. When changing it, run its bundled regression tests:

PYTHONDONTWRITEBYTECODE=1 python3 -m unittest scripts/test_fingerprint.py -v

The same fingerprint after a different patch means the observable failure did not move. A cosmetically different message with the same failure class, input, command, and real-path state also counts as a repeated failure when the changed text is only volatile data. Do not use a patch hash in the symptom fingerprint; record it separately so different edits cannot masquerade as different outcomes.

Shift the root-cause strategy

Set the decision to SHIFT_CAUSE immediately when any of these occurs:

  • a symptom fingerprint repeats;
  • the patch changes but the decisive state does not;

…

Questions fréquentes

Qu'est-ce qu'une « boucle de correction » ?

C'est lorsqu'un programme informatique (une IA) tente de corriger un bug, mais que la correction ne fonctionne pas, et recommence, en répétant le même processus sans succès.

Que signifie « preuve » ici ?

Ce sont les relevés détaillés de ce qui s'est passé : l'erreur exacte, les étapes pour la reproduire, le résultat attendu et le résultat obtenu. Ce sont en quelque sorte les preuves du problème.

Pourquoi limiter les tentatives ?

Limiter les tentatives évite que l'IA passe un temps infini sur des corrections qui ne fonctionnent pas, et impose une démarche plus méthodique, fondée sur des preuves, pour résoudre le problème.

Détails

Description originale de l’auteur

Stop ineffective AI coding repair loops with stable failure fingerprints, a three-attempt budget, real-path proof, negative controls, and tested rollback.

repo: sickn33/agentic-awesome-skills

Popularité

Étoiles GitHub
48k
Position au classement
#4054
Licence
MIT
Mis à jour
15/10/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires