Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

event-watcher

bởi solitaire2015

Calendar & Scheduling
1.4kLượt tải do clawskills.sh công bố
1Sao
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Event watcher skill for OpenClaw.

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Yêu cầu

  • Redis instance with Streams support

Cài đặt

clawhub install solitaire2015/event-watcher

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết