design-control-loop
Qué hace
Esta skill enseña a un agente a diseñar un bucle automatizado que sigue mejorando una base de código en pasos pequeños. Primero hace preguntas, propone opciones que encajan con el repositorio y luego construye el diseño que acuerdes.
Cuándo usarla
- ✓Cuando un equipo quiere que una propiedad de la base de código, como un patrón antiguo, avance hacia un objetivo mediante cambios pequeños a lo largo del tiempo.
- ✓Cuando un usuario quiere que un agente programado haga cambios de bajo riesgo que una persona revise.
- ✓Cuando un usuario no sabe cómo automatizar un trabajo repetido sobre el código y quiere primero un diseño.
Link de la skill
https://github.com/humanlayer/skills/blob/main/plugins/design-control-loop/skills/design-control-loop/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Quiero que nuestra base de código deje poco a poco sus antiguas llamadas a la API. Ayúdame a diseñar un bucle automatizado para ello que revise una persona.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente te entrevista sobre el objetivo y los riesgos, revisa las herramientas del repositorio y propone un diseño con un modelo de sensor, controlador y actuador. Cuando lo apruebes, construye las partes locales y un flujo de trabajo programado.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de 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
Preguntas frecuentes
¿Qué es el sensor en este diseño?
Es la parte que mide cuánto se aleja la base de código del objetivo.
¿Aplica cambios sin revisión?
No. La skill mantiene a una persona en el bucle para dirigirlo, y los cambios llegan como pull requests revisables.
¿Asume un conjunto de herramientas fijo?
No. La skill indica que el diseño debe encajar con la base de código del usuario y con las herramientas que ya usa.
Detalles
Descripción original del autor
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
Popularidad
- Estrellas en GitHub
- 5,5 mil
- Posición en el ranking
- #14775
- Licencia
- MIT
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
build-iterated-agentic-loop
5,5 milAyuda a tu agente a convertir una tarea de programación repetida en una skill del repositorio y un flujo de trabajo programado de GitHub Actions que ejecuta un agente de programación, con un archivo de memoria y un solo PR abierto por…
improve-claude-md
5,5 milAyuda a tu agente a reescribir un archivo CLAUDE.md con bloques condicionales, para que las instrucciones importantes se sigan cuando corresponden y el resto no estorbe.
rpi
5,5 milAyuda a tu agente a investigar un cambio, estudiar su diseño y aplicarlo en fases claras, con un documento para cada paso que puedas revisar.
visual-pr
5,5 milAyuda a tu agente a escribir o actualizar la descripción de un pull request que explica por qué existe un cambio y cómo está construido, con una plantilla clara y un breve esquema visual.
Skills parecidas
openclaw-update
394 milAyuda a tu agente a actualizar una Gateway de OpenClaw que ya existe, eligiendo el método de actualización que encaja con cómo se instaló y manteniendo tu sesión activa.
diagnose-gateway
394 milAyuda a tu agente a averiguar por qué falla tu Gateway de OpenClaw, revisando ajustes, canales y puertos sin cambiar nada.
crabbox-apps
394 milAyuda a tu agente a abrir y ejecutar una app en una máquina temporal en la nube y mostrar su vista en el panel lateral de tu chat.