← 返回
未分类 Key 中文

Pilot Slack Bridge

Bidirectional bridge between Pilot Protocol and Slack channels. Use this skill when: 1. You need to send Slack notifications from Pilot agents 2. You want to...
Pilot协议与Slack频道之间的双向桥梁。使用此技能的场景:1. 你需要从Pilot代理发送Slack通知时 2. 你想要...
teoslayer teoslayer 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 313
下载
💾 0
安装
1
版本
#latest

概述

Pilot Slack Bridge

Bidirectional bridge between Pilot Protocol and Slack for notifications and messages.

Commands

Configure Slack Webhook

pilotctl --json set-webhook https://hooks.slack.com/services/YOUR/WEBHOOK/URL

Send Plain Message

pilotctl --json publish localhost slack-notifications --data "Agent started successfully"

Send Structured Message

pilotctl --json publish localhost slack-alerts --data '{"text":"Error","attachments":[{"color":"danger","title":"Alert"}]}'

Subscribe to Slack Events

pilotctl --json subscribe relay-agent slack-events
pilotctl --json listen 1002

Workflow Example

#!/bin/bash
# Slack bridge setup

pilotctl --json daemon start --hostname slack-relay --public
pilotctl --json set-webhook "$SLACK_WEBHOOK"
pilotctl --json listen 1002 &

# Start HTTP relay (external)
python3 slack_relay.py &

# Process Slack commands
while true; do
  EVENT=$(pilotctl --json recv 1002 --timeout 60s)
  TEXT=$(echo "$EVENT" | jq -r '.event.text')

  case "$TEXT" in
    "status")
      pilotctl --json publish localhost slack-responses --data "Status: $(pilotctl --json daemon status)"
      ;;
    "list agents")
      pilotctl --json publish localhost slack-responses --data "Agents: $(pilotctl --json peers)"
      ;;
  esac
done

Dependencies

Requires pilot-protocol skill, running daemon, Slack webhook URL, and HTTP relay service for inbound.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 18:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Pilot Api Gateway

teoslayer
将本地 API 暴露到 Pilot 协议网络。适用场景:1. 需要向远程 Pilot 代理暴露本地 API;2. 想提供 API 访问。
★ 0 📥 454

Pilot Network Map

teoslayer
可视化网络拓扑、信任图和延迟。在需要生成网络拓扑图或邻接矩阵,或可视化信任图时使用此技能。
★ 0 📥 464

Pilot Task Parallel

teoslayer
将任务分发给多个代理并合并结果。适用场景:1. 需要将独立工作分配给多个代理;2. 希望汇总各代理的结果。
★ 0 📥 469