build-iterated-agentic-loop
できること
このスキルは、GitHubのリポジトリの中で、定期的なコーディングのエージェントのジョブを設定する方法をエージェントに教えます。集中したスキル、スケジュールまたは手動で実行されるワークフローのファイル、そして継続的なフィードバックを保つメモリファイルを作ります。
使う場面
- ✓クリーンアップなどの繰り返しのコード作業を、スケジュールで自動的に実行したいチームがあるとき。
- ✓コーディングのエージェントを実行してプルリクエストを開く、GitHub Actionsのワークフローがほしいとき。
- ✓実行の間でフィードバックを引き継ぐために、リポジトリにメモリファイルが必要なとき。
スキルのリンク
https://github.com/humanlayer/skills/blob/main/plugins/build-iterated-agentic-loop/skills/build-iterated-agentic-loop/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“毎週、コーディングのエージェントが未使用のインポートを削除して、プルリクエストを一つ開くGitHub Actionsのジョブを設定してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、まずリポジトリの既存のワークフローとパッケージの設定を読み、その後、リポジトリのスキル、ワークフロー、メモリファイルを書きます。各ワークフローはプルリクエストにラベルを付け、ループごとに開いたままになるのを一つだけにします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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
よくある質問
多くのプルリクエストを開きますか?
いいえ。各ワークフローはプルリクエストにラベルを付けるので、ループごとに開いたままなのは一つだけです。
メモリファイルには何が入りますか?
実行をまたいで引き継がれる、安定したフィードバックと範囲の制限です。
手本になる例はありますか?
はい。narrow-react-prop-typesという具体的な参照のパターンを挙げています。
詳細
作者による元の説明
build a repo-local skill and install a matching iterated coding-agent GitHub Actions workflow, prompt, memory file, and reference templates
repo: humanlayer/skills
人気
- GitHubのスター
- 5.5k
- ランキング
- #14774
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
design-control-loop
5.5kエージェントが、あなたに質問して、小さく確認可能な変更を通じてコードベースを目標に近づける制御ループを設計し、合意した設計をスケジュールされたワークフローとして作れるよう支援します。
improve-claude-md
5.5kエージェントが、CLAUDE.mdファイルを、条件付きのブロックで書き直せるよう支援します。重要な指示は該当するときに守られ、それ以外は邪魔にならないようにします。
rpi
5.5kエージェントが、変更について調べ、その設計を検討し、明確な段階に分けて実装する作業を、段階ごとにレビューできる文書とともに進められるよう支援します。
visual-pr
5.5kエージェントが、変更がなぜ存在し、どのように作られているかを、明確なテンプレートと短い視覚的な概要で説明するプルリクエストの説明を書いたり更新したりできるよう支援します。
似ているスキル
openclaw-update
394k既存のOpenClaw Gatewayを更新するようエージェントを支援します。インストール方法に合った更新方法を選び、セッションを動かし続けます。
diagnose-gateway
394k設定、チャンネル、ポートを確認して、OpenClaw Gatewayが失敗している理由を、何も変更せずに突き止めるようエージェントを支援します。
crabbox-apps
394k一時的なクラウドマシン上でアプリを開いて実行し、そのビューをチャットのサイドパネルに表示するようエージェントを支援します。