Aller au contenu
Skillpedia
Agents48k · #3709

ai-loop

Ce qu’il fait

Cet outil organise le travail de programmation en étapes claires : planifier (spécification), construire et relire. Il veille à ce que l'IA suive précisément vos instructions, vérifie son travail à chaque étape et vous demande votre accord avant les actions importantes.

Quand l’utiliser

  • ✓Quand vous voulez que l'IA crée quelque chose de nouveau à partir de zéro, en suivant un plan.
  • ✓Quand le travail doit être découpé en petites parties avec des règles claires.
  • ✓Quand vous voulez que l'IA vérifie son propre travail avant de vous le remettre.

Lien du skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ai-loop/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/ai-loop/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 fonction Python qui calcule la moyenne d'une liste de nombres. La fonction doit ignorer les valeurs non numériques et renvoyer 0 si la liste est vide.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'IA commence par comprendre ce que vous voulez (spécification). Ensuite, elle construit le code en suivant cette spécification. Enfin, elle relit le code pour vérifier que tout est correct, en recommençant si nécessaire.

Contenu technique (SKILL.md original)

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

AI-Loop Skill

Overview

The ai-loop skill structures a bounded development cycle for agentic workflows. By dividing the process into distinct planning (Spec), implementation (Build), and validation (Review) phases, it helps an agent build and correct scoped code changes while keeping requirements, risk gates, and stop conditions explicit.

When to Use This Skill

  • Use when you need a feature built from scratch or heavily modified, and you want the agent to handle the lifecycle (specification, implementation, and verification) inside one clearly bounded workflow.
  • Use when working with isolated components, modules, or features that have well-defined scopes and constraints.
  • Use when the user asks for a complete development pass but the work still has clear success criteria, a reasonable verification path, and no unresolved safety or product decisions.

How It Works

This skill executes a controlled development loop composed of three phases: Spec, Build, and Review. When invoked, the agent moves through those phases until the scoped requirements pass verification, a stop condition is reached, or human approval is needed.

Before starting, define:

  • The maximum number of build-review iterations.
  • The verification commands or manual checks that count as evidence.
  • The actions that require explicit approval, such as destructive commands, production changes, external service writes, or broad architectural pivots.

Phase 1: Spec (Planning)

  1. Reuse the current request, accepted plan and existing artifacts. Ask only for essential missing scope or acceptance criteria; do not repeat answered questions.
  2. Do not start building yet.
  3. When you have enough information, use the existing specification or, when needed, save a scoped new one at specs/<feature-name>.md without overwriting user work.
  4. The spec must include:
    • The objective
    • The exact requirements
    • Edge cases to handle
    • A concrete definition of done that someone could check the build against
    • The iteration budget, verification commands, and approval gates.

Phase 2: Build (Implementation)

  1. Read the spec you just created in specs/<feature-name>.md.
  2. Build exactly what it describes.
  3. Do not add features, do not refactor unrelated code, and do not invent requirements that aren't in the spec.
  4. Focus strictly on fulfilling the spec. List which spec requirements you covered so the review step can check them.

Phase 3: Review (Verification)

  1. Compare your implementation against specs/<feature-name>.md.
  2. Go requirement by requirement and verify if it was met. List every gap, bug, or missing piece, naming the exact spec item each one fails.
  3. If anything fails and the iteration budget is not exhausted, write the specific fixes needed and loop back to Phase 2 (Build) to address them.
  4. Use the agreed iteration/resource limits and scope. Ask for material product or consequential authorization decisions that are not already resolved; routine repairs within the accepted outcome need no new checkpoint. Continue independent work when a dependent check is unavailable.
  5. Only pass the build and conclude the skill execution when every requirement in the spec is fully met and the declared verification evidence has passed.

Examples

Example 1: Creating a Basic Statistics Helper

User:

I want to add a utility for calculating basic statistics (mean, median, mode) of an array of numbers.

Agent (Phase 1 - Spec):

I can help with that. To get started, what programming language should this statistics calculator be implemented in? Also, how should empty arrays or invalid inputs be handled?

User:

JavaScript. If the array is empty, return null. If there are non-numbers, ignore them.

Agent (Phase 1 - Spec):

Thank you. I have created the specification file at specs/stats-calculator.md with the requirements we discussed. Now, I will start implementing it.

Agent (Phase 2 - Build):

(Creates stats_calculator.js and implements mean, median, and mode matching the spec exactly) I have finished implementing the calculator. I will now verify the implementation.

Agent (Phase 3 - Review):

Checking implementation against specs/stats-calculator.md:

  • Requirement: mean calculation -> PASS
  • Requirement: median calculation -> PASS
  • Requirement: mode calculation -> PASS
  • Requirement: empty array returns null -> PASS

…

Questions fréquentes

Que sont les « points d'approbation » ?

Ce sont les moments où l'IA s'arrête et vous demande la permission avant de faire quelque chose de risqué, comme modifier le code de base ou supprimer des données.

Que se passe-t-il si l'IA ne peut pas terminer le travail ?

Elle vous indique ce qui manque et pourquoi elle n'a pas pu terminer, en respectant les limites que vous avez fixées (par exemple le nombre de tentatives).

L'IA peut-elle créer n'importe quel type de code ?

Elle convient surtout aux tâches bien définies et isolées. Pour des modifications très importantes ou touchant de nombreuses parties du système, ce n'est peut-être pas le meilleur outil.

Détails

Description originale de l’auteur

Runs a bounded spec-build-review development loop with explicit scope, stop conditions, and human approval gates for risky or ambiguous work.

repo: sickn33/agentic-awesome-skills

Popularité

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