skills/distributed-comms/orchestrator/SKILL.md
Multi-instance delegation: route to A-H instances, fanout/aggregation, sessions_send/spawn, health checks
npx skillsauth add alphaonedev/openclaw-graph orchestratorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill handles multi-instance delegation in distributed systems, routing tasks to instances A-H, managing fanout and aggregation of responses, spawning/sending sessions, and performing health checks. It's designed for coordinating complex workflows across distributed-comms clusters.
Use this skill for scenarios involving multiple instances, such as load balancing requests across A-H, aggregating data from distributed nodes, managing long-running sessions, or ensuring instance health in fault-tolerant systems. Apply it when single-instance processing isn't sufficient, like in scalable web services or parallel computations.
sessions_spawn and send data via sessions_send, enabling stateful interactions./api/health/check, returning JSON with status codes (e.g., 200 for healthy).$ORCHESTRATOR_API_KEY for authenticated operations.openclaw orchestrator route --instances A B --payload '{"data": "task"}'openclaw orchestrator fanout --targets A-H --aggregate true --timeout 10sopenclaw orchestrator sessions_spawn --id session1; openclaw orchestrator sessions_send --id session1 --data '{"key": "value"}'openclaw orchestrator health --instances A-H --output json{"instances": ["A", "B"], "payload": {"data": "task"}}, Headers: Authorization: Bearer $ORCHESTRATOR_API_KEY{"targets": ["A", "C"], "aggregate": true}, Returns aggregated JSON array.{"sessionId": "session1"}, Response: session token.?instances=A-H, Returns: {"A": "healthy", "B": "down"}.import requests
headers = {'Authorization': f'Bearer {os.environ["ORCHESTRATOR_API_KEY"]}'}
response = requests.post('http://api.openclaw/orchestrator/route', json={'instances': ['A'], 'payload': {'data': 'task'}}, headers=headers)
export ORCHESTRATOR_API_KEY=your_key_here
openclaw orchestrator fanout --targets A-H --aggregate true > output.json
{"instances": ["A"], "timeout": 5}; store in files like config.json and pass via --config config.json.Integrate by setting $ORCHESTRATOR_API_KEY in your environment before running commands. For distributed-comms clusters, ensure the skill is registered via the cluster's API (e.g., POST /api/cluster/register with body {"skillId": "orchestrator"}). Use SDK wrappers for languages like Python; install via pip install openclaw-sdk. When embedding, include the hint string in metadata: orchestrate delegate multi-instance session spawn send fanout aggregate instances. Test integrations in a sandbox environment to verify routing and session persistence.
$ORCHESTRATOR_API_KEY is set and valid; retry once after verifying.--retry 3 in CLI or handle in code with exponential backoff.--timeout 10s and catch errors with try/except in scripts.try:
response = requests.post(url, headers=headers)
response.raise_for_status()
except requests.exceptions.HTTPError as e:
print(f"Error: {e} - Retrying...")
# Implement retry logic here
tools
Root web development: project structure, tooling selection, deployment decisions
development
WebAssembly: Rust/Go/C to WASM, wasm-bindgen, Emscripten, WASM Component Model
development
Vue 3: Composition API script setup, Pinia, Vue Router 4, SFCs, Vite, Nuxt 3
tools
Tailwind CSS 4: utility classes, config, JIT, arbitrary values, darkMode, plugins, shadcn/ui