跳到正文
TakoAPI
返回技能列表

event-watcher

由 solitaire2015 提供

Calendar & Scheduling
1.4k下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Event watcher skill for OpenClaw.

描述

该技能的功能

Subscribes to Redis Streams and webhook JSONL sources, waking an OpenClaw agent only when incoming events match configured filter rules. Handles deduplication, retry, and session routing to specific Slack channels or users. No matching events means no agent wake and no token spend.

Agents wake only on matching events, avoiding the token cost of polling loops or always-on agent processes.

何时使用

  • Wake an agent only when a Redis Stream event matches a specific type or field value
  • Route webhook payloads to a Slack channel without continuous polling
  • Deduplicate high-volume event streams before agent delivery
  • Trigger session-based workflows from external system events
  • Monitor multiple event sources with a single background watcher process

示例工作流

输入

User asks: Watch my Redis Stream for order_placed events and post a summary to #orders in Slack

智能体
  1. 1

    Reads watcher config spec from references/CONFIG.md

  2. 2

    Writes YAML config with Redis Stream source and filter rule for type=order_placed

  3. 3

    Sets reply_channel: slack and reply_to: channel:CXXXX for the target channel

  4. 4

    Runs scripts/watcher.py as a background task via nohup or tmux

  5. 5

    On match, normalizes and deduplicates the event, then delivers it to the resolved session

输出

A Slack message posted to #orders each time an order_placed event arrives on the stream

前置要求

  • Redis instance with Streams support

安装

clawhub install solitaire2015/event-watcher

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接