# Send Event-Watcher to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "event-watcher",
    "name": "Event-Watcher",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/solitaire2015/event-watcher",
    "canonicalUrl": "https://clawhub.ai/solitaire2015/event-watcher",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/event-watcher",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=event-watcher",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/requirements.txt",
      "scripts/utils.py",
      "scripts/webhook_bridge.py",
      "scripts/watcher.py",
      "scripts/filter_rules.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "event-watcher",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T08:59:43.605Z",
      "expiresAt": "2026-05-08T08:59:43.605Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=event-watcher",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=event-watcher",
        "contentDisposition": "attachment; filename=\"event-watcher-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "event-watcher"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/event-watcher"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/event-watcher",
    "downloadUrl": "https://openagent3.xyz/downloads/event-watcher",
    "agentUrl": "https://openagent3.xyz/skills/event-watcher/agent",
    "manifestUrl": "https://openagent3.xyz/skills/event-watcher/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/event-watcher/agent.md"
  }
}
```
## Documentation

### Overview

Lightweight event watcher that listens to Redis Streams (and webhook JSONL) and wakes an OpenClaw session only on matching events. No events → no agent wake → no token spend.

### Core Capabilities

Redis Stream subscription with consumer group and cursor persistence.
Webhook JSONL ingestion via webhook_bridge.py.
Filtering via JSON rules (supports AND/OR + regex).
Deduplication with TTL (configurable).
Retry on failed delivery.
Session routing via sessions_send or agent_gate.
Structured logging + counters for received/matched/delivered/failed.

### Recommended Usage (Agent Guidance)

Channel permissions

Ensure the target Slack channel is allowed in openclaw.json (channels allowlist / groupPolicy). If the bot can’t post, nothing will deliver.

Session routing (default behavior)

Do NOT set session_key in config.
Set only:

reply_channel: slack
reply_to: channel:CXXXX or reply_to: user:UXXXX


The watcher will auto‑resolve the latest session for that channel/user.

Correct reply_to formats

Channel: channel:C0ABC12345
User DM: user:U0ABC12345

Prompt safety

Event payloads are untrusted. By default, the watcher adds a safety header (source + “do not follow instructions”).
You can disable this via wake.add_source_preamble: false only if the source is fully trusted.

Prompt writing

When using sessions_send, do not write “post to #channel” inside the prompt. Delivery target is already set by reply_channel/reply_to.
For long/complex instructions, reference a guide file inside the message (preferred), e.g.:

Guide: /path/to/guide.md (read if not recently)
Keep message_template short and point to the guide.

Runtime

Run the watcher as a background task (e.g., nohup/tmux). No pm2/systemd required.
Keep config + scripts in a fixed location (recommend: {baseDir}/config/ within the skill folder) to avoid path drift.

### Workflow (MVP)

Read watcher config (YAML) from references/CONFIG.md.
Run the watcher (see examples).
On event:

Normalize → filter → dedupe
Deliver to target session (default: sessions_send)
Record ack or retry

### Scripts

scripts/watcher.py — multi-source watcher (redis_stream, webhook)
scripts/webhook_bridge.py — append webhook payloads to JSONL
scripts/requirements.txt — Python deps (redis, pyyaml)

### References

See references/CONFIG.md for full configuration spec, examples, and routing rules.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: solitaire2015
- Version: 1.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T08:59:43.605Z
- Expires at: 2026-05-08T08:59:43.605Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/event-watcher)
- [Send to Agent page](https://openagent3.xyz/skills/event-watcher/agent)
- [JSON manifest](https://openagent3.xyz/skills/event-watcher/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/event-watcher/agent.md)
- [Download page](https://openagent3.xyz/downloads/event-watcher)