Skillpedia
الوكلاء48k · #5634

review-multi-agent-orchestration

ما الذي تفعله

تراجع هذه المهارة طريقة تنظيم نظام ذكاء اصطناعي يضم عدة وكلاء (مثل مشرف أو سرب أو مخطِّط). تتحقق مما إذا كانت المهام محددة بوضوح، وهل التواصل بين الوكلاء يعمل، وهل يستطيع النظام التعامل مع الأخطاء أو التوقف.

متى تستخدمها

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

رابط المهارة

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/review-multi-agent-orchestration/SKILL.md

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

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

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

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

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

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

“راجع خطة نظام الذكاء الاصطناعي المسؤول عن دعم العملاء. تحقق مما إذا كانت مهام كل وكيل واضحة وهل يستطيعون التواصل بشكل صحيح.”

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

كيف تعمل

تحلل المهارة تصميم النظام كآلة حالات (state machine). تتحقق من أن لكل خطوة مالكًا واضحًا، وأن الانتقال بين الخطوات آمن، وأن النتيجة النهائية يمكن الوصول إليها دون مشكلات.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Review Multi-Agent Orchestration

Overview

Review an orchestration as a distributed state machine, not as a list of agent roles. The goal is to prove that every task has one owner, every state transition has one authority, and every terminal outcome is reachable without duplicate effects, lost work, or unbounded loops.

This skill reviews a design or implementation. Do not launch workers, mutate queues, cancel runs, change production configuration, or deploy fixes unless the user separately requests implementation.

When to Use

  • Reviewing supervisor/worker, planner/executor, debate, swarm, graph, or hierarchical Agent designs.
  • Introducing parallel branches, subagents, MCP tools, durable execution, memory, checkpoints, or human-in-the-loop gates.
  • Diagnosing duplicate work, stale context, deadlocks, livelocks, branch races, runaway retries, or ambiguous ownership.
  • Deciding whether a complex task should be parallel, sequential, delegated, or kept in one agent.

Do not use it for a single independent tool call or a simple pipeline with no concurrency, shared state, retry, or delegation boundary.

Capture the Orchestration Contract

Request or derive:

  • business goal, success criteria, and non-goals;
  • task graph with stable task IDs and dependency edges;
  • agent roles, capabilities, permissions, tools, and sandbox boundaries;
  • state schema, source of truth, ownership, versioning, and persistence;
  • message envelopes and artifact handoff contracts;
  • dispatch, join, retry, timeout, cancellation, compensation, and escalation policies;
  • token, cost, concurrency, wall-clock, and external-effect budgets;
  • terminal states and evidence required to enter them.

Mark each field as declared, inferred, or missing. Never invent framework behavior from role names such as "supervisor" or "validator."

Decide Whether Multi-Agent Execution Is Justified

Multi-agent execution is justified when tasks have independently verifiable outputs and can be isolated by files, artifacts, permissions, or read-only scopes. Keep work sequential when one branch consumes another's evolving output, all workers must edit the same state, or coordination cost exceeds the expected parallel gain.

Score each candidate task:

Dimension Parallel-safe evidence
Dependency Inputs are frozen before dispatch
Ownership One writer owns each artifact or state partition
Verification Output has a local acceptance contract
Context Handoff fits a bounded message or immutable artifact
Side effects Effects are absent, isolated, or idempotent
Failure Failure can be contained without corrupting siblings

If any dimension is unresolved, recommend serialization or an explicit coordination mechanism rather than optimistic concurrency.

Model the State Machine

Represent task state explicitly:

pending -> ready -> leased -> running -> succeeded
                         |        |-> retry_wait -> ready
                         |        |-> needs_human
                         |        |-> failed
                         |        |-> cancelled
                         |-> lease_expired -> ready

For every transition record:

  • authorized actor;
  • compare-and-set precondition or expected state version;
  • persisted fields and artifact references;
  • emitted event and deduplication key;
  • budget consumed;
  • timeout or lease behavior;
  • compensation or recovery path.

Reject designs where workers overwrite the whole shared state object or where "done" is a free-form message rather than a validated transition.

Review Task and State Ownership

Each task needs one active lease owner, a fencing token or monotonically increasing attempt, and a stable idempotency key for external effects. A retry may repeat computation, but it must not repeat a committed effect.

Use one of these state patterns deliberately:

  • Single-writer coordinator: workers return proposals or artifacts; only the coordinator mutates canonical state.
  • Partitioned state: each worker owns a disjoint namespace; a joiner writes the aggregate.
  • Event log with reducers: workers append immutable events; deterministic reducers derive state.

Flag shared checkout edits, last-write-wins JSON blobs, mutable global memory, and unversioned summaries as collision risks.

Review Dispatch and Handoffs

A dispatch envelope should bind:

{
  "run_id": "run-7",
  "task_id": "backend-3",
  "attempt": 2,

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

ماذا تعني «orchestration» في هذا السياق؟

تشبه قائد الأوركسترا الذي يوجّه الفرقة. هنا تعني كيفية إدارة نظام الذكاء الاصطناعي لعدة «وكلاء» (مساعدين صغار) وتنسيقهم للعمل معًا على مهمة أكبر.

لماذا تُعد مراجعة «العقد» مهمة؟

يحدد «العقد» القواعد التي تحكم طريقة عمل الوكلاء معًا، وما يستطيع كل منهم فعله، وكيف يتواصلون، وماذا يحدث إذا وقع خطأ. ومراجعته تضمن أن الجميع يفهم القواعد نفسها ويتبعها.

ما هي «terminal states»؟

هي النتائج النهائية الممكنة لمهمة أو لنظام الذكاء الاصطناعي كله، مثل «النجاح» أو «الفشل» أو «الإلغاء». تضمن المراجعة أن النظام يصل إلى هذه الحالات بموثوقية.

التفاصيل

الوصف الأصلي من المؤلف

Use when a supervisor, swarm, graph, planner-worker system, or parallel agent workflow needs review for task boundaries, shared state, branch joins, retries, cancellation, context handoffs, budgets, deadlocks, or human escalation before implementation or production rollout.

repo: sickn33/agentic-awesome-skills

الشعبية

نجوم GitHub
48k
الترتيب
#5634
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

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

0

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

التعليقات

  • …

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

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