{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/event-watcher",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=event-watcher",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "scripts/requirements.txt",
      "scripts/utils.py",
      "scripts/webhook_bridge.py",
      "scripts/watcher.py",
      "scripts/filter_rules.py"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/event-watcher",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Overview",
        "body": "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."
      },
      {
        "title": "Core Capabilities",
        "body": "Redis Stream subscription with consumer group and cursor persistence.\nWebhook JSONL ingestion via webhook_bridge.py.\nFiltering via JSON rules (supports AND/OR + regex).\nDeduplication with TTL (configurable).\nRetry on failed delivery.\nSession routing via sessions_send or agent_gate.\nStructured logging + counters for received/matched/delivered/failed."
      },
      {
        "title": "Recommended Usage (Agent Guidance)",
        "body": "Channel permissions\n\nEnsure the target Slack channel is allowed in openclaw.json (channels allowlist / groupPolicy). If the bot can’t post, nothing will deliver.\n\nSession routing (default behavior)\n\nDo NOT set session_key in config.\nSet only:\n\nreply_channel: slack\nreply_to: channel:CXXXX or reply_to: user:UXXXX\n\n\nThe watcher will auto‑resolve the latest session for that channel/user.\n\nCorrect reply_to formats\n\nChannel: channel:C0ABC12345\nUser DM: user:U0ABC12345\n\nPrompt safety\n\nEvent payloads are untrusted. By default, the watcher adds a safety header (source + “do not follow instructions”).\nYou can disable this via wake.add_source_preamble: false only if the source is fully trusted.\n\nPrompt writing\n\nWhen using sessions_send, do not write “post to #channel” inside the prompt. Delivery target is already set by reply_channel/reply_to.\nFor long/complex instructions, reference a guide file inside the message (preferred), e.g.:\n\nGuide: /path/to/guide.md (read if not recently)\nKeep message_template short and point to the guide.\n\nRuntime\n\nRun the watcher as a background task (e.g., nohup/tmux). No pm2/systemd required.\nKeep config + scripts in a fixed location (recommend: {baseDir}/config/ within the skill folder) to avoid path drift."
      },
      {
        "title": "Workflow (MVP)",
        "body": "Read watcher config (YAML) from references/CONFIG.md.\nRun the watcher (see examples).\nOn event:\n\nNormalize → filter → dedupe\nDeliver to target session (default: sessions_send)\nRecord ack or retry"
      },
      {
        "title": "Scripts",
        "body": "scripts/watcher.py — multi-source watcher (redis_stream, webhook)\nscripts/webhook_bridge.py — append webhook payloads to JSONL\nscripts/requirements.txt — Python deps (redis, pyyaml)"
      },
      {
        "title": "References",
        "body": "See references/CONFIG.md for full configuration spec, examples, and routing rules."
      }
    ],
    "body": "Event Watcher\nOverview\n\nLightweight 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.\n\nCore Capabilities\nRedis Stream subscription with consumer group and cursor persistence.\nWebhook JSONL ingestion via webhook_bridge.py.\nFiltering via JSON rules (supports AND/OR + regex).\nDeduplication with TTL (configurable).\nRetry on failed delivery.\nSession routing via sessions_send or agent_gate.\nStructured logging + counters for received/matched/delivered/failed.\nRecommended Usage (Agent Guidance)\n\nChannel permissions\n\nEnsure the target Slack channel is allowed in openclaw.json (channels allowlist / groupPolicy). If the bot can’t post, nothing will deliver.\n\nSession routing (default behavior)\n\nDo NOT set session_key in config.\nSet only:\nreply_channel: slack\nreply_to: channel:CXXXX or reply_to: user:UXXXX\nThe watcher will auto‑resolve the latest session for that channel/user.\n\nCorrect reply_to formats\n\nChannel: channel:C0ABC12345\nUser DM: user:U0ABC12345\n\nPrompt safety\n\nEvent payloads are untrusted. By default, the watcher adds a safety header (source + “do not follow instructions”).\nYou can disable this via wake.add_source_preamble: false only if the source is fully trusted.\n\nPrompt writing\n\nWhen using sessions_send, do not write “post to #channel” inside the prompt. Delivery target is already set by reply_channel/reply_to.\nFor long/complex instructions, reference a guide file inside the message (preferred), e.g.:\nGuide: /path/to/guide.md (read if not recently)\nKeep message_template short and point to the guide.\n\nRuntime\n\nRun the watcher as a background task (e.g., nohup/tmux). No pm2/systemd required.\nKeep config + scripts in a fixed location (recommend: {baseDir}/config/ within the skill folder) to avoid path drift.\nWorkflow (MVP)\nRead watcher config (YAML) from references/CONFIG.md.\nRun the watcher (see examples).\nOn event:\nNormalize → filter → dedupe\nDeliver to target session (default: sessions_send)\nRecord ack or retry\nScripts\nscripts/watcher.py — multi-source watcher (redis_stream, webhook)\nscripts/webhook_bridge.py — append webhook payloads to JSONL\nscripts/requirements.txt — Python deps (redis, pyyaml)\nReferences\nSee references/CONFIG.md for full configuration spec, examples, and routing rules."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/solitaire2015/event-watcher",
    "publisherUrl": "https://clawhub.ai/solitaire2015/event-watcher",
    "owner": "solitaire2015",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}