build-iterated-agentic-loop
Fungsinya
Skill ini mengajari agent cara menyiapkan pekerjaan agent coding yang berulang di dalam repositori GitHub. Skill ini membuat skill yang fokus, file alur kerja yang berjalan terjadwal atau manual, dan file memori yang menyimpan masukan tetap.
Kapan dipakai
- ✓Saat tim ingin tugas kode yang bisa diulang, seperti pembersihan, berjalan otomatis sesuai jadwal.
- ✓Saat pengguna ingin alur kerja GitHub Actions yang menjalankan agent coding dan membuka pull request.
- ✓Saat repo memerlukan file memori agar masukan terbawa antar-proses agent.
Link skill
https://github.com/humanlayer/skills/blob/main/plugins/build-iterated-agentic-loop/skills/build-iterated-agentic-loop/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Siapkan pekerjaan GitHub Actions mingguan di mana agent coding menghapus impor yang tidak terpakai dan membuka satu pull request.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent pertama-tama membaca alur kerja dan pengaturan paket yang sudah ada di repo, lalu menulis skill repo, alur kerja, dan file memori. Setiap alur kerja memberi label pada pull request-nya sehingga hanya satu yang tetap terbuka per putaran.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah akan membuka banyak pull request?
Tidak. Skill ini menyebutkan setiap alur kerja memberi label pada pull request-nya sehingga hanya satu yang tetap terbuka per putaran.
Apa isi file memori?
Masukan yang stabil dan batasan lingkup yang terbawa antar-proses.
Apakah ada contoh untuk diikuti?
Ada. Skill ini menyebutkan narrow-react-prop-types sebagai pola referensi konkret.
Detail
Deskripsi asli dari pembuat
build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference templates
repo: humanlayer/skills
Popularitas
- Bintang GitHub
- 5.5k
- Peringkat
- #14774
- Lisensi
- MIT
- Diperbarui
- 1/11/2026
Komentar
- …
Skill lain dari repositori ini
design-control-loop
5.5kMembantu agent Anda merancang loop otomatis yang menggerakkan codebase menuju tujuan lewat perubahan kecil yang bisa ditinjau, lalu membangunnya terjadwal.
improve-claude-md
5.5kMembantu agent Anda menulis ulang file CLAUDE.md dengan blok bersyarat, sehingga instruksi penting diikuti saat berlaku dan sisanya tidak mengganggu.
rpi
5.5kMembantu agent Anda meneliti perubahan, membahas desainnya, lalu mengimplementasikannya dalam fase yang jelas, dengan dokumen untuk tiap langkah.
visual-pr
5.5kMembantu agent Anda menulis atau memperbarui deskripsi pull request yang menjelaskan alasan perubahan dan cara pembuatannya, dengan templat dan ringkasan visual.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.