Aller au contenu
Skillpedia
Agents280k · #353

loop-design-check

Ce qu’il fait

Cet outil vous aide à créer ou à vérifier une « boucle » pour des tâches d'IA répétitives. Il s'assure que l'IA suit l'objectif défini et qu'elle ne tourne pas en rond ni ne produit des résultats incorrects.

Quand l’utiliser

  • ✓Lorsque vous créez une tâche que l'IA doit répéter de nombreuses fois.
  • ✓Lorsque vous soupçonnez qu'une tâche répétitive de l'IA est bloquée ou produit de mauvais résultats.
  • ✓Pour vous assurer que l'IA comprend et suit un objectif clair et mesurable.

Lien du skill

https://github.com/affaan-m/ECC/blob/main/skills/loop-design-check/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/affaan-m/ECC/blob/main/skills/loop-design-check/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

“Je veux créer une boucle pour que l'IA examine automatiquement mes rapports hebdomadaires et me signale toute incohérence.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

Il fonctionne en définissant un objectif clair que l'IA peut vérifier par elle-même. Ensuite, l'outil aide à mettre en place la boucle pour que l'IA tente d'atteindre cet objectif, avec des mécanismes qui l'empêchent de s'égarer ou de mal fonctionner.

Contenu technique (SKILL.md original)

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

Loop Design + Review

Premise. An LLM is a feed-forward system: prompt in → tokens out, with no built-in "steer toward the goal" across turns. To make it behave like a goal-oriented system, you wrap a feedback loop around it. This skill helps you write that loop correctly and review it so it won't run away.

When to use / not

Use it when:

  • You want to hand a repeating task to an agent that runs over and over (write→test, test→fix, fix→verify…).
  • You already have a loop and worry it spins, cheats, or runs a wrong answer to completion.

Don't use it for:

  • A one-off task → just do it; don't wrap a loop around it.
  • A plain timer / poll → use /loop; no design needed.
  • How to wire the loop architecture (pipelines → DAGs, long-run recovery) → that's the mechanism layer; see autonomous-loops / continuous-agent-loop. This skill only covers "is the goal right, and will it run away" — it does not re-explain mechanism.

Red-line premise: two levels of feedback

Level Who owns it What it does
Execution (low) machine / agent Measures "how far from the literal goal" and grinds it to zero. The machine is strong here.
Judgment (high) human Decides "is this goal itself right, should it change, should it stop." The machine can't step outside its own loop to question the goal.

A thermostat can feed back "how far from 26°C," but when you have a fever and want 28°C it can't judge whether 26 is the right target — it just grinds toward 26. "What to set today" is always the human's call. Handing judgment / sign-off / the last switch to the machine = removing the high-level feedback = it sprints, fast and hard, toward a goal no one questioned → wrong output.


Action 1 — Write a loop (5 steps)

Step 0 · Subtract first: should you even build it? (4-condition gate, any miss = veto)

① the task repeats weekly or more ② verification can be automated ③ the token budget can take it ④ the agent has tools that actually run and see the result

Miss any one → don't build a loop; do it by hand or another way.

What stops most people isn't "can I write a loop," it's "does my repo deserve one." A repo that deserves a loop has a reconciliation baseline (golden sample / upstream total) + tests + a lint guard. A repo that doesn't deserve a loop will only have its errors amplified by one.

Step 1 · Define a machine-decidable goal (the hard part — the loop lives or dies here)

The whole loop rides on the comparator's "is it done yet?" The comparator can only work if your exit condition can be judged yes/no by a machine.

  • Bad: Vague ("make it good," "write it sharper") → the comparator can't judge → either it never passes (stuck retrying) or it guesses (passes/blocks at random).
  • Good: Decidable ("all 96 unit tests green AND a change-list is produced," "module-02 fields filled, pytest passes, business logic untouched") → one check settles it; the loop converges cleanly.

Five-point goal framework:

  1. Done-criterion is machine-verifiable.
  2. Boundary conditions defined alongside the done-criterion ("what it must NOT do") — anti-Goodhart; missing boundaries = a license to cheat.
  3. Has a failure fallback — retry cap N + escalate to a human when exceeded.
  4. Goal is layered.
  5. Prefer reconciliation over assertion for the done-criterion — anchor to external fact (golden sample / upstream total / financial tie-out / platform back-office numbers) before your own assertions. "All tests pass" can be gamed (loosen asserts, fake mocks, swallow exceptions); "diff vs the reference < 0.01" can't.

Self-check: read the goal to someone who doesn't know the domain — can they run one command and tell whether it's done? If not, it isn't decidable enough. Go back.

Step 2 · Pick the loop type

Your task Loop type (cybernetic) How it stops
Has a clear "done" test (write to done / a batch of images processed) servo (/goal-style closed-loop) stops on reaching the goal
No endpoint, must keep maintaining a state (inventory alert / scheduled health check) regulator (/loop-style thermostat) never stops; acts only on change (dead-band suppresses noise)
Periodic sampling, stop on a condition (watch a PR until CI is green) regulator with an exit stops when the exit condition holds

…

Questions fréquentes

Qu'est-ce qu'une « boucle » pour une IA ?

C'est un peu comme confier à l'IA une tâche continue. Au lieu de lui demander quelque chose une seule fois, vous la configurez pour qu'elle répète une action, vérifie le résultat et continue jusqu'à ce que l'objectif soit atteint ou qu'un problème survienne.

Pourquoi une IA peut-elle s'égarer ou produire de mauvais résultats ?

Sans objectif clair et vérifiable, l'IA peut deviner ce que vous voulez, répéter indéfiniment la même chose (tourner en rond) ou trouver des « raccourcis » pour sembler avoir fini sans fournir le bon résultat.

Quelle est la différence entre le « niveau d'exécution » et le « niveau de jugement » ?

Le niveau d'exécution correspond à l'IA qui tente d'atteindre l'objectif étape par étape. Le niveau de jugement, c'est vous (l'humain) qui décidez si l'objectif lui-même est correct, si l'IA est sur la bonne voie ou s'il faut l'arrêter. L'IA ne peut pas juger l'objectif, elle ne peut que le suivre.

Détails

Description originale de l’auteur

Design a goal-oriented agent loop or review one for failure modes: spinning, Goodhart-gaming the verifier, or running a wrong answer to completion. Covers machine-decidable goals, loop types, plan/build/judge skeletons, and runaway prevention; mechanism wiring lives in autonomous-loops. Use when designing, writing, or checking an agent loop. 中文触发:写 loop、设计 loop、做一个 loop、检查 loop 对不对、loop 体检、loop 会不

repo: affaan-m/ECC

Popularité

Étoiles GitHub
280k
Position au classement
#353
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