build-iterated-agentic-loop
यह क्या करती है
यह स्किल एजेंट को GitHub रिपॉज़िटरी के भीतर बार-बार चलने वाला कोडिंग-एजेंट जॉब सेट अप करना सिखाती है। यह एक केंद्रित स्किल, एक वर्कफ़्लो फ़ाइल जो शेड्यूल या हाथ से चलती है, और एक मेमोरी फ़ाइल बनाती है जो स्थायी फ़ीडबैक रखती है।
कब इस्तेमाल करें
- ✓जब टीम चाहती है कि सफ़ाई जैसा दोहराने योग्य कोड काम शेड्यूल पर अपने-आप चले।
- ✓जब उपयोगकर्ता ऐसा GitHub Actions वर्कफ़्लो चाहता है जो कोडिंग एजेंट चलाए और पुल रिक्वेस्ट खोले।
- ✓जब रिपो को ऐसी मेमोरी फ़ाइल चाहिए ताकि एजेंट रनों के बीच फ़ीडबैक साथ रखे।
Skill का लिंक
https://github.com/humanlayer/skills/blob/main/plugins/build-iterated-agentic-loop/skills/build-iterated-agentic-loop/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“एक साप्ताहिक GitHub Actions जॉब सेट कीजिए, जहाँ कोडिंग एजेंट बिना इस्तेमाल वाले imports हटाए और एक पुल रिक्वेस्ट खोले।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पहले रिपो के मौजूदा वर्कफ़्लो और पैकेज सेटअप पढ़ता है, फिर एक रिपो स्किल, एक वर्कफ़्लो और एक मेमोरी फ़ाइल लिखता है। हर वर्कफ़्लो अपनी पुल रिक्वेस्ट पर लेबल लगाता है, ताकि हर लूप में केवल एक PR खुला रहे।
तकनीकी सामग्री (मूल 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
अक्सर पूछे जाने वाले सवाल
क्या यह बहुत सारे पुल रिक्वेस्ट खोलेगी?
नहीं। स्किल कहती है कि हर वर्कफ़्लो अपनी पुल रिक्वेस्ट पर लेबल लगाता है, ताकि हर लूप में केवल एक PR खुला रहे।
मेमोरी फ़ाइल में क्या रहता है?
स्थायी फ़ीडबैक और दायरे की सीमाएँ, जो रनों के बीच साथ चलती हैं।
क्या कोई उदाहरण है जिसका पालन करूँ?
हाँ। स्किल 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
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
design-control-loop
5.5kआपके एजेंट को आपसे सवाल पूछकर एक कंट्रोल लूप डिज़ाइन करने देती है, जो छोटे, समीक्षा योग्य बदलावों से कोडबेस को एक लक्ष्य की ओर ले जाए, फिर उसे शेड्यूल्ड वर्कफ़्लो के रूप में बनाती है।
improve-claude-md
5.5kआपके एजेंट को शर्तीय ब्लॉक के साथ CLAUDE.md फ़ाइल दोबारा लिखने देती है, ताकि ज़रूरी निर्देश तब माने जाएँ जब वे लागू हों, और बाकी रास्ते से हटे रहें।
rpi
5.5kआपके एजेंट को किसी बदलाव पर शोध करने, उसका डिज़ाइन सोचने और उसे साफ़ चरणों में लागू करने देती है, हर चरण के लिए समीक्षा योग्य दस्तावेज़ के साथ।
visual-pr
5.5kआपके एजेंट को पुल रिक्वेस्ट का विवरण लिखने या अपडेट करने देती है, जो बताए कि बदलाव क्यों है और वह कैसे बना है, एक साफ़ टेम्पलेट और छोटी दृश्य रूपरेखा के साथ।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।