design-control-loop
Ce qu’il fait
Cette compétence apprend à un agent à concevoir une boucle automatisée qui améliore une base de code par petites étapes. Elle pose d'abord des questions, propose des options adaptées au dépôt, puis construit la conception que vous avez validée.
Quand l’utiliser
- ✓Quand une équipe veut qu'une propriété de la base de code, comme un ancien schéma, évolue vers une cible par petites modifications dans le temps.
- ✓Quand un utilisateur veut qu'un agent planifié effectue des modifications à faible risque que une personne relit.
- ✓Quand un utilisateur ne sait pas comment automatiser un travail répétitif sur la base de code et veut d'abord une conception.
Lien du skill
https://github.com/humanlayer/skills/blob/main/plugins/design-control-loop/skills/design-control-loop/SKILL.mdCopiez-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
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Je veux que notre base de code abandonne progressivement ses anciens appels d'API. Aide-moi à concevoir une boucle automatisée que une personne relira.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent vous interroge sur l'objectif et les risques, lit les outils du dépôt et propose une conception selon un modèle à capteur, contrôleur et actionneur. Une fois la conception approuvée, il construit les parties locales et un flux de travail planifié.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
Design Control Loop
Use this skill when a user wants to drive some property of their codebase toward a target with small, low-risk, reviewable changes on a schedule — an agentic control loop.
Your job is to interview the user, design the loop with them, and then build it for them. The design must be tailored to their codebase and the tooling they already use. There is no fixed toolset and no template to reproduce: propose options grounded in what you find in the repo, discuss trade-offs, agree on a design, then implement it.
The mental model
Borrow from control theory. The codebase is a dynamic system being changed continuously (by teammates, dependencies, and generated code — the disturbances). A control loop drives it toward a desired state instead of all at once:
- Set point — the desired end state for some property of the codebase.
- Sensor — measures the current state, producing the gap to the set point.
- Controller — decides the next small, low-risk change from that measurement.
- Actuator — a coding agent that applies the change and opens a PR.
- The result feeds back into the next run. A human stays on the loop to steer it.
Read references/control-loop-taxonomy.md and walk the user through these concepts before designing anything. For one fully worked example, see references/example-control-loop.md — treat it as an illustration, not a blueprint.
How to run this skill
- Read the repo before you ask (Phase A). Come to the interview with proposals, not a blank form.
- Tailor every component. The right sensor, controller, and actuator depend entirely on the user's problem and stack. The lists in the references are examples to spark discussion, never a checklist to push.
- Make each component runnable locally and standalone before wiring it into CI (Phase D). The workflow should only orchestrate pieces the user can already run by hand.
- Capture the agreed design in writing before building, so the user can correct it cheaply.
Outputs
Create or update these in the target repo, tailored to the agreed design:
- The sensor and controller as version-controlled commands/scripts the user can run locally.
.claude/skills/<skill-name>/SKILL.md— the actuator skill capturing the agent's judgement (path may be.agents/skills/...per repo convention).- The recurring workflow that runs the loop and opens a PR (GitHub Actions by default; whatever CI the repo uses).
- A memory/feedback file that carries standing feedback between runs.
- Optionally, a dampener (regression gate) that keeps the problem from getting worse while the loop improves it.
Workflow
Phase A — Understand the system
Read the following references: references/example-control-loop.md.
Read before asking setup questions:
- Existing CI:
.github/workflows/*.yml,.github/actions/**, or the repo's non-GitHub CI config — runner, checkout, dependency install, cache, and PR conventions. - Package manager files (
package.json,bun.lock,pnpm-lock.yaml,yarn.lock,package-lock.json,pyproject.toml,go.mod,Cargo.toml, …). - Existing validation scripts: typecheck, lint, test, quality, format, and package-scoped commands.
- Existing
.claude/skills/.agents/skillsand any existing agent loops (workflows,agent-memory, where glue scripts live) to mirror conventions instead of inventing new ones. - The static-analysis, linting, codegen, and test tooling already in the repo — these are the most likely raw material for a sensor.
- Discover packages, services, and repo purpose at a high level.
Completion criterion: you can name the repo's package manager, install command, likely validation commands, CI platform, and any existing loop conventions. You understand the packages/services/applications it contains at a high level.
Phase B — Design the loop with the user
Read the following references: references/control-loop-taxonomy.md, references/example-control-loop.md, references/agent-runner-templates.md.
This is an interview. Work through each component below. Start by asking the user questions about the set point. Proposing options grounded in Phase A and surfacing trade-offs rather than mandating any choice. Record the decisions as you go.
- Set point. What property are we driving, and to what target? Examples: an invariant ("no procedures use the old pattern"), a threshold ("test coverage ≥ X in these pack
Questions fréquentes
Qu'est-ce que le capteur dans cette conception ?
C'est la partie qui mesure à quelle distance la base de code se trouve de l'objectif visé.
Applique-t-elle les modifications sans relecture ?
Non. La compétence garde une personne dans la boucle pour la piloter, et les modifications arrivent sous forme de demandes de fusion à relire.
Suppose-t-elle un ensemble d'outils fixe ?
Non. La compétence indique que la conception doit s'adapter à la base de code de l'utilisateur et aux outils déjà utilisés.
Détails
Description originale de l’auteur
interview the user to design an agentic control loop (sensor, controller, actuator under disturbances) tailored to their codebase, then build it as locally-runnable components plus a scheduled coding-agent workflow
repo: humanlayer/skills
Popularité
- Étoiles GitHub
- 5.5k
- Position au classement
- #14775
- Licence
- MIT
- Mis à jour
- 01/11/2026
Commentaires
- …
Autres skills de ce dépôt
build-iterated-agentic-loop
5.5kAide votre agent à transformer une tâche de codage répétée en une compétence de dépôt, plus un flux de travail GitHub Actions planifié qui exécute un agent de codage, avec un fichier de mémoire et une seule demande de fusion ouverte par…
improve-claude-md
5.5kAide votre agent à réécrire un fichier CLAUDE.md avec des blocs conditionnels, pour que les instructions importantes soient suivies lorsqu'elles s'appliquent et que le reste ne gêne pas.
rpi
5.5kAide votre agent à étudier une modification, à travailler sa conception et à la mettre en œuvre en phases claires, avec un document pour chaque étape que vous pouvez relire.
visual-pr
5.5kAide votre agent à rédiger ou mettre à jour une description de demande de fusion qui explique pourquoi une modification existe et comment elle est construite, à l'aide d'un modèle clair et d'un court plan visuel.
Skills similaires
openclaw-update
394kAide votre agent à mettre à jour une passerelle OpenClaw existante, en choisissant la méthode adaptée à son installation et en gardant votre session active.
diagnose-gateway
394kAide votre agent à trouver pourquoi votre passerelle OpenClaw échoue, en vérifiant les paramètres, les canaux et les ports sans rien modifier.
crabbox-apps
394kAide votre agent à ouvrir et exécuter une application sur une machine cloud temporaire, puis à afficher sa vue dans le panneau latéral de votre chat.