build-iterated-agentic-loop
Skill này làm gì
Skill này dạy agent cách thiết lập một công việc lập trình định kỳ trong kho GitHub. Skill tạo một skill tập trung, một file workflow chạy theo lịch hoặc thủ công, và một file bộ nhớ giữ các phản hồi thường trực.
Khi nào nên dùng
- ✓Khi một nhóm muốn một tác vụ mã lặp lại, như dọn dẹp, chạy tự động theo lịch.
- ✓Khi người dùng muốn một workflow GitHub Actions chạy agent lập trình và mở pull request.
- ✓Khi kho mã cần file bộ nhớ để phản hồi được giữ lại giữa các lần chạy agent.
Liên kết skill
https://github.com/humanlayer/skills/blob/main/plugins/build-iterated-agentic-loop/skills/build-iterated-agentic-loop/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Thiết lập một công việc GitHub Actions hằng tuần, trong đó agent lập trình xóa các import không dùng và mở một pull request.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent đọc trước các workflow và cấu hình gói hiện có của repo, rồi viết một skill của repo, một workflow và một file bộ nhớ. Mỗi workflow gắn nhãn cho pull request để chỉ có một PR mở trong mỗi vòng.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có mở nhiều pull request không?
Không. Skill nói mỗi workflow gắn nhãn cho PR để chỉ một PR mở trong mỗi vòng.
File bộ nhớ chứa gì?
Phản hồi ổn định và giới hạn phạm vi được giữ lại giữa các lần chạy.
Có ví dụ nào để làm theo không?
Có. Skill nêu narrow-react-prop-types làm mẫu tham chiếu cụ thể.
Chi tiết
Mô tả gốc của tác giả
build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference templates
repo: humanlayer/skills
Độ phổ biến
- Sao GitHub
- 5.5k
- Vị trí xếp hạng
- #14774
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
design-control-loop
5.5kGiúp agent của bạn phỏng vấn bạn và thiết kế vòng điều khiển đưa codebase tới mục tiêu qua các thay đổi nhỏ, dễ xem xét, rồi xây dựng nó thành workflow theo lịch.
improve-claude-md
5.5kGiúp agent của bạn viết lại file CLAUDE.md với các khối có điều kiện, để các chỉ dẫn quan trọng được tuân theo khi áp dụng, còn phần còn lại không gây cản trở.
rpi
5.5kGiúp agent của bạn nghiên cứu một thay đổi, làm việc qua thiết kế và triển khai theo các giai đoạn rõ ràng, với tài liệu cho từng bước để bạn xem xét.
visual-pr
5.5kGiúp agent của bạn viết hoặc cập nhật mô tả pull request, giải thích vì sao có thay đổi và nó được xây dựng thế nào, theo mẫu rõ ràng và một sơ đồ tóm tắt ngắn.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.