首页龙虾技能列表 › Kiro Agent Chat — 间接OpenClaw实例间JSON文件通信

Kiro Agent Chat — 间接OpenClaw实例间JSON文件通信

v1.0.0

通过共享JSON文件实现OpenClaw实例间的消息交换、协调或信息传递,支持跨机器(通过SSH或共享存储)

0· 247·0 当前·0 累计
by @sonerbo·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/5
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
该技能如其所述,实现了基于简单JSON文件的间接消息队列,其代码和指令与此目的保持一致。
评估建议
该技能是一个简单的文件基于消息队列,内部逻辑一致。安装前,请验证聊天文件路径并设置严格的文件系统权限,以确保只有预期的代理/用户可以读/写它(敏感数据不应以明文存储在那里)。注意,元数据未列出脚本使用的环境变量(SENDER、RECEIVER、MESSAGE、MY_NAME)——小心不要通过这些环境变量或共享文件暴露机密。远程SSH示例需要您使用私钥;不要共享该密钥。另外,请注意脚本执行的是无锁的读/写操作,可能导致文件损坏;如果需要跨主机的强健或安全的消息传递,请考虑使用认证的消息服务或添加文件锁定/加密。...
详细分析 ▾
用途与能力
Name/description match the included scripts and instructions. The three Python scripts implement writing, reading, and deleting messages in a shared JSON file and there are no unrelated binaries, cloud credentials, or unexpected external services requested.
指令范围
SKILL.md stays within the chat-file use case but relies on environment variables (SENDER, RECEIVER, MESSAGE, MY_NAME) and editing TOOLS.md without declaring them in metadata. Remote usage examples show using ssh with a private key path (~/.ssh/openclaw.pem) — this is expected for SSH-based operation but requires the user to supply and protect their SSH keys. The instructions do not attempt to read arbitrary local files or send data to external endpoints beyond the shared file/SSH examples.
安装机制
There is no external install or download step; the skill is instruction+included scripts only. All code is present in the package and nothing is pulled from third‑party URLs or installed from untrusted sources.
凭证需求
No required environment variables are declared in the registry metadata, but the runtime expects SENDER, RECEIVER, MESSAGE and MY_NAME environment variables. These are not sensitive by themselves, but the README examples reference using a private SSH key for remote execution — users must protect that key and avoid embedding secrets in the shared JSON. The skill does not request unrelated credentials.
持久化与权限
always is false, the skill does not request persistent elevated privileges, and it does not modify other skills' configurations or system-wide settings.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/3/5

İlk versiyon

● 无害

安装命令 点击复制

官方npx clawhub@latest install kiro-agent-chat
镜像加速npx clawhub@latest install kiro-agent-chat --registry https://cn.clawhub-mirror.com

技能文档

代理聊天

两个OpenClaw代理通过共享JSON队列文件进行通信。

设置

TOOLS.md 中设置聊天文件路径:

## 代理聊天
chat_file: ~/shared/agent-chat.json

使用

发送消息

# 写入队列
SENDER="kiro-local" \
RECEIVER="kiro-vps" \
MESSAGE="Selam! Nasılsın?" \
python3 scripts/send_message.py ~/shared/agent-chat.json

读取我的消息

# 读取发送给你的消息
MY_NAME="kiro-local" \
python3 scripts/read_messages.py ~/shared/agent-chat.json

删除已处理消息

python3 scripts/delete_messages.py ~/shared/agent-chat.json 1772698493241,1772698493242

流程

  • 代理A写入消息到共享文件
  • 代理B读取文件,看到新消息
  • 代理B响应,写入文件
  • 代理A读取响应

远程使用(通过SSH)

# 从本地发送到VPS代理
ssh -i ~/.ssh/openclaw.pem ubuntu@host " \
SENDER='kiro-local' RECEIVER='kiro-vps' MESSAGE='Selam!' python3 /path/to/send_message.py /shared/agent-chat.json " 

队列格式

{ 
  "messages": [ 
    { 
      "id": 1772698493241, 
      "sender": "kiro-local", 
      "receiver": "kiro-vps", 
      "message": "Selam!", 
      "timestamp": "2026-03-05T11:14:53.241676" 
    } 
  ] 
}

数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务