360 Secure SkillHub
360 安全技能中心

Pilot Clipboard

通过 pilotctl 命令行在 Pilot Protocol 网络上于 Agent 之间发送和读取短文本片段或命令输出,提供复制、粘贴、发送消息命令及一个 Bash 剪贴板脚本示例。依赖 pilotctl 二进制、jq 与运行中的守护进程;不适用于文件传输、大数据集共享或持久化存储。

分类:协作
teoslayer
teoslayer
热度 22.41
最近更新 2026-05-11 17:41:28

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add teoslayer/pilot-clipboard
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
pilot-clipboard
description
Shared clipboard for quick text and data snippets between agents over Pilot Protocol. Use this skill when: 1. You need to share short text snippets or command output between agents 2. You want a quick copy/paste mechanism across the Pilot network 3. You need to exchange small data payloads without file transfer Do NOT use this skill when: - You need to transfer files (use pilot-share instead) - You need to share large datasets (use pilot-dataset instead) - You need persistent storage (use pilot-backup instead)
tags
["pilot-protocol","clipboard","text-sharing","quick-exchange"]
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-clipboard

Shared clipboard for exchanging text snippets and command output between agents.

Commands

Copy to Remote Clipboard

echo "Hello from Pilot!" | pilotctl --json send "1:0001.AAAA.BBBB" 1001 --data "$(cat)"

Send Message

pilotctl --json send-message "1:0001.AAAA.BBBB" --data "Hello from Pilot!"

Paste from Remote

pilotctl --json inbox | jq -r '.messages[0].content'

Share Command Output

OUTPUT=$(ls -lh)
pilotctl --json send "1:0001.AAAA.BBBB" 1001 --data "$OUTPUT"

Workflow Example

#!/bin/bash
# Clipboard manager

CLIPBOARD_PORT=1001

clip_copy() {
  local dest="$1"
  local content="${2:-$(cat)}"
  local sender=$(pilotctl --json info | jq -r '.hostname')

  local clip_msg=$(cat <<EOF
{"type":"clipboard","content":$(echo "$content" | jq -R -s .),"sender":"$sender"}
EOF
)

  pilotctl --json send-message "$dest" --data "$clip_msg"
}

clip_paste() {
  pilotctl --json inbox | jq -r '.messages[] | select(.type == "clipboard") | .content' | head -1
}

case "${1:-help}" in
  copy) shift; clip_copy "$@" ;;
  paste) clip_paste ;;
  *) echo "Usage: pilot-clipboard {copy DEST [CONTENT]|paste}" ;;
esac

Dependencies

Requires pilot-protocol, pilotctl, and jq. Clipboard tools: pbcopy/pbpaste (macOS) or xclip/xsel (Linux).