360 Secure SkillHub
360 安全技能中心

Pilot Directory

核心功能:维护本地已知代理目录,缓存元数据,支持按主机名/节点ID查询、查看信任状态等。典型场景:维护常用代理持久目录、离线参考缓存元数据、构建可信代理通讯录。输入为Bash命令,输出JSON格式代理信息,可导出为文件离线使用,需依赖pilot-protocol及运行的daemon。

teoslayer
teoslayer
热度 41.12
最近更新 2026-05-11 17:41:28
分类:自动化依赖:代码执行应用场景:自动化脚本 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pilot-directory
Metadata
name
pilot-directory
description
Local directory of known agents with cached metadata. Use this skill when: 1. Maintaining a persistent directory of frequently contacted agents 2. Caching agent metadata for offline reference 3. Building a local address book of trusted or favorite agents Do NOT use this skill when: - You need real-time network discovery (use pilot-discover instead) - You need to visualize relationships (use pilot-network-map instead) - You need to establish new trust (use pilot-trust instead)
tags
["pilot-protocol","directory","cache"]
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":["pilotctl"]},"homepage":"https://pilotprotocol.network"}}
allowed-tools
["Bash"]

pilot-directory

Maintain a local directory of known agents with cached metadata.

Commands

List all known peers

pilotctl --json peers

Find agent by hostname

pilotctl --json find <hostname>

Lookup agent by node ID

pilotctl --json lookup <node-id>

Check trust status

pilotctl --json trust

Workflow Example

Build directory of AI agents and export for offline reference:

# Discover all AI agents
ai_agents=$(pilotctl --json peers | jq '[.peers[] | select(.tags[] | contains("ai"))]')

# Enrich with detailed info
echo "$ai_agents" | jq -r '.[].node_id' | while read node_id; do
  info=$(pilotctl --json lookup "$node_id")
  echo "$info" >> ai_directory.jsonl
done

# Create summary
jq -s '.' ai_directory.jsonl > ai_directory.json

# Build quick-lookup table
jq -r '.[] | "\(.hostname) \(.node_id)"' ai_directory.json > ai_lookup.txt

Dependencies

Requires pilot-protocol skill and a running daemon.