← 返回 Skills 市场
teoslayer

Pilot Formation

作者 Calin Teodor · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
98
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (SKILL.md)

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.

安全使用建议
This skill is coherent for forming swarms using the pilotctl tool, but you should only install it if you trust the pilotctl binary and the pilot daemon on your host. Before installing: (1) verify pilotctl and jq are installed from trusted sources (SKILL.md uses jq but the registry metadata does not list it), (2) review the handshake/approve loops — they will automatically approve pending nodes which could add untrusted peers to your topology, (3) confirm where pilotctl will publish topology data (REGISTRY_HOST) so you don't inadvertently leak sensitive metadata, (4) test in an isolated environment first, and (5) ensure you have logging/backup of current topology in case you need to roll back. If you need lower risk, request a version that requires manual approval steps instead of bulk/automated approvals.
功能分析
Type: OpenClaw Skill Name: pilot-formation Version: 1.0.0 The 'pilot-formation' skill provides a set of Bash-based tools and workflows for automating network topology deployment (star, ring, mesh) using the 'pilotctl' utility. The logic involves querying peers, initiating handshakes, and approving connections, all of which are consistent with the stated purpose of structured swarm organization. No evidence of data exfiltration, malicious execution, or prompt injection was found in SKILL.md or the associated metadata.
能力评估
Purpose & Capability
Name/description match the runtime instructions: the skill calls pilotctl to discover peers, handshake, approve, and publish topologies. Requested binary (pilotctl) is appropriate. Minor inconsistency: SKILL.md and prose reference jq for JSON parsing, but the registry metadata's required bins list only pilotctl (jq is not declared).
Instruction Scope
Instructions remain within the stated purpose (forming star/ring/mesh/tree topologies). They do, however, include potentially sensitive operations: automated handshake initiation, bulk approval of pending nodes, and publication of topology metadata to a registry host. These are expected for this skill but are high-impact actions—ensure you want the agent to perform them autonomously.
Install Mechanism
Instruction-only skill with no install spec and no code files — lowest install risk. The skill assumes pilotctl and jq are present on PATH; nothing is downloaded or written by the skill itself.
Credentials
No environment variables or credentials are requested. The operations use local pilotctl commands and transient variables (SWARM_NAME, REGISTRY_HOST). This is proportionate to the described functionality. Note: jq is used but not declared as a required binary in the registry metadata.
Persistence & Privilege
always is false and the skill does not request persistent system-wide changes beyond interacting with the pilot daemon via pilotctl. Autonomous invocation is allowed (platform default); combined with the skill's privileged actions (approvals/publish) this increases potential impact if misused, but this is expected behaviour for a network-formation skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pilot-formation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pilot-formation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release
元数据
Slug pilot-formation
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论