← ClaudeAtlas

task-distributionlisted

Distribute work across multiple agents using queue-based load balancing. Use for parallel execution, work distribution, and team coordination.
othmane55/claude-collective-intelligence · ★ 4 · AI & Automation · score 67
Install: claude install-skill othmane55/claude-collective-intelligence
# Task Distribution Efficiently distribute work across multiple Claude Code agents using RabbitMQ queues. ## Quick Start ### Distribute Task (Team Leader) ```javascript import AgentOrchestrator from './scripts/orchestrator.js'; const orchestrator = new AgentOrchestrator('team-leader'); await orchestrator.initialize(); await orchestrator.startTeamLeader(); // Assign task to worker pool await orchestrator.assignTask({ title: "Implement authentication", description: "JWT-based auth with refresh tokens", priority: "high" }); ``` ### Receive and Execute Task (Worker) ```javascript const orchestrator = new AgentOrchestrator('worker'); await orchestrator.initialize(); await orchestrator.startWorker(); // Automatically consumes and processes tasks ``` ## Distribution Strategies ### Strategy 1: Round-Robin (Fair Distribution) ```javascript // RabbitMQ default behavior with prefetch=1 await channel.prefetch(1); // Tasks distributed evenly: // Task 1 → Worker A // Task 2 → Worker B // Task 3 → Worker C // Task 4 → Worker A // ... ``` ### Strategy 2: Priority-Based ```javascript // High priority tasks processed first await orchestrator.assignTask({ title: "Critical bug fix", priority: "critical" // Processed before normal/low }); await orchestrator.assignTask({ title: "Refactoring", priority: "low" // Processed last }); ``` ### Strategy 3: Capability-Based Routing ```javascript // Route to specialized workers const task = { title: "Optimize database queries