agentleFS
scoobydont-666scoobydont-666/shared-claude-skills/skills/fleet-manager/SKILL.md

fleet-manager

Skill1 starsChanged 5 months agoMITView on GitHub

Multi-machine fleet operations — SSH key management, cross-host syncing, Ansible playbook execution, fleet health checks, and inventory management. Trigger on: "fleet", "SSH to", "sync to", "cross-host", "deploy to", "rsync", "fleet health", "all machines", "inventory", or any task involving coordination between multiple hosts or infrastructure nodes.

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    All hosts use key-only auth (no passwords)

    line 26
  2. Very specific:

    Always use 127.0.0.1 not localhost on all hosts

    line 64
  3. Distinctive:

    Use VPN/Tailscale for secure cross-network access between non-contiguous networks

    line 68
  4. Very specific:

    When syncing configuration, use version control repos — not raw cp or inline edits

    line 69

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Fleet Manager

Coordinate operations across a multi-machine infrastructure fleet: primary nodes, GPU hosts, mining nodes, and additional infrastructure as needed.

Fleet Inventory

HostIPRoleSSHOS
primary-host<internal-ip-1>Orchestration, fullnode, relay, monitoringkey authUbuntu 24.04
gpu-host<internal-ip-2>GPU cluster, container orchestration, AI workloadskey authUbuntu 24.04
worker-host-1<internal-ip-3>Worker node, inference, container workloadskey authUbuntu 24.04
worker-host-2<internal-ip-4>Mining node, accelerated workloadskey auth (pending)OS TBD

SSH Access

  • All hosts use key-only auth (no passwords)
  • Keys: ~/.ssh/id_ed25519 on each host
  • primary-host ↔ gpu-host: bidirectional key auth established
  • worker-host-1: key auth from gpu-host established. primary-host → worker-host-1 may need host key acceptance.
  • worker-host-2: pending initial configuration

Cross-Host Operations

Sync Configuration

# primary-host → gpu-host
rsync -avz --exclude='.env.local' --exclude='.secrets.map' \
  <config-source>/ admin_user@<gpu-host-ip>:~/<config-dest>/
ssh admin_user@<gpu-host-ip> "cd ~/<config-dest> && ./scripts/install.sh"

# gpu-host → primary-host (pull changes)
rsync -avz --exclude='.env.local' --exclude='.secrets.map' \
  admin_user@<gpu-host-ip>:~/<config-dest>/ <config-source>/

Remote Command Execution

ssh admin_user@<gpu-host-ip> "command here"              # gpu-host
ssh admin_user@<primary-host-ip> "command here"          # primary-host (from gpu-host)
ssh admin_user@<worker-host-ip> "command here"           # worker node

Fleet Health Check

# Create a hosts file with your fleet IPs/hostnames
for host in <primary-host> <gpu-host> <worker-host-1> <worker-host-2>; do
    echo "=== $host ==="
    ssh -o ConnectTimeout=3 admin_user@$host "hostname && uptime && free -h | head -2" 2>/dev/null || echo "UNREACHABLE"
done

Rules

  • Always use 127.0.0.1 not localhost on all hosts
  • GPU nodes may require password authentication; primary nodes typically use NOPASSWD sudoers
  • Primary orchestration host is NOT a miner — never deploy mining workloads there
  • Maintain an Ansible inventory file with all hosts and their roles
  • Use VPN/Tailscale for secure cross-network access between non-contiguous networks
  • When syncing configuration, use version control repos — not raw cp or inline edits

Sudoers Differences

Host TypesudoNotes
Primary orchestrationNOPASSWD (scoped to specific commands)Enables automated operations; config in /etc/sudoers.d/
GPU workerpassword requiredUse echo "$PASS" | sudo -S for scripting or interactive prompt
Additional workerspassword requiredSame as GPU worker; consider key-based sudo for automation
Mining nodesTBDConfigure per deployment; recommend scoped NOPASSWD for mining ops only

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.