Swarm Orchestration
하는 일
이 스킬은 구조 선택부터 작업 분담까지, 여러 AI 에이전트를 동시에 조율하는 방법을 보여 줍니다. 한 에이전트로는 부족한 시스템을 만드는 사람을 위한 것입니다.
사용하는 경우
- ✓작업이 너무 커서 여러 에이전트가 함께 해야 할 때.
- ✓작업을 나누어 여러 에이전트가 병렬로 실행하기를 원할 때.
- ✓에이전트가 작업을 공유하고 한 에이전트가 실패해도 계속 진행해야 할 때.
스킬 링크
https://github.com/ruvnet/RuView/blob/main/.claude/skills/swarm-orchestration/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“몇 개의 에이전트를 설정해 API와 테스트를 동시에 만들고, 누가 무엇을 맡을지 조율해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
스킬은 mesh, hierarchical, adaptive 같은 구조로 스웜을 시작한 뒤, 코더, 테스터, 리뷰어 같은 역할의 에이전트를 추가합니다. 그다음 작업을 나누어 에이전트들에게 보내 병렬로 실행합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Swarm Orchestration
What This Skill Does
Orchestrates multi-agent swarms using agentic-flow's advanced coordination system. Supports mesh, hierarchical, and adaptive topologies with automatic task distribution, load balancing, and fault tolerance.
Prerequisites
- agentic-flow v3.0.0-alpha.1+
- Node.js 18+
- Understanding of distributed systems (helpful)
Quick Start
# Initialize swarm
npx agentic-flow hooks swarm-init --topology mesh --max-agents 5
# Spawn agents
npx agentic-flow hooks agent-spawn --type coder
npx agentic-flow hooks agent-spawn --type tester
npx agentic-flow hooks agent-spawn --type reviewer
# Orchestrate task
npx agentic-flow hooks task-orchestrate \
--task "Build REST API with tests" \
--mode parallel
Topology Patterns
1. Mesh (Peer-to-Peer)
// Equal peers, distributed decision-making
await swarm.init({
topology: 'mesh',
agents: ['coder', 'tester', 'reviewer'],
communication: 'broadcast'
});
2. Hierarchical (Queen-Worker)
// Centralized coordination, specialized workers
await swarm.init({
topology: 'hierarchical',
queen: 'architect',
workers: ['backend-dev', 'frontend-dev', 'db-designer']
});
3. Adaptive (Dynamic)
// Automatically switches topology based on task
await swarm.init({
topology: 'adaptive',
optimization: 'task-complexity'
});
Task Orchestration
Parallel Execution
// Execute tasks concurrently
const results = await swarm.execute({
tasks: [
{ agent: 'coder', task: 'Implement API endpoints' },
{ agent: 'frontend', task: 'Build UI components' },
{ agent: 'tester', task: 'Write test suite' }
],
mode: 'parallel',
timeout: 300000 // 5 minutes
});
Pipeline Execution
// Sequential pipeline with dependencies
await swarm.pipeline([
{ stage: 'design', agent: 'architect' },
{ stage: 'implement', agent: 'coder', after: 'design' },
{ stage: 'test', agent: 'tester', after: 'implement' },
{ stage: 'review', agent: 'reviewer', after: 'test' }
]);
Adaptive Execution
// Let swarm decide execution strategy
await swarm.autoOrchestrate({
goal: 'Build production-ready API',
constraints: {
maxTime: 3600,
maxAgents: 8,
quality: 'high'
}
});
Memory Coordination
// Share state across swarm
await swarm.memory.store('api-schema', {
endpoints: [...],
models: [...]
});
// Agents read shared memory
const schema = await swarm.memory.retrieve('api-schema');
Advanced Features
Load Balancing
// Automatic work distribution
await swarm.enableLoadBalancing({
strategy: 'dynamic',
metrics: ['cpu', 'memory', 'task-queue']
});
Fault Tolerance
// Handle agent failures
await swarm.setResiliency({
retry: { maxAttempts: 3, backoff: 'exponential' },
fallback: 'reassign-task'
});
Performance Monitoring
// Track swarm metrics
const metrics = await swarm.getMetrics();
// { throughput, latency, success_rate, agent_utilization }
Integration with Hooks
# Pre-task coordination
npx agentic-flow hooks pre-task --description "Build API"
# Post-task synchronization
npx agentic-flow hooks post-task --task-id "task-123"
# Session restore
npx agentic-flow hooks session-restore --session-id "swarm-001"
Best Practices
- Start small: Begin with 2-3 agents, scale up
- Use memory: Share context through swarm memory
- Monitor metrics: Track performance and bottlenecks
- Enable hooks: Automatic coordination and sync
- Set timeouts: Prevent hung tasks
Troubleshooting
Issue: Agents not coordinating
Solution: Verify memory access and enable hooks
Issue: Poor performance
Solution: Check topology (use adaptive) and enable load balancing
Learn More
- Swarm Guide: docs/swarm/orchestration.md
- Topology Patterns: docs/swarm/topologies.md
- Hooks Integration: docs/hooks/coordination.md
자주 묻는 질문
에이전트에게 어떤 역할을 줄 수 있나요?
코더, 테스터, 리뷰어, 백엔드 및 프런트엔드 개발자, 아키텍트 같은 예시가 있습니다.
adaptive 구조란 무엇인가요?
스킬에 따르면 작업의 복잡도에 따라 자동으로 바뀌는 구조입니다.
먼저 무엇을 설치해야 하나요?
agentic-flow 3.0.0-alpha.1 이상과 Node.js 18 이상입니다.
상세 정보
작성자의 원본 설명
Orchestrate multi-agent swarms with agentic-flow for parallel task execution, dynamic topology, and intelligent coordination. Use when scaling beyond single agents, implementing complex workflows, or building distributed AI systems.
repo: ruvnet/RuView
인기도
- GitHub 스타
- 102k
- 순위
- #842
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
AgentDB Advanced Features
102k여러 컴퓨터 간 데이터베이스 동기화, 벡터 검색과 메타데이터 필터 결합 같은 AgentDB 고급 기능을 에이전트에게 보여 줍니다.
AgentDB Learning Plugins
102k과거 경험을 바탕으로 개선되는 강화 학습 방법을 사용해, AgentDB용 학습 플러그인을 만들고 훈련하도록 에이전트를 돕습니다.
AgentDB Memory Patterns
102kAgentDB를 영구 메모리 저장소로 사용해, 세션이 끝나도 대화와 맥락을 기억하도록 에이전트를 돕습니다.
AgentDB Performance Optimization
102k압축, 빠른 검색 인덱스, 캐싱을 사용해 AgentDB 검색 속도를 높이고 메모리 사용을 줄이는 방법을 에이전트에게 보여 줍니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.