build-iterated-agentic-loop
O que ela faz
Esta skill ensina um agente a configurar um trabalho recorrente de agente de código dentro de um repositório GitHub. Cria uma skill focada, um arquivo de fluxo que roda em agenda ou manualmente, e um arquivo de memória que guarda feedbacks permanentes.
Quando usar
- ✓Quando uma equipe quer que uma tarefa de código repetível, como uma limpeza, rode automaticamente em agenda.
- ✓Quando um usuário quer um fluxo do GitHub Actions que rode um agente de código e abra pull requests.
- ✓Quando um repositório precisa de um arquivo de memória para que o feedback passe de uma execução do agente para a seguinte.
Link da skill
https://github.com/humanlayer/skills/blob/main/plugins/build-iterated-agentic-loop/skills/build-iterated-agentic-loop/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Configure um trabalho semanal no GitHub Actions em que um agente de código remova importações não usadas e abra um único pull request.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente lê primeiro os fluxos de trabalho e a configuração de pacotes existentes do repositório, depois escreve uma skill do repositório, um fluxo e um arquivo de memória. Cada fluxo rotula seus pull requests para que apenas um fique aberto por ciclo.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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
Perguntas frequentes
Ele vai abrir muitos pull requests?
Não. A skill afirma que cada fluxo rotula seus pull requests, de modo que apenas um fique aberto por ciclo.
O que o arquivo de memória guarda?
Feedback estável e limites de escopo que são mantidos entre as execuções.
Existe um exemplo a seguir?
Sim. A skill cita o narrow-react-prop-types como um padrão de referência concreto.
Detalhes
Descrição original do 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
Popularidade
- Estrelas no GitHub
- 5,5 mil
- Posição no ranking
- #14774
- Licença
- MIT
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
design-control-loop
5,5 milAjuda seu agente a desenhar, em conversa com você, um ciclo de controle que leva a base de código a uma meta com mudanças pequenas e revisáveis.
improve-claude-md
5,5 milAjuda seu agente a reescrever um arquivo CLAUDE.md com blocos condicionais, para que instruções importantes sejam seguidas quando se aplicam e o restante não atrapalhe.
rpi
5,5 milAjuda seu agente a pesquisar uma mudança, discutir seu desenho e implementá-la em fases claras, com um documento para cada etapa que você pode revisar.
visual-pr
5,5 milAjuda seu agente a escrever ou atualizar a descrição de um pull request que explica o motivo da mudança e sua construção, com modelo claro e um breve esboço visual.
Skills parecidas
openclaw-update
394 milAjuda seu agente a atualizar um OpenClaw Gateway existente, escolhendo o método que combina com a instalação e mantendo sua sessão funcionando.
diagnose-gateway
394 milAjuda seu agente a descobrir por que seu OpenClaw Gateway está falhando, verificando configurações, canais e portas sem alterar nada.
crabbox-apps
394 milAjuda seu agente a abrir e executar um app em uma máquina temporária na nuvem e depois mostrar a visualização dele no painel lateral do seu chat.