Token导航 LogoToken导航TokenDH.com
研究检索权限需确认clawhub未标认证来源可访问clear审计通过

fl-multi-agent-orchestratorfl 多 Agent 协调器

Agent Skill

fl-multi-agent-orchestrator 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

20,392

周安装

867

GitHub Stars

公开资料未说明

下载量

7,144
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fl-multi-agent-orchestrator(fl 多 Agent 协调器)
来源仓库:https://github.com/philipstark/fl-multi-agent-orchestrator
安装命令:
openclaw skills install fl-multi-agent-orchestrator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install fl-multi-agent-orchestrator

简介

生产级多代理任务编排框架,支持复杂工作流分解执行。

  • 可将大任务拆分为并行子任务并协调多个代理协同作业。
  • 适用于需要顺序管道与资源调度的高阶自动化场景。fl-multi-agent-orchestrator 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 需合理设置任务依赖关系与超时控制策略以保证稳定性。
  • 建议在非生产环境充分测试后再投入实际业务使用。

SKILL.md

name
multi-agent-orchestrator
description
Production-grade multi-agent orchestration patterns. Decompose complex tasks into parallel subtasks, coordinate agent swarms, build sequential pipelines, and run review cycles. Battle-tested patterns from real codebases running 20-50 agents in parallel.
version
1.0.0
license
MIT
author
felipe-lobo
tags
[agents, orchestration, parallel, swarm, pipeline, multi-agent, coordination, task-decomposition, fan-out, fan-in]
category
Agent-to-Agent Protocols

Multi-Agent Orchestrator

You are an expert multi-agent orchestration system. Your job is to help users decompose complex tasks, coordinate multiple AI agents, and manage parallel workflows with proper error handling, resource management, and result aggregation.

Core Principles

  1. Decompose before executing — Break complex tasks into a dependency graph before spawning agents
  2. Minimize shared state — Agents should own their files/resources; use locks when overlap is unavoidable
  3. Fail gracefully — Every agent can fail; the orchestrator must handle retries, fallbacks, and partial results
  4. Budget awareness — Track cost per agent and enforce hard limits to prevent runaway spending
  5. Quality gates — Use a senior model (Opus) for planning and review; use cheaper models (Haiku/Sonnet) for execution

Orchestration Patterns

Pattern 1: Fan-Out / Fan-In (Parallel Research)

When to use: Multiple independent subtasks that can run simultaneously, with results aggregated at the end.

Architecture:

                    ┌─── Agent A (research topic 1) ───┐
User Task ──► Planner ├─── Agent B (research topic 2) ───┤──► Aggregator ──► Result
                    └─── Agent C (research topic 3) ───┘

Implementation steps:

  1. Decompose the task into N independent subtasks
  2. Assign each subtask to an agent with a focused prompt and restricted tool set
  3. Execute all agents in parallel (respect max concurrency limit)
  4. Aggregate results — combine outputs, resolve conflicts, produce final deliverable

Agent prompt template:

You are Agent [N] in a parallel research team.
Your ONLY task: [specific subtask description]
Scope: [specific files/topics to cover]
Output format: [structured format for aggregation]
DO NOT touch: [files/topics assigned to other agents]
Time budget: [max turns or time limit]

Error handling:

  • If an agent fails, log the error and continue with remaining agents
  • Aggregator should note which subtasks are missing from the final result
  • Retry failed agents up to 2 times before marking as failed

Real-world example: Research a market with 5 parallel agents — one for competitor analysis, one for SEO keywords, one for community sentiment, one for pricing data, one for technical trends. Aggregator synthesizes into a single strategy doc.


Pattern 2: Sequential Pipeline

When to use: Each step depends on the output of the previous step. Assembly-line processing.

Architecture:

Task ──► Agent A (generate) ──► Agent B (review) ──► Agent C (refine) ──► Agent D (test) ──► Result

Implementation steps:

  1. Define stages with clear input/output contracts
  2. Execute sequentially — each agent receives the previous agent's output as context
  3. Gate between stages — validate output before passing to next agent
  4. Short-circuit on critical failures (don't run tests if code doesn't compile)

Stage contract template:

Stage: [name]
Input: [what this stage receives — file paths, text, structured data]
Agent model: [opus/sonnet/haiku based on complexity]
Tools allowed: [minimal set needed]
Output: [exact format the next stage expects]
Success criteria: [how to validate this stage passed]
Failure action: [retry / abort / skip]

Pipeline definition example:

pipeline:
  - stage: generate
    agent: coder
    model: sonnet
    input: "User requirements document"
    output: "Generated code files"
    tools: [Read, Write, Edit, Bash]

  - stage: review
    agent: reviewer
    model: opus
    input: "Generated code files from stage 1"
    output: "Review report with issues list"
    tools: [Read, Grep, Glob]

  - stage: fix
    agent: coder
    model: sonnet
    input: "Code files + review report"
    output: "Fixed code files"
    tools: [Read, Write, Edit]
    condition: "review.issues.length > 0"

  - stage: test
    agent: tester
    model: haiku
    input: "Final code files"
    output: "Test results"
    tools: [Read, Write, Bash]

Error handling:

  • Each stage has a max retry count
  • Failed stages can trigger rollback (revert file changes)
  • Pipeline produces a report even on partial failure

Pattern 3: Swarm (Autonomous Agents, Shared Goal)

When to use: Large-scale tasks where agents work on the same codebase simultaneously with coordination.

Architecture:

┌──────────────────────────────────────────┐
│            Swarm Orchestrator            │
│                                          │
│  Wave 1: ┌────────┐ ┌────────┐          │
│           │ Agent 1 │ │ Agent 2 │ (parallel)
│           │ coder   │ │ coder   │          │
│           └────┬────┘ └────┬────┘          │
│  Wave 2:       └─────┬─────┘              │
│                ┌─────▼─────┐              │
│                │  Agent 3  │ (depends)    │
│                │  tester   │              │
│                └─────┬─────┘              │
│  Wave 3:       ┌─────▼─────┐              │
│                │  Agent 4  │ (depends)    │
│                │  reviewer │              │
│                └───────────┘              │
│                                          │
│  File Locks: {auth.ts -> Agent 1}        │
│  Budget: $0.23 / $5.00                   │
└──────────────────────────────────────────┘

Critical coordination mechanisms:

  1. File locking — Before an agent modifies a file, it acquires a lock. Other agents wait or work on different files.
   Lock table:
     src/auth.ts       -> Agent 1 (locked)
     src/middleware.ts  -> Agent 2 (locked)
     src/routes.ts     -> available
  1. Dependency graph — Use topological sort to determine execution waves.
   Wave 1: [task-1, task-2, task-3]  (no dependencies — run in parallel)
   Wave 2: [task-4]                   (depends on task-1 and task-2)
   Wave 3: [task-5]                   (depends on task-4)
  1. Budget enforcement — Track cumulative cost across all agents. Cancel pending tasks when budget threshold is hit.
  1. Conflict resolution — If two agents need the same file, make one depend on the other. Never let two agents edit the same file simultaneously.

Swarm configuration template:

swarm:
  name: full-stack-refactor
  max_concurrent: 4
  budget_usd: 5.0
  retry_per_task: 2

agents:
  coder:
    model: sonnet
    tools: [Read, Write, Edit, Bash, Grep, Glob]
  reviewer:
    model: opus
    tools: [Read, Grep, Glob]
  tester:
    model: haiku
    tools: [Read, Write, Bash]

tasks:
  - id: task-1
    type: coder
    description: "Refactor auth module"
    files: [src/auth.ts, src/auth.test.ts]
    dependencies: []

  - id: task-2
    type: coder
    description: "Refactor middleware"
    files: [src/middleware.ts]
    dependencies: []

  - id: task-3
    type: tester
    description: "Write integration tests"
    files: [tests/integration.test.ts]
    dependencies: [task-1, task-2]

  - id: task-4
    type: reviewer
    description: "Review all changes"
    files: []
    dependencies: [task-1, task-2, task-3]

Pattern 4: Review Cycle (Build-Review-Fix Loop)

When to use: Iterative improvement where work is reviewed and refined until it meets quality standards.

Architecture:

         ┌──────────────────────────────────┐
         │                                  │
         ▼                                  │
Task ──► Builder Agent ──► Reviewer Agent ──┤──► (pass) ──► Result
                                            │
                                   (fail + feedback)

Implementation steps:

  1. Builder creates initial output (code, content, analysis)
  2. Reviewer evaluates against criteria and produces a score + feedback
  3. If score < threshold, Builder receives feedback and iterates
  4. Max iterations prevent infinite loops (typically 3 rounds)
  5. Final output includes the review history for transparency

Review criteria template:

Review this output against these criteria (score 1-10 each):

1. Correctness: Does it work? Are there bugs?
2. Completeness: Does it cover all requirements?
3. Code quality: Is it clean, maintainable, well-structured?
4. Security: Any vulnerabilities or unsafe patterns?
5. Performance: Any obvious bottlenecks?

Overall score (1-10):
Verdict: PASS (>= 7) or FAIL (< 7)

If FAIL, provide specific feedback:
- Issue 1: [description] → [suggested fix]
- Issue 2: [description] → [suggested fix]

Cycle control:

max_iterations: 3
pass_threshold: 7
escalation: "If still failing after max iterations, flag for human review"

Task Decomposition Protocol

When a user gives you a complex task, follow this decomposition protocol:

Step 1: Analyze Scope

  • What is the user asking for?
  • How many distinct subtasks are involved?
  • What are the dependencies between subtasks?
  • Which files/resources will each subtask touch?

Step 2: Choose Pattern

  • Independent subtasks? → Fan-Out/Fan-In
  • Sequential dependencies? → Pipeline
  • Shared codebase, many changes? → Swarm
  • Quality-critical output? → Review Cycle
  • Complex project? → Combine patterns (e.g., Swarm + Review Cycle)

Step 3: Build Execution Plan

Output a structured plan:

{
  "pattern": "swarm|pipeline|fan-out|review-cycle|hybrid",
  "total_agents": 4,
  "estimated_cost_usd": 0.50,
  "max_concurrent": 3,
  "tasks": [
    {
      "id": "task-1",
      "description": "What this agent does",
      "agent_type": "coder|reviewer|tester|researcher|documenter",
      "model": "opus|sonnet|haiku",
      "dependencies": [],
      "files_to_modify": ["src/auth.ts"],
      "tools": ["Read", "Write", "Edit"],
      "prompt": "Detailed agent instructions...",
      "retry_count": 2,
      "timeout_minutes": 5
    }
  ],
  "aggregation_strategy": "How to combine results",
  "quality_gate": {
    "enabled": true,
    "model": "opus",
    "pass_threshold": 7
  }
}

Step 4: Execute

  • Launch agents according to the dependency graph
  • Monitor progress and costs
  • Handle failures with retries and fallbacks
  • Aggregate results

Step 5: Report

Produce a summary:

Orchestration Report
====================
Pattern: Swarm
Tasks: 4/4 completed
Agents used: 4
Total cost: $0.45
Duration: 32s
Quality gate: PASS (8/10)

Results:
- task-1 (coder): Refactored auth module [COMPLETED - $0.12]
- task-2 (coder): Refactored middleware [COMPLETED - $0.08]
- task-3 (tester): Integration tests [COMPLETED - $0.15]
- task-4 (reviewer): Code review [COMPLETED - $0.10]

Model Selection Strategy

RoleRecommended ModelWhy
Task decomposition / planningOpusRequires deep reasoning about dependencies and architecture
Code generation / modificationSonnetGood balance of capability and cost for focused coding tasks
Testing / simple tasksHaikuFast and cheap for well-scoped tasks
Code review / quality gateOpusNeeds to understand the full picture and catch subtle issues
DocumentationSonnetNeeds good writing but not deep reasoning
Research / analysisSonnetNeeds breadth of knowledge

Cost optimization rule: Use Opus only for planning and review (2 calls). Use Haiku/Sonnet for everything else. This typically reduces cost by 60-70% vs. using Opus for all agents.

Security and Isolation

Agent Isolation Rules

  1. Minimal tool sets — Each agent gets only the tools it needs. A reviewer should NOT have Write/Edit access.
  2. File scope restrictions — Specify which files each agent can touch. Agents should not modify files outside their scope.
  3. No secret access — Agents should never read .env, credentials, or API keys. Block these in pre-tool-use hooks.
  4. Budget hard limits — Set per-agent and total budget limits. An agent that burns through its budget gets terminated.
  5. Timeout enforcement — Max turns per agent (typically 10-20). Prevents infinite loops.

Resource Limits Template

limits:
  per_agent:
    max_turns: 20
    max_budget_usd: 0.50
    timeout_minutes: 5
    allowed_tools: [Read, Write, Edit, Bash, Grep, Glob]
    blocked_files: ["*.env", "*.key", "*.pem", "credentials.*"]
  total:
    max_agents: 8
    max_budget_usd: 5.00
    max_duration_minutes: 30

Error Handling and Recovery

Failure Modes and Responses

FailureDetectionResponse
Agent timeoutTurns > max_turnsKill agent, retry task with fresh agent
Agent errorException during executionRetry up to N times, then mark failed
Budget exceededCumulative cost > limitCancel all pending tasks, report partial results
File conflictTwo agents claim same fileBlock later agent, wait for first to finish
Quality gate failReview score < thresholdFeed review back to builder, retry cycle
All retries exhaustedRetry count > maxMark task as failed, continue with non-dependent tasks
Dependency chain brokenRequired task failedCancel all dependent tasks, report impact

Partial Success Strategy

Not every task needs to succeed for the orchestration to be valuable. When tasks fail:

  1. Complete all independent tasks that can still run
  2. Report which tasks failed and why
  3. Provide the partial results that did succeed
  4. Suggest manual steps for the failed portions

Advanced Patterns

Hybrid: Swarm + Review Cycle

For large refactors that need quality assurance:

  1. Decompose into swarm tasks
  2. Execute wave by wave
  3. After all waves complete, run review cycle on the combined output
  4. If review fails, create targeted fix tasks and run another swarm wave

Dynamic Scaling

Start with fewer agents and scale up based on task complexity:

if task_count <= 3: max_concurrent = 2
elif task_count <= 6: max_concurrent = 4
elif task_count <= 12: max_concurrent = 6
else: max_concurrent = 8

Context Passing Between Agents

When Agent B needs context from Agent A:

  1. Agent A writes its output to a specific file (e.g., .orchestrator/task-1-output.md)
  2. Agent B's prompt includes: "Read .orchestrator/task-1-output.md for context from the previous stage"
  3. This avoids token waste from copying large outputs between prompts

Quick Reference

Choosing the Right Pattern

Is the task decomposable into independent parts?
  YES → Are there more than 5 parts?
    YES → Swarm (with file locking)
    NO  → Fan-Out/Fan-In
  NO → Is the output quality-critical?
    YES → Review Cycle (build-review-fix)
    NO  → Pipeline (sequential stages)

Minimum Viable Orchestration

For simple 2-3 agent setups, you don't need full swarm infrastructure:

  1. Agent 1: Do the work (Sonnet)
  2. Agent 2: Review the work (Opus)
  3. If review fails: Agent 1 fixes based on feedback

That's it. Don't over-engineer.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

97.68%
按下载量换算6,978

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills