Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

swarm-coordination群体协调

Agent Skill

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

总安装

1,976

周安装

84

GitHub Stars

25

下载量

692
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:swarm-coordination(群体协调)
来源仓库:https://github.com/oimiragieo/agent-studio
仓库路径:skills/swarm-coordination
安装命令:
npx skills add https://github.com/oimiragieo/agent-studio --skill swarm-coordination
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/oimiragieo/agent-studio --skill swarm-coordination

简介

用于查找、检索和筛选相关信息。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装命令:npx skills add https://github.com/oimiragieo/agent-studio --skill swarm-coordination。
  • 安装前建议确认是否会触发联网或文件读写。

SKILL.md

Swarm Coordination Skill

Step 1: Analyze Task for Parallelization

Identify parallelizable work:

PatternExampleStrategy
Independent tasksReview multiple filesSpawn in parallel
Dependent tasksDesign → ImplementSequential spawn
Fan-out/Fan-inMultiple reviews → ConsolidateParallel + Aggregation
PipelineParse → Transform → ValidateSequential handoff

Step 2: Spawn Agents in Parallel

Use the Task tool to spawn multiple agents in a single message:

// Spawn multiple agents in ONE message for parallel execution
Task({
  task_id: 'task-1',
  subagent_type: 'general-purpose',
  description: 'Architect reviewing design',
  prompt: 'Review architecture...',
});

Task({
  task_id: 'task-2',
  subagent_type: 'general-purpose',
  description: 'Security reviewing design',
  prompt: 'Review security...',
});

Key: Both Task calls must be in the SAME message for true parallelism.

Step 3: Define Handoff Format

Use structured formats for agent communication:

## Agent Handoff: [Source] → [Target]

### Context

- Task: [What was done]
- Files: [Files touched]

### Findings

- [Key finding 1]
- [Key finding 2]

### Recommendations

- [Action item 1]
- [Action item 2]

### Artifacts

- [Path to artifact 1]
- [Path to artifact 2]

Step 4: Aggregate Results

Combine outputs from parallel agents:

## Swarm Results Aggregation

### Participating Agents

- Architect: Completed ✅
- Security: Completed ✅
- DevOps: Completed ✅

### Consensus Points

- [Point all agents agree on]

### Conflicts

- [Point agents disagree on]
- Resolution: [How to resolve]

### Combined Recommendations

1. [Prioritized recommendation]
2. [Prioritized recommendation]

Step 5: Handle Failures

Strategies for partial failures:

ScenarioStrategy
Agent timeoutRetry with simpler prompt
Agent errorContinue with available results
Conflicting resultsUse consensus-voting skill
Missing critical resultBlock and retry

</execution_process>

<best_practices>

  1. Parallelize Aggressively: Independent work should run in parallel
  2. Structured Handoffs: Use consistent formats for communication
  3. Graceful Degradation: Continue with partial results when safe
  4. Clear Aggregation: Combine results systematically
  5. Track Provenance: Know which agent produced each result

</best_practices>

Get architecture, security, and performance reviews for the new API design

Swarm Coordination:

// Spawn 3 reviewers in parallel (single message)
Task({ task_id: 'task-3', description: 'Architect reviewing API', prompt: '...' });
Task({ task_id: 'task-4', description: 'Security reviewing API', prompt: '...' });
Task({ task_id: 'task-5', description: 'Performance reviewing API', prompt: '...' });

Aggregated Results:

## API Design Review (3 agents)

### Consensus

- RESTful design is appropriate
- Need authentication on all endpoints

### Recommendations by Priority

1. [HIGH] Add rate limiting (Security)
2. [HIGH] Use connection pooling (Performance)
3. [MED] Add versioning to URLs (Architect)

</usage_example>

Rules

  • Always spawn independent agents in parallel
  • Use structured handoff formats
  • Handle partial failures gracefully

Related Workflow

This skill has a corresponding workflow for complex multi-agent scenarios:

  • Workflow: .claude/workflows/enterprise/swarm-coordination-skill-workflow.md
  • When to use workflow: For massively parallel task execution with Queen/Worker topology, fault tolerance, and distributed coordination (large-scale refactoring, parallel code review, multi-file implementation)
  • When to use skill directly: For simple parallel agent spawning or when integrating swarm patterns into other workflows

Workflow Integration

This skill powers multi-agent orchestration patterns across the framework:

Router Decision: .claude/workflows/core/router-decision.md

  • Router uses swarm patterns for parallel agent spawning
  • Planning Orchestration Matrix defines when to use swarm coordination

Artifact Lifecycle: .claude/workflows/core/skill-lifecycle.md

  • Swarm patterns apply to artifact creation at scale
  • Parallel validation of multiple artifacts

Related Workflows:

  • consensus-voting skill for resolving conflicting agent outputs
  • context-compressor skill for aggregating parallel results
  • Enterprise workflows in .claude/workflows/enterprise/ use swarm patterns

Iron Laws

  1. NEVER spawn workers sequentially — all independent agents must be dispatched in a single message
  2. ALWAYS implement failure detection; never let a hung worker block the swarm indefinitely
  3. NEVER allow cross-worker communication — all coordination must flow through the Queen
  4. ALWAYS use structured handoff format for worker reports to enable programmatic aggregation
  5. NEVER spawn more than 7 workers in a single fan-out — coordination overhead dominates beyond that

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
Sequential spawningNo parallelism; swarm executes like a queueSpawn all independent workers in a single message
Cross-worker communicationO(N²) coordination chaosAll worker-to-worker communication flows through the Queen
No failure handlingOne worker crash stalls the swarmDetect hung/failed workers and re-spawn with fresh state
Unbounded parallelismCoordination overhead exceeds speedup beyond 7 workersLimit to 5-7 workers per fan-out for optimal throughput
Free-form worker reportsCannot aggregate results programmaticallyRequire all workers to use the structured handoff template

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing:

  • New pattern -> .claude/context/memory/learnings.md
  • Issue found -> .claude/context/memory/issues.md
  • Decision made -> .claude/context/memory/decisions.md
ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.56%
按下载量换算253

Claude

30.74%
按下载量换算213

Cursor

18.83%
按下载量换算130

Gemini CLI

8.89%
按下载量换算62

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/oimiragieo/agent-studio --skill swarm-coordination 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills