build-iterated-agentic-loop
Qué hace
Esta skill enseña a un agente a configurar un trabajo recurrente de agente de programación dentro de un repositorio de GitHub. Crea una skill enfocada, un archivo de flujo de trabajo que se ejecuta según un calendario o a mano, y un archivo de memoria que conserva la retroalimentación permanente.
Cuándo usarla
- ✓Cuando un equipo quiere que una tarea de código repetible, como una limpieza, se ejecute automáticamente según un calendario.
- ✓Cuando un usuario quiere un flujo de trabajo de GitHub Actions que ejecute un agente de programación y abra pull requests.
- ✓Cuando un repositorio necesita un archivo de memoria para que la retroalimentación pase de una ejecución del agente a la siguiente.
Link de la skill
https://github.com/humanlayer/skills/blob/main/plugins/build-iterated-agentic-loop/skills/build-iterated-agentic-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
“Configura un trabajo semanal de GitHub Actions en el que un agente de programación elimine las importaciones no usadas y abra un único pull request.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
El agente lee primero los flujos de trabajo existentes del repositorio y la configuración de paquetes, y luego escribe una skill del repositorio, un flujo de trabajo y un archivo de memoria. Cada flujo de trabajo etiqueta sus pull requests para que solo quede uno abierto por ciclo.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Build Iterated Agentic Loop
Use this skill when the user wants to turn a repeatable agent task into a repo-local skill plus a GitHub Actions workflow that runs a coding agent on a schedule, manually, or both.
The target shape is an iterated agentic loop: a focused skill defines the agent's judgement, a workflow invokes a coding agent with a repo-specific prompt, an agent-memory file carries standing feedback between runs, and each workflow labels its PRs so only one open PR exists per loop. The narrow-react-prop-types skill is the concrete reference pattern.
Outputs
Create or update these files in the target repo:
.claude/skills/<skill-name>/SKILL.mdfor the repo-local agent behavior..github/workflows/agent-<task-name>.ymlfor the recurring coding-agent automation..github/agent-memory/<task-name>.mdfor stable feedback and scope constraints.- Optional references under
.claude/skills/<skill-name>/references/when the skill needs templates, examples, or long supporting material.
Workflow
1. Explore the target repo
Read before asking setup questions:
- Existing
.github/workflows/*.ymland.github/actions/**to understand runner, checkout, dependency install, cache, and PR patterns. - Package manager files such as
package.json,bun.lock,pnpm-lock.yaml,yarn.lock,package-lock.json,pyproject.toml,go.mod, orCargo.toml, or other package management-related files - Existing validation scripts, especially typecheck, lint, test, quality, format, and package-scoped commands.
- Existing
.claude/skillsand.agents/skillsto avoid duplicating conventions.
Completion criterion: you can name the repo's package manager, install command, likely validation commands, and existing workflow conventions.
2. Ask setup questions
Walk the user through these decisions. Recommend defaults from repo evidence instead of presenting a blank form.
- Coding Agent: Claude Code, Codex, OpenCode, or CodeLayer. Explain the required secret and headless command for the recommended choice. Use
references/agent-runner-templates.md. CodeLayer is Humanlayer's ultra-lightweight agent harness. - Cadence: daily, weekly, weekdays, monthly, manual-only, or custom cron. Recommend a cadence based on task risk and review burden - most likely weekdays, daily, or weekly.
- Task: What task should the agent loop accomplish?
- Are there existing skills for doing this? (you can do research before asking the user this)
- Ask the user if you should look at recent PRs, git history, or other particular parts of the codebase for reference.
- Scope: which directories/packages the loop may change and which it may only inspect
- Validation: which commands must pass before the agent commits (You should propose this to the user based on your earlier research and ask them to confirm)
- PR bounding: Ask if scheduled runs should no-op when open PRs from this agent already exist, and if so, how many open PRs to allow before blocking new runs.
- Recommended: Yes, bound to 1 open PR per agent loop. This prevents the agent from creating unbounded work that piles up faster than humans can review. Without bounding, a daily agent could generate 5+ unreviewed PRs in a week, creating review fatigue and merge conflicts.
- The workflow uses a label (e.g.,
agent-<task-slug>) to identify PRs from each agent loop. Scheduled runs checkgh pr list --label <label> --state openand skip if the count meets or exceeds the bound. - Manual
workflow_dispatchruns bypass the bound check, allowing forced runs when needed.
- PR metadata: label name, PR title prefix, and branch prefix.
- Suggest
[MM/DD][Agent: <Agent Name>]: <Concise Description>as a template, e.g.[6/23][Agent: Effect Migrator]: Migrate XYZ module
- Response format: How should the CI agent format its final response (which becomes the PR body)?
- Show the user
references/response-template.mdfor examples (fix/migration, generation, refactor). - Ask what information reviewers need: summary stats, risk levels, verification steps, file lists, etc.
- Create a customized response template that the generated skill will reference in its
references/directory
- Iteration behavior: whether
/iteratecomments should update the existing PR.
- If enabled, install
references/agent-iteration.tsto the repo. Ask the user's preferred location:.github/scripts/,ci-scripts/, orscripts/. - The
Preguntas frecuentes
¿Abrirá muchos pull requests?
No. La skill indica que cada flujo de trabajo etiqueta sus pull requests para que solo quede uno abierto por ciclo.
¿Qué contiene el archivo de memoria?
Retroalimentación estable y límites de alcance que se mantienen entre ejecuciones.
¿Hay un ejemplo que seguir?
Sí. La skill menciona narrow-react-prop-types como patrón de referencia concreto.
Detalles
Descripción original del autor
build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference templates
repo: humanlayer/skills
Popularidad
- Estrellas en GitHub
- 5,5 mil
- Posición en el ranking
- #14774
- Licencia
- MIT
- Actualizada
- 1/11/2026
Comentarios
- …
Más skills de este repositorio
design-control-loop
5,5 milAyuda a tu agente a entrevistarte y diseñar un bucle de control que lleve tu base de código hacia un objetivo mediante cambios pequeños y revisables, y luego lo construye como un flujo de trabajo programado.
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.