Pilot Formation
/install pilot-formation
pilot-formation
Deploy structured network topologies with automatic peer handshaking and trust establishment. Supports star (hub-and-spoke), ring (circular), mesh (all-to-all), tree (hierarchical), and line (chain) formations.
Commands
Deploy star (hub connects to all spokes):
WORKERS=$(pilotctl --json peers --search "role:worker" | jq -r '.[].hostname')
for worker in $WORKERS; do
pilotctl --json handshake "$worker" "Forming star topology"
sleep 1
NODE_ID=$(pilotctl --json pending | jq -r '.pending[] | select(.hostname == "'"$worker"'") | .node_id')
[ -n "$NODE_ID" ] && pilotctl --json approve "$NODE_ID"
done
Deploy ring (circular connections):
AGENTS=$(pilotctl --json peers --search "swarm:$SWARM_NAME" | jq -r 'sort_by(.node_id) | .[].address')
# Connect to next agent in sorted order (implementation in workflow)
Deploy mesh (all-to-all):
ALL_PEERS=$(pilotctl --json peers --search "swarm:$SWARM_NAME" | jq -r '.[].address')
for peer in $ALL_PEERS; do
pilotctl --json handshake "$peer" "Forming mesh topology" &
done
wait
# Approve all pending handshakes
PENDING=$(pilotctl --json pending | jq -r '.[].node_id')
for peer in $PENDING; do
pilotctl --json approve "$peer" &
done
wait
Workflow Example
#!/bin/bash
# Deploy star topology
SWARM_NAME="task-swarm"
MY_ADDR=$(pilotctl --json info | jq -r '.address')
REGISTRY_HOST="registry.example.com"
# Get swarm members
SWARM_MEMBERS=$(pilotctl --json peers --search "swarm:$SWARM_NAME" | jq -r '.[].address')
echo "Deploying star topology (hub: $MY_ADDR)"
# Hub connects to all spokes
for worker in $SWARM_MEMBERS; do
if [ "$worker" != "$MY_ADDR" ]; then
echo "Connecting to spoke: $worker"
pilotctl --json handshake "$worker" "Forming star topology"
sleep 1
NODE_ID=$(pilotctl --json pending | jq -r '.pending[] | select(.hostname == "'"$worker"'") | .node_id')
[ -n "$NODE_ID" ] && pilotctl --json approve "$NODE_ID"
fi
done
# Publish topology
pilotctl --json publish "$REGISTRY_HOST" "topology:$SWARM_NAME" \
--data "{\"type\":\"star\",\"hub\":\"$MY_ADDR\",\"formed_at\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}"
echo "Star topology complete"
Dependencies
Requires pilot-protocol skill, pilotctl binary, running daemon, and jq for JSON parsing.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install pilot-formation - 安装完成后,直接呼叫该 Skill 的名称或使用
/pilot-formation触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Pilot Formation 是什么?
Deploy predefined network topologies (star, ring, mesh, tree) for structured swarms. Use this skill when: 1. You need specific communication patterns (star c... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 98 次。
如何安装 Pilot Formation?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install pilot-formation」即可一键安装,无需额外配置。
Pilot Formation 是免费的吗?
是的,Pilot Formation 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Pilot Formation 支持哪些平台?
Pilot Formation 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Pilot Formation?
由 Calin Teodor(@teoslayer)开发并维护,当前版本 v1.0.0。