build-iterated-agentic-loop
Ce qu’il fait
Cette compétence apprend à un agent à mettre en place une tâche d'agent de codage récurrente dans un dépôt GitHub. Elle crée une compétence ciblée, un fichier de flux de travail qui s'exécute selon un calendrier ou à la main, et un fichier de mémoire qui conserve les retours permanents.
Quand l’utiliser
- ✓Quand une équipe veut qu'une tâche de code répétable, comme un nettoyage, s'exécute automatiquement selon un calendrier.
- ✓Quand un utilisateur veut un flux de travail GitHub Actions qui exécute un agent de codage et ouvre des demandes de fusion.
- ✓Quand un dépôt a besoin d'un fichier de mémoire pour que les retours soient conservés d'une exécution d'agent à l'autre.
Lien du skill
https://github.com/humanlayer/skills/blob/main/plugins/build-iterated-agentic-loop/skills/build-iterated-agentic-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
“Mets en place une tâche GitHub Actions hebdomadaire où un agent de codage supprime les imports inutilisés et ouvre une seule demande de fusion.”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent lit d'abord les flux de travail existants du dépôt et sa configuration de paquets, puis écrit une compétence de dépôt, un flux de travail et un fichier de mémoire. Chaque flux de travail étiquette ses demandes de fusion pour qu'une seule reste ouverte par boucle.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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
Questions fréquentes
Ouvrira-t-elle de nombreuses demandes de fusion ?
Non. La compétence indique que chaque flux de travail étiquette ses demandes de fusion afin qu'une seule reste ouverte par boucle.
Que contient le fichier de mémoire ?
Des retours stables et des limites de périmètre qui sont conservés d'une exécution à l'autre.
Existe-t-il un exemple à suivre ?
Oui. La compétence cite narrow-react-prop-types comme schéma de référence concret.
Détails
Description originale de l’auteur
build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference templates
repo: humanlayer/skills
Popularité
- Étoiles GitHub
- 5.5k
- Position au classement
- #14774
- Licence
- MIT
- Mis à jour
- 01/11/2026
Commentaires
- …
Autres skills de ce dépôt
design-control-loop
5.5kAide votre agent à vous interroger puis à concevoir une boucle de contrôle qui fait évoluer votre base de code vers un objectif par de petites modifications faciles à relire, puis à la construire comme un flux de travail planifié.
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.