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 작업을 설정해 주세요. 코딩 에이전트가 사용하지 않는 import를 제거하고 풀 리퀘스트를 하나 열게 해 주세요.”
매주 새 스킬 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에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.