multi-agent-patterns
This skill should be used when the user asks to "design multi-agent system", "implement supervisor pattern", "create swarm architecture", "coordinate multiple agents", or mentions multi-agent patterns, context isolation, agent handoffs, sub-agents, or parallel agent execution.
- License 许可
- MIT
- 最近更新
- 2026-04-19
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- multi-agent-patterns
- risk
- unknown
- source
- community
- description
- This skill should be used when the user asks to "design multi-agent system", "implement supervisor pattern", "create swarm architecture", "coordinate multiple agents", or mentions multi-agent patterns, context isolation, agent handoffs, sub-agents, or parallel agent execution.
02 资源文件 4
03 SKILL.md 正文
Multi-Agent Architecture Patterns
Overview
Design distributed AI systems that scale beyond single-agent limits. This skill provides patterns for context isolation, coordination protocols, and consensus mechanisms across multiple model instances.
? Resources
| Resource | Description |
|---|---|
| [Economics & Specialization](file:///c:/workspaces/antigravity-meta/.agents/skills/multi-agent-patterns/resources/agent-economics-and-specialization.md) | Token multipliers and the motivation for specialized agents. |
| [Design Patterns](file:///c:/workspaces/antigravity-meta/.agents/skills/multi-agent-patterns/resources/multi-agent-design-patterns.md) | Supervisor, Swarm, and Hierarchical architecture implementations. |
| [Isolation & Consensus](file:///c:/workspaces/antigravity-meta/.agents/skills/multi-agent-patterns/resources/context-isolation-and-consensus.md) | Handoff protocols, instruction passing, and debate mechanisms. |
| [Failure Modes](file:///c:/workspaces/antigravity-meta/.agents/skills/multi-agent-patterns/resources/agent-failure-modes.md) | Mitigation for supervisor bottlenecks, divergence, and loops. |
Core Patterns
Supervisor Pattern
Central controller delegates to specialists. Best for managed workflows.
See [Design Patterns](file:///c:/workspaces/antigravity-meta/.agents/skills/multi-agent-patterns/resources/multi-agent-design-patterns.md).
Swarm Pattern
Peer-to-peer handoffs without central control. Best for exploratory tasks.
See [Design Patterns](file:///c:/workspaces/antigravity-meta/.agents/skills/multi-agent-patterns/resources/multi-agent-design-patterns.md).
Best Practices
- Context Isolation: Sub-agents exist to partition context, not just roles.
- Explicit Handoffs: Pass state explicitly between agents using standard protocols.
- Validation Layers: Verify agent outputs before passing them to downstream nodes.
- Weighted Voting: Reach consensus by weighting agent expertise.
Related Skills
memory-systems: Shared state management.tool-design: Specializing tools per agent.
Summary
Build robust, parallelizable systems by distributing reasoning across specialized agent contexts and enforcing strict coordination protocols.
04 同仓库更多 Skills
wcag-audit-patterns
Comprehensive guide to auditing web content against WCAG 2.2 guidelines with actionable remediation strategies.
unit-testing-test-generate
Generate comprehensive, maintainable unit tests across languages with strong coverage and edge case focus.
testing-qa
Comprehensive testing and QA workflow covering unit testing, integration testing, E2E testing, browser automation, and quality assurance.
test-fixing
Systematically identify and fix all failing tests using smart grouping strategies. Use when explicitly asks to fix tests ("fix these tests", "make tests pass"), reports test failures ("tests are failing", "test suite is broken"), or completes implementation and wants tests passing.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
terraform-infrastructure
Terraform infrastructure as code workflow for provisioning cloud resources, creating reusable modules, and managing infrastructure at scale.