Skillpedia
النشر والسحابة (DevOps)5.5k · #14774

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/humanlayer/skills/blob/main/plugins/build-iterated-agentic-loop/skills/build-iterated-agentic-loop/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أعدّ سير عمل GitHub Actions أسبوعياً يزيل فيه وكيل البرمجة الاستيرادات غير المستخدمة، ويفتح طلب سحب واحداً.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يقرأ وكيلك أولاً سير العمل الموجود في المستودع وإعداد الحزم، ثم يكتب مهارة للمستودع وسير عمل وملف ذاكرة. ويضع كل سير عمل وسماً على طلبات السحب، فيبقى طلب واحد مفتوحاً لكل دورة.

المحتوى التقني (ملف 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.md for the repo-local agent behavior.
  • .github/workflows/agent-<task-name>.yml for the recurring coding-agent automation.
  • .github/agent-memory/<task-name>.md for 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/*.yml and .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, or Cargo.toml, or other package management-related files
  • Existing validation scripts, especially typecheck, lint, test, quality, format, and package-scoped commands.
  • Existing .claude/skills and .agents/skills to 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.

  1. 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.
  2. 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.
  3. 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.
  1. Scope: which directories/packages the loop may change and which it may only inspect
  2. 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)
  3. 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 check gh pr list --label <label> --state open and skip if the count meets or exceeds the bound.
  • Manual workflow_dispatch runs bypass the bound check, allowing forced runs when needed.
  1. 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
  1. Response format: How should the CI agent format its final response (which becomes the PR body)?
  • Show the user references/response-template.md for 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
  1. Iteration behavior: whether /iterate comments should update the existing PR.
  • If enabled, install references/agent-iteration.ts to the repo. Ask the user's preferred location: .github/scripts/, ci-scripts/, or scripts/.
  • 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
آخر تحديث
1‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة