شعار Agent Loop Skill

Agent Loop Skill

المجتمع
dososo
agent-loop-skill

Build and run long-running AI agent workflows for Codex, Claude Code, Cursor, and other coding agents with contracts, disk-backed state, role separation, verification traces, restart criteria, subjective scoring, and harness cleanup. Use when a user asks an agent to complete multi-step coding, product, research, content, design, debugging, batch generation, or cross-session tasks that require planning, repeated execution, evidence, or recovery after failures.

نظرة عامة

الناشرdososo
المستودعagent-loop-skill
اسم المهارةagent-loop-skill
النجوم
32
التفريعات
4
الملفات المرفقة
1
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 1

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها dososo على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Agent Loop Skill في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/dososo/agent-loop-skill/tree/main/skills/agent-loop-skill
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dososo/agent-loop-skill.git /tmp/agent-loop-skill
mkdir -p .claude/skills
cp -r /tmp/agent-loop-skill/skills/agent-loop-skill .claude/skills/agent-loop-skill
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Agent Loop Skill في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Agent Loop Skill تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Agent Loop Skill بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Agent Loop Skill

Use this skill to turn an open-ended agent task into a repeatable loop that can run, verify, recover, and finish without relying only on chat context.

Do not use the full loop for trivial one-line answers, simple typo fixes, or single commands with obvious output.

Quick Start

When the task is non-trivial:

  1. Read the user request and local project context.
  2. Create .agent-loop/contract.md.
  3. Create .agent-loop/progress.md.
  4. Create .agent-loop/log.md.
  5. Split work into Planner, Generator, and Evaluator roles.
  6. Execute the smallest verifiable round.
  7. Save evidence in logs, traces, screenshots, command output, or diffs.
  8. Fix, restart, or finish based on the contract.
  9. Remove or justify temporary harness files before delivery.

1. Write The Loop, Not Just The Prompt

Convert the request into a loop before doing the work.

Define:

  • the final deliverable
  • in-scope work
  • out-of-scope work
  • acceptance criteria
  • validation commands or evidence
  • restart criteria
  • stop conditions

If chat messages are repeating without progress, stop and write the loop to disk.

2. Separate Roles

Use three roles by default:

  • Planner: clarify the goal, scope, risks, acceptance criteria, and execution order.
  • Generator: implement, edit, generate, or repair only inside the contract.
  • Evaluator: test, inspect, read traces, and decide whether acceptance criteria pass.

Add a Referee only when the roles disagree. The Referee arbitrates; it does not expand scope.

3. Negotiate The Contract First

Before writing final code or content, write .agent-loop/contract.md.

Use this structure:

text
Goal:
In scope:
Out of scope:
Definition of done:
Acceptance criteria:
Validation commands:
Subjective scoring criteria:
Risk assumptions:
Stop conditions:
Restart conditions:
Final deliverables:

Avoid vague criteria. Each item must be checkable through command output, screenshot, trace, log, diff, checklist, or scorecard.

4. Write To Disk, Not To Context

For long work, maintain these files:

text
.agent-loop/contract.md
.agent-loop/progress.md
.agent-loop/log.md

Use optional files only when useful:

text
.agent-loop/state.json
.agent-loop/scorecard.md
.agent-loop/defects.md
.agent-loop/traces/

If these files cannot describe the state clearly, split the task.

Append to .agent-loop/log.md; do not rewrite history.

5. Let The Loop Restart

Restart from the contract when:

  • the same acceptance item fails twice
  • implementation is turning into patches on patches
  • tests pass but the deliverable misses the user goal
  • the log shows the contract was forgotten
  • continuing is more expensive than a clean retry

Before restarting, append the failure reason and evidence to .agent-loop/log.md.

6. Score The Subjective

For design, writing, UX, product, architecture, or taste-heavy work, write the scoring criteria before judging the result.

Default dimensions:

DimensionQuestion
FunctionalityDoes it solve the real target problem?
SimplicityDoes it avoid unnecessary abstraction and scope?
CraftAre details, naming, flow, and edge cases handled well?
OriginalityDoes it show judgment instead of copying a template?

Score 0-10 and write one sentence of evidence per dimension.

When references exist, compare against at least one strong sample, one weak sample, and the current output.

7. Read The Traces

Judge from evidence, not intuition.

Useful traces include:

  • test output
  • build logs
  • console errors
  • browser screenshots
  • Playwright traces
  • API requests and responses
  • diffs
  • generated artifacts
  • user-visible output

If trace evidence conflicts with intuition, trust the trace and create a smaller reproduction.

8. Delete The Harness

Before delivery, inspect whether the harness still helps.

Review:

  • temporary scripts
  • debug logs
  • redundant state files
  • verification-only code
  • stale traces
  • overgrown automation

Delete, archive, or justify anything that should not remain in the final project.

9. The Bottleneck Always Moves

At the end of each round, update .agent-loop/progress.md:

text
Current bottleneck:
Why this is the bottleneck:
How the next round will verify it is solved:

When coding is solved, planning may become the bottleneck. When planning is solved, verification may become the bottleneck. Keep looking for the current constraint.

Default Completion Standard

Only finish when:

  • every contract item passes
  • every acceptance criterion has evidence
  • .agent-loop/progress.md has no unresolved blocker
  • .agent-loop/log.md explains key decisions and failed attempts
  • subjective work has a scorecard or user approval
  • temporary harness files are removed or justified
  • final deliverables are usable directly

Suggested Trigger

text
Use agent-loop-skill for this task. Write the contract first, keep state in .agent-loop, separate Planner/Generator/Evaluator, verify each round with traces, and restart if the same acceptance item fails twice.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Agent Loop Skill؟

Build and run long-running AI agent workflows for Codex, Claude Code, Cursor, and other coding agents with contracts, disk-backed state, role separation, verification traces, restart criteria, subjective scoring, and harness cleanup. Use when a user asks an agent to complete multi-step coding, product, research, content, design, debugging, batch generation, or cross-session tasks that require planning, repeated execution, evidence, or recovery after failures.

لماذا تستخدم Agent Loop Skill على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Agent Loop Skill عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Agent Loop Skill في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/dososo/agent-loop-skill/tree/main/skills/agent-loop-skill. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Agent Loop Skill؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Agent Loop Skill؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Agent Loop Skill معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Agent Loop Skill مجانية؟

نشرها dososo على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇