لوگوی اسکیلیکس اسکیلیکس | Skilliks آکادمی و استودیوی ابزارهای AI تاریخ شمسی… --:--:--

Fan-out / Fan-in

آزاد تازه‌وارد تاییدشده امن

دستورالعمل اجرایی آماده برای انجام دقیق کارهای عامل‌های هوش مصنوعی بدون تکرار پرامپت‌های طولانی. (شامل ۱۲ گام عملی · سازگار با Claude Code).

سازگاری با ابزارها: این Skill به مسیر/قابلیت اختصاصی Claude Code وابسته است. مشاهدهٔ جدول سازگاری

مخزن اصلی در گیت‌هاب ↗ مطابق مجوز، دانلود مستقیم فایل غیرفعال است

متن دستورالعمل (SKILL.md)

دسترسی کامل فعال است
---
name: dispatching-parallel-agents
description: Use when 2 or more independent tasks can run concurrently (fan-out), or when results from several workers/agents/sources must be combined (fan-in). Covers dispatch, parallel execution, and the merge contract
---

# Fan-out / Fan-in

Two phases. Most parallel work fails at **fan-in** — merging without a contract
duplicates results, loses work, or silently hides conflicts.

```mermaid
flowchart LR
    O[Decompose] --> F{Independent?}
    F -- no --> S[Same stream, sequential]
    F -- yes --> D[Dispatch ALL workers in one message]
    D --> W1[worker 1 -> schema]
    D --> W2[worker 2 -> schema]
    D --> W3[worker 3 -> schema]
    W1 --> M[Fan-in: validate, dedupe, merge]
    W2 --> M
    W3 --> M
    M --> C{Conflicts or failures?}
    C -- yes --> R[Resolve by rule, or escalate]
    C -- no --> V[One review over the merged result]
```

## Fan-out (dispatch)

- **Independence test**: workers share no files/state AND neither depends on the
  other's outcome. Shared files or ordering → same stream, sequential.
- One worktree per writing stream (`using-git-worktrees`).
- Each brief is self-contained: objective, exact inputs, **output schema**,
  boundaries, budget. Workers can't see each other's work.
- Dispatch **all** independent workers in a single message so they run concurrently.
- Workers stay dumb: no re-planning, no scope growth, no cross-talk; escalate surprises.
- Delegation never expands authorization: the child scope (task, phase,
  actions) must be a subset of the coordinator's. Only the coordinator opens
  phases, closes them, or grants retries
  (`assertDelegationWithin` in `scripts/research/phase.mjs`).

<!-- ‹guest · 2026-11-30› -->
## Fan-in (merge) — the part people skip

- **Validate** every result against its schema; reject empty or malformed results.
- **Dedupe** by key (URL, file, symbol, claim) — never count one finding twice.
- **Merge in dependency order**; last-writer-wins only with an explicit
  source-of-truth rule, never silently.
- **Conflicts**: resolve with a stated rule (primary source / most recent /
  owner) or escalate to the human. Never average or hide a conflict.
- **Partial failure**: retry only with an explicit, narrowly scoped approval
  inside the phase authorization — a failed launch needs it (`planRetry`), and
  an uncertain outcome must be reconciled first. If it still fails, proceed
  with the rest and list the gap explicitly.
- **One final review** over the merged result (whole-branch, or the report).
  Never ship raw per-worker outputs unreviewed.

Reused by `subagent-driven-development` (per-task workers → whole-branch review)
and `deep-research` (parallel `researcher` subagents → single cited report).

این نسخه با نشانه‌گذاری اختصاصی حساب شما نمایش داده می‌شود. برای نصب سریع، به تب نصب و راه‌اندازی بروید.

مهارت‌های مشابه و پیشنهادی

مشاهدهٔ همه ←
عامل‌های هوش مصنوعی
✦ Pro

REA

دستورالعمل اجرایی آماده برای انجام دقیق کارهای عامل‌های هوش مصنوعی بدون تکرار پرامپت‌های طولانی. (شامل ۶۵ گام عملی · سا…

⚡ /reverse-engineer-anything SKILL.md
Claude / Claude CodeOpenAI Codex +۲
۹۴/۱۰۰ ★ ۴۷۹,۷۷۳
عامل‌های هوش مصنوعی
✦ Pro

Dispatching Parallel Agents

این مهارت با نام «Dispatching Parallel Agents» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کاف…

⚡ /dispatching-parallel-agents SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Subagent-Driven Development

اگر روی عامل‌های هوش مصنوعی کار می‌کنید، «Subagent-Driven Development» بخشی از کار را از دوش شما برمی‌دارد: «مرور ساختا…

⚡ /subagent-driven-development SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Using Git Worktrees

این مهارت با نام «Using Git Worktrees» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ کافی است در…

⚡ /using-git-worktrees SKILL.md
Cline
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Verification Before Completion

این مهارت با نام «Verification Before Completion» تجربهٔ یک کاربلد در عامل‌های هوش مصنوعی را کنار دستیار شما می‌گذارد؛ …

⚡ /verification-before-completion SKILL.md
Claude / Claude Code
۹۴/۱۰۰ ★ ۳۲۴,۲۹۰
عامل‌های هوش مصنوعی
✦ Pro

Diagnosing Superpowers

«Diagnosing Superpowers» دستورالعمل دقیقی برای «مدیریت هوشمند حافظه و کانتکست» در اختیار دستیار هوش مصنوعی می‌گذارد تا …

⚡ /diagnosing-superpowers SKILL.md
Claude / Claude Code
۹۱/۱۰۰ ★ ۳۲۴,۲۹۰