Skip to main content

pilot-formation

Deploy predefined network topologies (star, ring, mesh, tree) for structured swarms. Use this skill when: 1. You need specific communication patterns (star coordinator, ring consensus) 2. You want to minimize connection overhead with structured topologies 3. You need hierarchical organization (tree) for scaling Do NOT use this skill when: - Ad-hoc peer discovery is sufficient (use pilot-swarm-join) - Topology changes frequently (use dynamic mesh)

소스 정보

저장소
TeoSlayer/pilot-skills
최근 소스 활동
2026년 4월 20일 17:42
감지된 SKILL.md 언어
영어
스타
8
포크
2

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
pilot-formation
description
Deploy predefined network topologies (star, ring, mesh, tree) for structured swarms. Use this skill when: 1. You need specific communication patterns (star coordinator, ring consensus) 2. You want to minimize connection overhead with structured topologies 3. You need hierarchical organization (tree) for scaling Do NOT use this skill when: - Ad-hoc peer discovery is sufficient (use pilot-swarm-join) - Topology changes frequently (use dynamic mesh)
tags
["pilot-protocol","topology","network-formation","swarm-structure"]
license
AGPL-3.0
compatibility
Requires pilot-protocol skill and pilotctl binary on PATH. The daemon must be running (pilotctl daemon start).
metadata
{"author":"vulture-labs","version":"1.0","openclaw":{"requires":{"bins":"[Truncated]"},"homepage":"https://pilotprotocol.network"}}
allowed-tools
["Bash"]
# 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):** ```bash 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):** ```bash 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):** ```bash 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 ```bash #!/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.
GitHub에서 보기