seb1n/awesome-ai-agent-skills

multi-agent-orchestration

Design and operate bounded multi-agent workflows with task decomposition, dependency graphs, ownership, handoff contracts, shared-state controls, approvals, recovery, and synthesis.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/seb1n/awesome-ai-agent-skills --skill multi-agent-orchestration

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

Multi-Agent Orchestration

Use multiple agents only when specialization or safe parallelism outweighs coordination cost.

Use when

  • Split a large objective into independent, verifiable workstreams.
  • Coordinate specialists that need distinct tools, permissions, or context.
  • Run worker-reviewer, planner-executor, map-reduce, or bounded debate patterns.
  • Diagnose duplicate work, conflicting edits, weak handoffs, or stalled dependencies.

Do not delegate a tightly coupled, small, or inherently sequential task merely to increase agent count.

Inputs

Collect the objective, completion criteria, task graph, available agents and tools, concurrency limits, shared files or systems, authority boundaries, deadlines, budget, and final decision owner. State assumptions and unresolved dependencies.

Output contract

Produce:

  1. A decomposition rationale and explicit non-goals.
  2. A directed acyclic task graph with owner, dependencies, inputs, output contract, write scope, and verification for every task.
  3. A handoff protocol and shared-state policy.
  4. Approval points, timeout and retry limits, escalation routes, and stop conditions.
  5. A synthesis plan that resolves disagreements and verifies the integrated result.
  6. A completion report with evidence, remaining uncertainty, and unused or failed branches.

Workflow

  1. Define one measurable objective and the authority boundary before assigning work.
  2. Decompose by separable outputs, not vague roles. Keep shared mutable state to a minimum and retain tightly coupled steps under one owner.
  3. Draw dependencies and identify the critical path. Parallelize only tasks with independent inputs and non-overlapping side effects. Read orchestration-patterns.md when choosing a topology.
  4. Assign one accountable owner per task. Specify inputs, deliverable format, write scope, validation, deadline or timeout, and what warrants escalation.
  5. Give each agent the minimum context and permissions needed. Include source artifacts, not hidden conclusions, when independent judgment matters.
  6. Require structured handoffs: status, result, evidence, changed state, assumptions, risks, and next dependency. Acknowledge receipt before downstream mutation.
  7. Monitor dependency state and useful progress. Bound retries and debates; do not recursively delegate without a clear capacity and ownership model.
  8. Synthesize centrally or through a named integrator. Resolve conflicting claims from primary evidence, run integration checks, and confirm the original completion criteria.
  9. Close or cancel unused work, record unresolved risks, and return control to the final decision owner.

Use python3 scripts/validate_plan.py plan.json --strict before execution. The command structurally checks dependencies, cycles, ownership, approval references, and numeric execution bounds. Strict mode also fails on warnings, including exact parallel write conflicts, missing timeout/retry bounds, and incomplete retry contracts. It validates declarations only; it cannot verify runtime isolation, authorization, approval authenticity, or actual task behavior.

Safety and permissions

  • Delegation never expands authority. Do not let a child agent perform an action the requester did not authorize.
  • Reserve external messages, purchases, deployments, destructive actions, credential access, and production changes for explicit approval points.
  • Isolate credentials and sensitive context by role; do not broadcast secrets through shared state or handoffs.
  • Use single-writer ownership, branches, transactions, or locks for mutable resources.
  • Preserve user-owned changes and make cancellation recoverable.

Verification

  • Validate the plan is acyclic and every dependency and approval reference resolves. Tag consequential work with consequential, deploy, or external-mutation and require its task-local approval_ref to name an approval point for that task.
  • Confirm concurrently runnable tasks do not write the same file, record, branch, or environment.
  • Check every handoff against its output contract before unblocking dependents.
  • Re-run end-to-end tests or evidence checks after synthesis; individual task success is insufficient.
  • Confirm the final report accounts for all tasks as completed, failed, canceled, or superseded.

Failure handling

  • If an agent stalls, inspect its last evidence, retry once only when the failure is transient, then reassign or collapse the task.
  • If agents disagree, ask each for source-backed claims and let the named integrator adjudicate; do not average incompatible answers.
  • If shared state conflicts, pause writers, preserve both versions, and reconcile through the single owner.
  • If a dependency fails, block or redesign downstream work instead of silently fabricating its input.
  • If coordination overhead exceeds remaining work, stop delegation and complete the critical path under one owner.

Example

For “prepare and implement a cross-platform authentication change,” keep architecture and integration under one owner, delegate independent threat modeling and test-fixture design, assign non-overlapping implementation files only after the interface is frozen, require each handoff to include changed paths and test evidence, gate production configuration behind approval, and have the integrator run the complete suite and reconcile security findings before declaring completion.

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills
seb1n
社区

accessibility-testing

Audit web interfaces against WCAG 2.1 AA/AAA standards, identify violations, and produce actionable remediation reports with code fixes. Use when the user requests accessibility testing or provides relevant inputs for this workflow.

安装量
1
GitHub Stars
211
最近更新
8月9日
seb1n
社区

agent-red-teaming

Plan, execute, document, and retest authorized security assessments of AI agents and multi-agent workflows using safe adversarial cases, synthetic identities, canaries, and evidence-based findings. Use when defining red-team rules of engagement, assessing prompt injection or excessive agency, testing tool and identity boundaries, evaluating memory or cross-agent attacks, scoring a campaign, or verifying remediation in an approved environment.

安装量
1
GitHub Stars
211
最近更新
8月9日
seb1n
社区

api-design

Design RESTful APIs with proper resource modeling, HTTP method semantics, status codes, pagination, versioning, and documentation. Use when the user requests api design or provides relevant inputs for this workflow.

安装量
1
GitHub Stars
211
最近更新
8月9日
seb1n
社区

api-integration

Integrate with external APIs using REST clients, webhook consumers, SDK wrappers, and polling patterns with proper authentication, error handling, and retry logic. Use when the user requests api integration or provides relevant inputs for this workflow.

安装量
1
GitHub Stars
211
最近更新
8月9日