Load Balancer Skill
name: load-balancer
by bytesagain3 · published 2026-03-22
$ claw add gh:bytesagain3/bytesagain3-load-balancer---
name: load-balancer
version: "1.0.0"
description: "Manage load balancer configurations and server pools using CLI tools. Use when you need to create, test, or rotate backend server pools."
author: BytesAgain
homepage: https://bytesagain.com
source: https://github.com/bytesagain/ai-skills
tags: [load-balancer, infrastructure, devops, networking, server-pool]
---
# Load Balancer Skill
Manage load balancer configurations, server pools, health checks, and traffic routing from the command line. Supports multiple balancing algorithms (round-robin, least-connections, weighted, ip-hash) with full CRUD operations on balancer instances and backend servers.
All data is persisted locally in JSONL format at `~/.load-balancer/data.jsonl`.
Prerequisites
Commands
All commands are executed via `scripts/script.sh <command> [arguments...]`.
`create`
Create a new load balancer configuration.
scripts/script.sh create --name <name> --algorithm <round-robin|least-conn|weighted|ip-hash> [--port <port>] [--protocol <http|https|tcp>]`add-server`
Add a backend server to an existing load balancer.
scripts/script.sh add-server --lb <lb-name> --host <host> --port <port> [--weight <weight>]`remove-server`
Remove a backend server from a load balancer.
scripts/script.sh remove-server --lb <lb-name> --host <host>`list`
List all load balancers or servers within a specific balancer.
scripts/script.sh list [--lb <lb-name>] [--format <table|json>]`health`
Run health checks against backend servers in a load balancer.
scripts/script.sh health --lb <lb-name> [--timeout <seconds>]`stats`
Display traffic and performance statistics for a load balancer.
scripts/script.sh stats [--lb <lb-name>] [--period <hour|day|week>]`config`
View or update configuration for a load balancer.
scripts/script.sh config --lb <lb-name> [--set <key=value>]`export`
Export load balancer configuration to various formats.
scripts/script.sh export --lb <lb-name> --format <nginx|haproxy|json|yaml>`test`
Simulate traffic distribution across backend servers.
scripts/script.sh test --lb <lb-name> [--requests <count>]`rotate`
Rotate backend servers (drain and cycle for maintenance).
scripts/script.sh rotate --lb <lb-name> --host <host> [--drain-time <seconds>]`status`
Show overall system status and summary of all load balancers.
scripts/script.sh status`help`
Display help information and usage examples.
scripts/script.sh help`version`
Display the current version of the skill.
scripts/script.sh versionExamples
# Create a new load balancer with round-robin algorithm
scripts/script.sh create --name web-pool --algorithm round-robin --port 443 --protocol https
# Add backend servers
scripts/script.sh add-server --lb web-pool --host 10.0.1.10 --port 8080 --weight 3
scripts/script.sh add-server --lb web-pool --host 10.0.1.11 --port 8080 --weight 2
# Check health of all servers
scripts/script.sh health --lb web-pool
# Export as nginx config
scripts/script.sh export --lb web-pool --format nginx
# Simulate 500 requests
scripts/script.sh test --lb web-pool --requests 500
# Rotate a server for maintenance
scripts/script.sh rotate --lb web-pool --host 10.0.1.10 --drain-time 60Data Storage
All data is stored in `~/.load-balancer/data.jsonl`. Each line is a JSON object with a `type` field (`balancer` or `server`) and relevant metadata including timestamps.
Error Handling
---
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...