--- name: swarm-orchestrator description: "Simulates a collective of specialized agents to reach a consensus with quantitative confidence scores. Use for: complex decision-making, multi-perspective analysis, and swarm-optimized solutions." --- # Swarm Orchestrator This skill treats AI interaction as a **collective system design**. It orchestrates a "swarm" of virtual agents, each with a unique specialization, to solve complex problems through emergent consensus. ## Swarm Architecture The swarm operates through a structured lifecycle: **Initialization → Divergent Thinking → Adversarial Refinement → Convergence**. ### 1. Agent Specialization For every task, the orchestrator must define at least three distinct agent roles. For example: - **The Optimist**: Focuses on maximum potential and innovation. - **The Realist**: Focuses on feasibility, constraints, and resources. - **The Skeptic**: Focuses on risks, edge cases, and failure modes. ### 2. Consensus Algorithm The swarm uses a weighted voting mechanism to reach a final decision: - **Quorum Threshold**: 75% agreement required for a "High Confidence" result. - **Dissent Tracking**: Minority views are recorded to identify potential blind spots. ## Swarm Protocol Template | Phase | Action | Output Requirement | | :--- | :--- | :--- | | **Swarm Call** | Define roles and task. | Agent Role List | | **Brainstorm** | Independent role responses. | 3+ Unique Perspectives | | **Cross-Critique** | Agents challenge each other. | Adversarial Rebuttals | | **Synthesis** | Consolidate into a final plan. | Consensus Report + Confidence % | ## Recommended Workflow 1. **Role Casting**: Identify the specific "experts" needed for the current problem. 2. **Parallel Processing**: Generate responses from each expert simultaneously. 3. **Adversarial Round**: Have the Skeptic review the Optimist's plan, and vice-versa. 4. **Final Collapse**: Synthesize all inputs into a single, robust recommendation with a confidence score (0-100%).