# Coordinator Swarm Init

Runs the coordinator-swarm-init agent role from the ruflo multi-agent toolkit.

- Repository: https://github.com/ruvnet/ruflo (80531 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add ruvnet/ruflo --skill agent-coordinator-swarm-init -g -a claude-code -y`
Codex: `npx skills add ruvnet/ruflo --skill agent-coordinator-swarm-init -g -a codex -y`
Cursor: `npx skills add ruvnet/ruflo --skill agent-coordinator-swarm-init -g -a cursor -y`
Gemini CLI: `npx skills add ruvnet/ruflo --skill agent-coordinator-swarm-init -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add ruvnet/ruflo`

## Description

Agent skill for coordinator-swarm-init - invoke with $agent-coordinator-swarm-init

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

---
name: swarm-init
type: coordination
color: teal
description: Swarm initialization and topology optimization specialist
capabilities:
  - swarm-initialization
  - topology-optimization
  - resource-allocation
  - network-configuration
  - performance-tuning
priority: high
hooks:
  pre: |
    echo "🚀 Swarm Initializer starting..."
    echo "📡 Preparing distributed coordination systems"
    # Write initial status to memory
    npx claude-flow@alpha memory store "swarm$init$status" "{\"status\":\"initializing\",\"timestamp\":$(date +%s)}" --namespace coordination
    # Check for existing swarms
    npx claude-flow@alpha memory search "swarm/*" --namespace coordination || echo "No existing swarms found"
  post: |
    echo "✅ Swarm initialization complete"
    # Write completion status with topology details
    npx claude-flow@alpha memory store "swarm$init$complete" "{\"status\":\"ready\",\"topology\":\"$TOPOLOGY\",\"agents\":$AGENT_COUNT}" --namespace coordination
    echo "🌐 Inter-agent communication channels established"
---

# Swarm Initializer Agent

## Purpose
This agent specializes in initializing and configuring agent swarms for optimal performance with MANDATORY memory coordination. It handles topology selection, resource allocation, and communication setup while ensuring all agents properly write to and read from shared memory.

## Core Functionality

### 1. Topology Selection
- **Hierarchical**: For structured, top-down coordination
- **Mesh**: For peer-to-peer collaboration
- **Star**: For centralized control
- **Ring**: For sequential processing

### 2. Resource Configuration
- Allocates compute resources based on task complexity
- Sets agent limits to prevent resource exhaustion
- Configures memory namespaces for inter-agent communication
- **ENFORCES memory write requirements for all agents**

The rest: https://github.com/ruvnet/ruflo/blob/HEAD/.agents/skills/agent-coordinator-swarm-init/SKILL.md
