build-iterated-agentic-loop
Was er macht
Dieser skill zeigt einem Agenten, wie er einen wiederkehrenden Coding-Agenten-Job in einem GitHub-Repository einrichtet. Er erstellt einen gezielten skill, eine Workflow-Datei, die nach Zeitplan oder von Hand läuft, und eine Memory-Datei, die dauerhaftes Feedback speichert.
Wann du ihn nutzt
- ✓Wenn ein Team eine wiederholbare Code-Aufgabe, etwa eine Aufräumarbeit, automatisch nach Zeitplan laufen lassen möchte.
- ✓Wenn ich einen GitHub-Actions-Workflow möchte, der einen Coding-Agenten startet und Pull Requests öffnet.
- ✓Wenn ein Repo eine Memory-Datei braucht, damit Feedback zwischen den Agenten-Läufen erhalten bleibt.
Link zum Skill
https://github.com/humanlayer/skills/blob/main/plugins/build-iterated-agentic-loop/skills/build-iterated-agentic-loop/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Richte bitte einen wöchentlichen GitHub-Actions-Job ein, in dem ein Coding-Agent ungenutzte Imports entfernt und einen Pull Request öffnet.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent liest zuerst die vorhandenen Workflows und die Paketeinrichtung des Repos und schreibt dann einen Repo-skill, einen Workflow und eine Memory-Datei. Jeder Workflow kennzeichnet seine Pull Requests, sodass pro Durchlauf nur einer offen bleibt.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Öffnet er viele Pull Requests?
Nein. Der skill sagt, dass jeder Workflow seine Pull Requests kennzeichnet, sodass pro Durchlauf nur einer offen bleibt.
Was enthält die Memory-Datei?
Dauerhaftes Feedback und Grenzen für den Umfang, die zwischen den Läufen erhalten bleiben.
Gibt es ein Beispiel zum Nachmachen?
Ja. Der skill nennt narrow-react-prop-types als konkretes Referenzmuster.
Details
Originalbeschreibung des Autors
build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference templates
repo: humanlayer/skills
Beliebtheit
- GitHub-Sterne
- 5.5k
- Platz im Ranking
- #14774
- Lizenz
- MIT
- Aktualisiert
- 1.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
design-control-loop
5.5kHilft deinem Agenten, eine Kontrollschleife zu entwerfen, die deine Codebasis in kleinen, prüfbaren Schritten zu einem Ziel führt, und sie als Workflow zu bauen.
improve-claude-md
5.5kHilft deinem Agenten, eine CLAUDE.md-Datei mit bedingten Blöcken neu zu schreiben, damit wichtige Anweisungen dort befolgt werden, wo sie gelten, und der Rest nicht stört.
rpi
5.5kHilft deinem Agenten, eine Änderung zu untersuchen, ihren Entwurf durchzuarbeiten und sie in klaren Phasen umzusetzen, mit einem prüfbaren Dokument für jeden Schritt.
visual-pr
5.5kHilft deinem Agenten, eine Pull-Request-Beschreibung zu schreiben, die erklärt, warum sich etwas ändert und wie es umgesetzt ist, mit Vorlage und kurzer Übersicht.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.