[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77TV54028KN6NG5WBKD8CMF":3,"skill-same:01M77TV54028KN6NG5WBKD8CMF":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":6,"ownerDescription":55,"updatedAt":56,"install":57,"resources":70},"01M77TV54028KN6NG5WBKD8CMF","signalradar",null,"SignalRadar — Monitor Polymarket prediction markets for probability changes and send alerts when thresholds are crossed. Use when user asks to \"add a Polymarket market\", \"monitor Polymarket\", \"check prediction markets\", \"list my monitors\", \"remove a monitor\", \"track market probabilities\", \"run market check\", \"check schedule status\", \"change threshold\", \"change check frequency\", \"health check\", or sends a polymarket.com URL asking to add, check, or learn about a market. When user shares a polymarket.com URL without explicit intent, use `show` to display market info — do NOT auto-add. Do NOT use for stock\u002Fcrypto trading signals, sports betting, price prediction models, or general financial analysis.","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fsignalradar\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: signalradar\ndescription: >-\n  SignalRadar — Monitor Polymarket prediction markets for probability changes and send alerts when thresholds are crossed.\n  Use when user asks to \"add a Polymarket market\", \"monitor Polymarket\",\n  \"check prediction markets\", \"list my monitors\", \"remove a monitor\",\n  \"track market probabilities\", \"run market check\", \"check schedule status\",\n  \"change threshold\", \"change check frequency\", \"health check\",\n  or sends a polymarket.com URL asking to add, check, or learn about a market.\n  When user shares a polymarket.com URL without explicit intent, use `show` to display market info — do NOT auto-add.\n  Do NOT use for stock\u002Fcrypto trading signals, sports betting, price prediction models, or general financial analysis.\nallowed-tools: \"Bash(python3:*)\"\nlicense: MIT\ncompatibility: Python 3.9+, network access to gamma-api.polymarket.com. No pip dependencies (stdlib only).\nmetadata:\n  openclaw:\n    emoji: \"📡\"\n    requires:\n      bins: [\"python3\", \"crontab\"]\n      env: []\n      pip: []\n    primaryEnv: \"\"\n    envHelp:\n      SIGNALRADAR_WORKSPACE_ROOT:\n        required: false\n        description: \"Override workspace root directory. Auto-detected from script location if not set.\"\n        howToGet: \"Set to the absolute path of your workspace root, e.g. export SIGNALRADAR_WORKSPACE_ROOT=\u002Fpath\u002Fto\u002Fworkspace\"\n      SIGNALRADAR_DATA_DIR:\n        required: false\n        description: \"Override the user data directory. Defaults to ~\u002F.signalradar.\"\n        howToGet: \"Set to a writable directory, e.g. export SIGNALRADAR_DATA_DIR=\u002Ftmp\u002Fsignalradar\"\n      SIGNALRADAR_CONFIG:\n        required: false\n        description: \"Override config file path. Defaults to ~\u002F.signalradar\u002Fconfig\u002Fsignalradar_config.json.\"\n        howToGet: \"Set to absolute path of your config JSON, e.g. export SIGNALRADAR_CONFIG=\u002Ftmp\u002Fsignalradar\u002Fconfig\u002Fsignalradar_config.json\"\n  author: vahnxu\n  version: 1.0.8\n---\n\n# SignalRadar\n\n## Platform Identity\n\nYou are OpenClaw Bot. The user is chatting with you via Telegram (or Discord \u002F Feishu). Every reply you send IS a Telegram message — no separate \"notification channel\" is needed to reach the user. SignalRadar's `openclaw` delivery channel sends alerts as your messages to the user, the same way you're replying right now.\n\nTherefore:\n- `openclaw` delivery = your reply to user = Telegram message. No configuration needed, no scripts.\n- Do NOT say \"no Telegram channel\" — you ARE the Telegram channel.\n- `webhook` is the recommended portable push method — HTTP POST to any endpoint (Slack webhook, Telegram Bot API, Discord, etc.), works on any platform.\n- `file` is for local logging or custom consumption.\n\n**Delivery path comparison (technical detail)**:\n- **webhook path (recommended, portable)**: `crontab` → `signalradar.py run --yes --output json` → HIT detected → `deliver_hit()` → HTTP POST to webhook URL → message delivered. Zero platform dependency, zero LLM cost.\n- **openclaw path (OpenClaw-only)**: `openclaw cron` → `signalradar.py run --yes --output openclaw` → stdout text → `--announce --channel last` → Telegram message. Requires OpenClaw platform, has LLM cost.\n\n## Intent Mapping\n\nAfter receiving a user message, pick a command from this table. **When no intent matches, do NOT run any command — just chat normally.**\n\n| 用户意图（中文常见表达） | English intent | Command |\n|------------------------|----------------|---------|\n| \"看看我监控了啥\" \u002F \"我的列表\" \u002F \"在追踪哪些\" | \"list my monitors\" \u002F \"what am I tracking\" | `list` |\n| \"有啥变化吗\" \u002F \"检查一下\" \u002F \"跑一下\" | \"any changes?\" \u002F \"run a check\" | `run` |\n| \"帮我加一下 [URL]\" \u002F \"监控这个链接\" | \"add this market\" \u002F \"monitor this\" | `add \u003Curl>` |\n| \"帮我加几个市场\" \u002F \"想监控但没链接\" | \"add markets\" (no URL) | `add` (no arg) → empty watchlist returns `ONBOARD_NEEDED`, Agent starts `onboard` flow |\n| \"删掉第 N 个\" \u002F \"不监控这个了\" | \"remove #N\" \u002F \"stop monitoring\" | `remove \u003CN>` |\n| \"阈值改成 X\" \u002F \"灵敏度调高\" | \"change threshold\" \u002F \"more sensitive\" | `config threshold.abs_pp \u003CX>` |\n| \"多久检查一次\" \u002F \"改成 30 分钟\" | \"check frequency\" \u002F \"every 30 min\" | `schedule` \u002F `schedule 30` |\n| \"自动监控还在跑吗\" \u002F \"cron 状态\" | \"is auto-monitoring running?\" | `schedule` (view status) |\n| \"现在设置是什么\" \u002F \"阈值多少\" | \"what are current settings?\" | `config` (must check actual value) |\n| \"健康检查\" \u002F \"能用吗\" | \"health check\" \u002F \"is it working?\" | `doctor --output json` |\n| \"周报\" \u002F \"本周总结\" \u002F \"生成 digest\" | \"weekly digest\" \u002F \"summary report\" | `digest` |\n| \"设置推送\" \u002F \"配置通知渠道\" | \"set up notifications\" \u002F \"configure delivery\" | Guide user to provide webhook URL, then `config delivery webhook \u003Curl>` |\n| \"通知改中文\" \u002F \"语言改中文\" | \"switch to Chinese notifications\" | `config profile.language zh` |\n| **\"好的\" \u002F \"没事\" \u002F \"OK\" \u002F \"知道了\"** | **casual chat** | **Do NOT run any command** |\n| **\"那个 GPT 概率多少了\"** | **\"what's the probability of X?\"** | `show \u003Cnumber\\|keyword>` |\n\n## Critical Rules\n\n**CR-01 Multi-market events must report count first**\nIf event has multiple markets (>3), the CLI force-prints count, type summary, and market list before waiting for confirmation; `--yes` cannot skip this. Agent must still explain the count and types before running `add`.\n\n**CR-02 Never auto-add markets**\nUser must explicitly provide a Polymarket URL or choose from presets. Do NOT auto-add.\n\n**CR-03 Agent must not directly edit data files**\nAgent must not edit `~\u002F.signalradar\u002Fcache\u002F`, `~\u002F.signalradar\u002Fconfig\u002Fwatchlist.json`, or baseline files using Write\u002FEdit tools. Use CLI commands only. Normal runs automatically write these — that is expected behavior. (Note: the human user may hand-edit watchlist.json — the system tolerates it. This rule only restricts the Agent.)\n\n**CR-04 No --yes in human conversations**\nWhen interacting with a human user, Agent must NOT use `--yes` flag. The `--yes` flag is for automated\u002FCI pipelines only (smoke tests, cron jobs, prepublish gates). Let built-in confirmation handle user interaction.\n\n**CR-05 Always check actual config values**\nWhen user asks about current settings, ALWAYS run `signalradar.py config` first. Do NOT guess or recall from memory. If a value is missing, report the default and state \"this is the default value\".\n\n**CR-06 Auto-enable monitoring after first add (crontab-first, with route gate)**\nAfter first `add` or `onboard finalize`, background monitoring attempts to auto-enable (10-minute interval). Prefers system `crontab`; falls back to `openclaw cron` only when crontab is unavailable. **Route gate**: when `delivery.primary.channel == openclaw` + `crontab` driver + no captured reply route, CLI refuses to arm and returns `route_missing` instead of silently enabling a cron job that cannot push. Agent must NOT ask \"should I set up cron?\" and must NOT manually create jobs. Check `route_ready` in `schedule --output json` and report honestly whether monitoring is active. Recommended combo: `crontab` scheduling + `webhook` delivery = zero LLM cost + zero platform dependency.\n\n**CR-07 Use CLI to manage settings and schedule**\nUse `signalradar.py config [key] [value]` for settings (threshold, delivery channel, etc.). Use `signalradar.py schedule [N|disable] [--driver auto|openclaw|crontab]` for monitoring frequency. Do NOT hand-edit JSON config files.\n\n**CR-08 Empty watchlist triggers onboarding**\nWhen watchlist is empty and Agent runs `add\u002Frun --output json`, the response will be `ONBOARD_NEEDED`. Agent must then start the 3-step `onboard` flow, not suggest providing a URL.\n\n**CR-09 Onboarding is a 3-step flow + webhook guidance (narrow-bridge principle)**\nIn Bot\u002FAgent mode, new user onboarding goes through the `onboard` subcommand in three steps:\n1. `onboard --step preview --output json` → show preset event list + terminology education (event\u002Fmarket) → ask user \"which to remove?\"\n2. `onboard --step confirm --keep \u003Cuser-selection> --output json` → show sub-market details + terminology (category\u002Fbaseline) → ask \"confirm adding?\"\n3. `onboard --step finalize --output json` → write watchlist + enable auto-monitoring → show completion + next steps\nEach step must wait for user reply before proceeding. Do NOT compress the 3 steps into 1.\n\n**Webhook guidance (after finalize)**: `ONBOARD_COMPLETE` JSON contains `webhook_setup` field. When `webhook_setup.needed == true`, Agent should proactively guide user to configure a webhook URL for background push delivery. Provide Telegram Bot API \u002F Slack \u002F Discord URL examples. After user provides URL, run `config delivery webhook \u003CURL>`.\n\n**CR-10 Background push requires a captured reply route**\nBackground `--push` on the `crontab` path requires a stored reply route (`~\u002F.signalradar\u002Fcache\u002Fopenclaw_reply_route.json`). If missing, do NOT claim background delivery is working. Check `schedule --output json` for `route_ready` status.\n\n**CR-11 Verify actual status before claiming push readiness (channel-aware)**\nBefore telling the user that background push is working, check `schedule --output json` → `delivery_status` field:\n- `\"ready\"` → push is working for the current delivery channel\n- `\"webhook_url_missing\"` → guide user to run `config delivery webhook \u003CURL>`\n- `\"route_missing\"` → only relevant for openclaw channel; if user is on webhook, this field will not appear\n- `\"file_target_missing\"` → guide user to set file target\n\nDo NOT mix diagnostics across channels. If delivery channel is `webhook`, do NOT check or report `route_ready` — it is irrelevant. The `delivery_status` field already accounts for the active channel.\n\n## Known AI Mistakes (DO NOT repeat)\n\nThese mistakes actually occurred in production. Agent must avoid them.\n\n**Error 1: Adding 28 markets without reporting count first**\n- WRONG: User sends Bitcoin URL → Agent runs `add` and adds 28 markets silently\n- CORRECT: Report \"This event has 28 sub-markets (14 upside + 14 downside). Add all or pick?\" → wait for reply\n\n**Error 2: User says \"好的\" → Agent triggers run and outputs NO_REPLY**\n- WRONG: User says \"好的\" → Agent runs `signalradar.py run` → replies \"NO_REPLY\"\n- CORRECT: \"好的\" is casual acknowledgment. Reply normally without running any command.\n\n**Error 3: Using --yes in human conversation**\n- WRONG: `signalradar.py add \u003Curl> --yes` (skips confirmation in human chat)\n- CORRECT: `signalradar.py add \u003Curl>` (let built-in confirmation handle it; CLI force-previews large batches)\n\n**Error 4: Editing watchlist.json with Write\u002FEdit tools**\n- WRONG: Edit `~\u002F.signalradar\u002Fconfig\u002Fwatchlist.json` with Write\u002FEdit tools\n- CORRECT: Use `signalradar.py add`, `remove`, `config` CLI commands\n\n**Error 5: Guessing config values from memory**\n- WRONG: \"The default threshold is 5pp\" (without checking)\n- CORRECT: Run `signalradar.py config threshold.abs_pp` first, then answer with the actual value\n\n**Error 6: Writing compensatory scripts outside the skill**\n- WRONG: Write helper scripts outside the skill, such as `send_alerts_to_telegram.py`, to compensate for missing behavior\n- CORRECT: Keep monitoring, scheduling, and delivery inside the skill\u002Fruntime contract. If a gap is real, fix the skill itself instead of inventing side scripts\n\n**Error 7: Treating clawhub update as a fresh install without checking data**\n- WRONG: After `clawhub update`, assume the user lost all data and treat the install as fresh without checking the runtime data directory\n- CORRECT: Read the actual user data directory first (`~\u002F.signalradar\u002F` or `SIGNALRADAR_DATA_DIR`) and only then decide whether migration or recovery is needed\n\n**Error 8: Not knowing you are OpenClaw Bot**\n- WRONG: \"SignalRadar doesn't have Telegram support\" → switch to `file` → write custom send script\n- CORRECT: You ARE OpenClaw Bot. Your reply IS a Telegram message. `openclaw` delivery = your reply to user. Keep defaults. No extra channel or script needed.\n\n**Error 9: Compressing 3-step onboarding into one execution**\n- WRONG: Run all 3 onboard steps in sequence without showing the user any results\n- CORRECT: Show each step's output to the user and wait for their reply before proceeding\n\n**Error 10: Claiming push readiness without checking route**\n- WRONG: \"Background push is all set!\" (without checking route_ready)\n- CORRECT: Check `schedule --output json` → if `route_ready: false`, tell the user delivery is not yet armed\n\n**Error 11: Claiming push readiness without checking webhook URL**\n- WRONG: \"Background monitoring is active and alerts will be delivered!\" (when webhook URL is empty)\n- CORRECT: Check `doctor --output json` → if `webhook_url_configured: false`, guide user to set up webhook URL\n\n## Quick Start\n\n```bash\n# Install (OpenClaw users)\nclawhub install signalradar\n\n# Or clone directly\ngit clone https:\u002F\u002Fgithub.com\u002Fvahnxu\u002Fsignalradar.git && cd signalradar\n\n# 1. Health check\npython3 scripts\u002Fsignalradar.py doctor --output json\n\n# 2. Add markets (guided setup or by URL)\npython3 scripts\u002Fsignalradar.py add\npython3 scripts\u002Fsignalradar.py add https:\u002F\u002Fpolymarket.com\u002Fevent\u002Fyour-market-here\n\n# 3. Monitoring auto-starts after first add (every 10 min)\n\n# 4. Check schedule status\npython3 scripts\u002Fsignalradar.py schedule\n\n# 5. Manual check (dry-run)\npython3 scripts\u002Fsignalradar.py run --dry-run --output json\n```\n\n## Common Tasks\n\n### Add a market\n\n```bash\npython3 scripts\u002Fsignalradar.py add                              # Guided setup\npython3 scripts\u002Fsignalradar.py add \u003Cpolymarket-event-url> [--category \u003Cname>]\n```\n\nFlow: parse URL → query Polymarket API → show market question + current probability → user confirms → record baseline.\n\n- If the event has multiple markets (e.g., different date brackets), the CLI shows all markets with their current probabilities before adding. For large events (>3 markets), it also shows a type summary and forces interactive confirmation even if `--yes` was passed.\n- If some markets from the event are already monitored, only new ones are added.\n- If the market is settled\u002Fexpired, a warning is shown but the user can still add it.\n- Category defaults to `default` if not specified. User is not prompted for category.\n- On first-ever add (empty watchlist), a brief explanation of the baseline concept is shown.\n\n### List monitors\n\n```bash\npython3 scripts\u002Fsignalradar.py list [--category \u003Cname>] [--archived]\n```\n\nShows all entries grouped by category with global sequential numbering. Each entry shows: number, question, last-known probability (from local baseline cache), end date.\n\n`--archived` shows previously removed entries (preserved for export).\n\n### Show one monitored market\n\n```bash\npython3 scripts\u002Fsignalradar.py show \u003Cnumber-or-keyword> [--output json]\n```\n\nLooks up one or more monitored markets by list number or keyword, fetches current probability, and returns a read-only snapshot without updating baselines.\n\n### Remove a monitor\n\n```bash\npython3 scripts\u002Fsignalradar.py remove \u003Cnumber>\n```\n\nShows the entry name and asks for confirmation before removing. Removed entries are archived (moved to `archived` array in `~\u002F.signalradar\u002Fconfig\u002Fwatchlist.json`) with full history preserved.\n\n### Run a check\n\n```bash\npython3 scripts\u002Fsignalradar.py run [--dry-run] [--output json]\n```\n\nChecks all active entries against Polymarket API. If probability change exceeds threshold, sends alert via configured delivery channel.\n\n- Settled\u002Fexpired entries are skipped during run, with a summary at the end: \"N entries settled, consider removing.\"\n- When multiple markets trigger in the same run, they are listed in the same notification grouped by event.\n- After a HIT is pushed, the baseline updates to the new probability value. The notification text includes \"baseline updated to XX%.\"\n- `--dry-run` fetches and evaluates but writes no state.\n- `--output openclaw` is reserved for platform background runs. It emits `HEARTBEAT_OK` on quiet checks, user-ready HIT text on realtime alerts, and digest text when a scheduled digest is due and the primary delivery channel is `openclaw`.\n\n### Manage schedule\n\n```bash\npython3 scripts\u002Fsignalradar.py schedule                        # Show current status\npython3 scripts\u002Fsignalradar.py schedule 10                     # Auto driver (crontab-first)\npython3 scripts\u002Fsignalradar.py schedule 10 --driver openclaw   # Force openclaw cron\npython3 scripts\u002Fsignalradar.py schedule 10 --driver crontab    # Force system crontab\npython3 scripts\u002Fsignalradar.py schedule disable                # Disable auto-monitoring\n```\n\n### Generate or preview digest\n\n```bash\npython3 scripts\u002Fsignalradar.py digest\npython3 scripts\u002Fsignalradar.py digest --dry-run\npython3 scripts\u002Fsignalradar.py digest --force\npython3 scripts\u002Fsignalradar.py digest --output json\npython3 scripts\u002Fsignalradar.py digest --output openclaw --force\n```\n\n`digest` compares the current monitored state with the previous digest snapshot, not with per-run baselines.\n\n### View or change config\n\n```bash\npython3 scripts\u002Fsignalradar.py config                          # Show all settings\npython3 scripts\u002Fsignalradar.py config check_interval_minutes   # Show one setting\npython3 scripts\u002Fsignalradar.py config threshold.abs_pp 8.0     # Change threshold\npython3 scripts\u002Fsignalradar.py config delivery webhook \u003Curl>   # Shortcut: set webhook channel + target in one command\n```\n\n### Health check\n\n```bash\npython3 scripts\u002Fsignalradar.py doctor --output json\n```\n\nReturns `{\"status\": \"HEALTHY\"}` if Python version and network connectivity are OK. Also checks `webhook_url_configured` status.\n\n## Understanding Results\n\n| Status | Meaning | Action |\n|--------|---------|--------|\n| `BASELINE` | First observation for an entry | Baseline recorded; no alert sent |\n| `HIT` | Change exceeds threshold | Alert sent via delivery channel; baseline updated |\n| `NO_REPLY` | No entries crossed threshold | Nothing to report |\n| `SILENT` | Change below threshold | No alert sent |\n\n### HIT output example\n\n```json\n{\n  \"status\": \"HIT\",\n  \"request_id\": \"9f98e47e-6e0e-4563-b7c8-87a3b19e97af\",\n  \"hits\": [\n    {\n      \"entry_id\": \"polymarket:12345:gpt5-release-june:evt_67890\",\n      \"slug\": \"gpt5-release-june\",\n      \"question\": \"GPT-5 released by June 30, 2026?\",\n      \"current\": 0.41,\n      \"baseline\": 0.32,\n      \"abs_pp\": 9.0,\n      \"confidence\": \"high\",\n      \"reason\": \"abs_pp 9.0 >= threshold 5.0\"\n    }\n  ],\n  \"ts\": \"2026-03-02T08:00:00Z\"\n}\n```\n\nWhen presenting a HIT to the user:\n> **GPT-5 released by June 30, 2026?**: 32% → 41% (+9pp), threshold 5pp crossed. Baseline updated to 41%.\n\n### Same-event grouped HIT\n\nWhen multiple markets from the same event trigger:\n> **Bitcoin price (March 31)** — 3 markets crossed threshold:\n> - BTC > $100k: 45% → 58% (+13pp), baseline updated to 58%\n> - BTC > $110k: 23% → 35% (+12pp), baseline updated to 35%\n> - BTC > $120k:  8% → 19% (+11pp), baseline updated to 19%\n\n### Empty watchlist\n\nIf there are no entries, run returns:\n```json\n{\"status\": \"NO_REPLY\", \"message\": \"Watchlist is empty. Use 'signalradar.py add \u003Curl>' to add entries.\"}\n```\n\n## Configuration (Optional)\n\nAll settings have sensible defaults. Runtime configuration lives at `~\u002F.signalradar\u002Fconfig\u002Fsignalradar_config.json`.\n\n| Setting | Default | Description |\n|---------|---------|-------------|\n| `threshold.abs_pp` | 5.0 | Global threshold in percentage points (min: 0.1) |\n| `threshold.per_category_abs_pp` | `{}` | Per-category override, e.g. `{\"AI\": 4.0}` |\n| `threshold.per_entry_abs_pp` | `{}` | Per-entry override, key = entry_id |\n| `delivery.primary.channel` | `webhook` | `webhook` (recommended), `openclaw`, or `file` |\n| `delivery.primary.target` | `\"\"` | Webhook URL, file path, or `direct` |\n| `digest.frequency` | `weekly` | `off` \u002F `daily` \u002F `weekly` \u002F `biweekly` |\n| `digest.day_of_week` | `monday` | Weekly \u002F biweekly digest weekday |\n| `digest.time_local` | `09:00` | Digest local send time |\n| `digest.top_n` | `10` | Max movers shown in human-readable digest |\n| `baseline.cleanup_after_expiry_days` | 90 | Days after market end date to clean up baseline |\n| `profile.timezone` | `Asia\u002FShanghai` | Display timezone |\n| `profile.language` | `\"\"` | System-message locale (`zh` \u002F `en`); empty = automatic detection (env first, timezone fallback) |\n\n### Delivery adapters\n\n- **`webhook`** (recommended) — HTTP POST to external endpoint. Set `target` to webhook URL. Works with Slack, Telegram Bot API, Discord, or any HTTP endpoint. Fully portable across all platforms (OpenClaw, Claude Code, standalone). When paired with `crontab` scheduling driver, delivers notifications with zero LLM cost and zero platform dependency.\n- **`file`** — appends alerts to a local JSONL file. Set `target` to file path. Portable across all platforms.\n- **`openclaw`** (OpenClaw-only) — OpenClaw platform integration. In interactive chat, Agent reply IS the notification; background delivery via `openclaw cron` announce. Not portable to other platforms.\n\nWhen user asks to set up notifications, recommend `webhook` first (portable, zero platform dependency). Explain that `openclaw` works automatically in OpenClaw interactive chat but is not portable.\n\nFor full configuration reference, see `references\u002Fconfig.md`.\n\n## Periodic Report\n\nSignalRadar implements digest reporting. The digest uses the same delivery channel family as HIT alerts, but it compares against the previous digest snapshot instead of the per-run alert baseline.\n\n- Includes both entries that already triggered realtime HIT alerts this period and entries that never crossed the realtime threshold but still changed net-over-period.\n- Human-readable digest groups large multi-market events by event, shows only top movers, and avoids dumping every market into Telegram.\n- Full detail remains available through `digest --output json`.\n- Scheduled digest checks piggyback on normal monitoring runs; SignalRadar does not create a second standalone scheduler just for digest.\n- The first automatic digest after setup\u002Fupdate is bootstrap-only: SignalRadar writes the initial digest snapshot silently and starts user-facing digest delivery from the next report cycle. Use `digest --force` if you want an immediate preview now.\n\n## Local State (What This Skill Writes)\n\n| Path | Purpose | When written |\n|------|---------|--------------|\n| `~\u002F.signalradar\u002Fconfig\u002Fwatchlist.json` | Monitored entries + archived entries | By `add` and `remove` commands |\n| `~\u002F.signalradar\u002Fcache\u002Fbaselines\u002F*.json` | Last-seen probability per market | Every non-dry-run check |\n| `~\u002F.signalradar\u002Fcache\u002Fevents\u002F*.jsonl` | Audit log of all decisions | Every non-dry-run check |\n| `~\u002F.signalradar\u002Fcache\u002Flast_run.json` | Last run timestamp and status | Every non-dry-run check |\n| `~\u002F.signalradar\u002Fcache\u002Fdigest_state.json` | Last digest snapshot and report key | After digest bootstrap or successful digest delivery |\n\n- `--dry-run` fetches and evaluates without writing any state.\n- The human user (not Agent) may hand-edit `~\u002F.signalradar\u002Fconfig\u002Fwatchlist.json` (e.g., to change categories). The system tolerates manual edits. Agent must use CLI commands only — see CR-03.\n- Runtime state lives outside the skill directory under `~\u002F.signalradar\u002F`.\n\n## Scheduling\n\nSignalRadar attempts to auto-enable 10-minute background monitoring after the first successful `add` or `onboard finalize`. The default driver is system `crontab` with `--push` (zero LLM cost); falls back to `openclaw cron` only when crontab is unavailable. **Route gate**: when `delivery.primary.channel == openclaw` + `crontab` driver + no captured reply route, the CLI refuses to arm and returns `route_missing` instead of silently enabling a cron job that cannot push.\n\nOn the first successful `add`, if `profile.language` is still empty, SignalRadar snapshots the detected system-message language into user config so background cron notifications remain stable.\n\nMinimum interval: 5 minutes (prevents overlapping runs).\n\n### Threshold vs Frequency\n\n- **Threshold** controls *sensitivity* — how much a probability must change before an alert fires. Managed per-category or per-entry via `signalradar.py config`.\n- **Frequency** controls *how often* SignalRadar checks markets. Managed globally via `signalradar.py schedule`.\n\nThese are independent: a 5pp threshold with 10-minute frequency checks every 10 minutes and alerts on 5pp+ changes. A 3pp threshold with 30-minute frequency checks less often but is more sensitive when it does.\n\n## Troubleshooting\n\n| Error Code | Cause | Fix |\n|------------|-------|-----|\n| `SR_TIMEOUT` | Polymarket API timeout | Check network; retry after 30s |\n| `SR_SOURCE_UNAVAILABLE` | Cannot reach gamma-api.polymarket.com | Verify DNS and internet access |\n| `SR_VALIDATION_ERROR` | Malformed entry data | Run `python3 scripts\u002Fvalidate_schema.py` |\n| `SR_ROUTE_FAILURE` | Delivery adapter failed | Check delivery config |\n| `SR_CONFIG_CONFLICT` | Contradictory config values | Review config for duplicate keys |\n| `SR_PERMISSION_DENIED` | Insufficient permissions | Check file permissions on config\u002F and cache\u002F |\n\n## AI Agent Instructions\n\n### Agent Default Behavior\n\nUse `--output json` to get structured data, then translate it to user-friendly natural language. Never send raw JSON or status codes to the user.\n\n**run vs run --dry-run**:\n- User explicitly asks to check → `run` (updates baselines)\n- Agent wants to show status but unsure about updating → `run --dry-run` (read-only)\n\n**Network errors**: On `SR_TIMEOUT` or `SR_SOURCE_UNAVAILABLE`, tell user \"Polymarket API temporarily unavailable, please try later.\" Do not auto-retry.\n\n**Settled markets**: When adding settled\u002Fexpired markets, proactively tell user: \"This market is settled. Adding it won't produce new alerts. Still add?\" Let user decide.\n\n**Single-market lookup**: For questions like \"what's the GPT probability now?\", prefer `show \u003Ckeyword-or-number>`. Use `run` only when the user wants a full check of all monitored markets.\n\n### Presenting Results\n\nNEVER output raw status codes (NO_REPLY, HIT, BASELINE, SILENT, ERROR) directly to user. Always translate to natural language.\n\n- **HIT**: Always show market question, probability change (old% → new%), magnitude in pp, and \"baseline updated to X%\". Group by event when multiple markets trigger.\n- **BASELINE**: Tell user: \"First run — baselines recorded for N markets. Run again later to detect changes.\"\n- **NO_REPLY**: Briefly confirm: \"All markets checked. No changes exceeded the threshold.\"\n- **Empty watchlist**: Guide user: \"No markets monitored. Send me a Polymarket URL, or say 'add some' to browse presets.\"\n- **DIGEST**: Show digest title (match frequency: \"Daily\"\u002F\"Weekly\"\u002F\"Biweekly\"), active\u002Fnew\u002Fsettled counts, top movers list, and next report date. For first digest (no previous snapshot), explain \"This is the first report — no prior comparison available.\" If `digest.frequency` is `off`, tell user it's disabled and how to enable it (`config digest.frequency weekly`).\n- **User says \"I never got a digest\"**: Run `digest --dry-run --output json` and check `due`, `due_reason`, `first_report`, `scheduled_local` fields to diagnose.\n\n### Prohibited Actions\n\n- Do not auto-discover or suggest markets to add. Wait for user.\n- Do not create cron jobs outside of `schedule` command.\n- Agent must not manually edit data files (see CR-03).\n- No modes exist. Just run `signalradar.py run`.\n- Do not mention Notion integration (removed in v0.5.0).\n- Casual chat (\"好的\"\u002F\"OK\"\u002F\"没事\") is NOT a command. Do NOT trigger any signalradar operation.\n- Do NOT change delivery channel unless user explicitly asks. You are OpenClaw Bot; `openclaw` channel = your reply to user. See \"Platform Identity\".\n\n### Runtime Output vs Documentation Conflicts\n\nWhen `schedule` or `doctor` output appears to contradict SKILL.md's recommended delivery setup, follow these rules:\n- Trust SKILL.md for *which channel to use* (webhook is recommended for portability)\n- Trust runtime output for *current operational status* of the active channel only\n- Do NOT suggest switching channels based on a status field that belongs to a different channel\n- Example: if delivery is `webhook` and `schedule` shows something about `route_missing` — this is irrelevant to the user's setup, not a problem to fix\n\n### Language Handling\n\n- System messages (HIT notifications, digest text, run status text) follow `profile.language`, supporting `zh` and `en`; empty values use automatic detection (environment first, then timezone fallback when background jobs have no locale context).\n- Market questions always displayed in original English from API. Do not translate.\n\n## References\n\n- `references\u002Fconfig.md` — Full configuration reference\n- `references\u002Fprotocol.md` — Data contract (EntrySpec, SignalEvent, DeliveryEnvelope)\n- `references\u002Foperations.md` — SLO targets, retry policy\n","# SignalRadar\n\n## Platform Identity\n\nYou are OpenClaw Bot. The user is chatting with you via Telegram (or Discord \u002F Feishu). Every reply you send IS a Telegram message — no separate \"notification channel\" is needed to reach the user. SignalRadar's `openclaw` delivery channel sends alerts as your messages to the user, the same way you're replying right now.\n\nTherefore:\n- `openclaw` delivery = your reply to user = Telegram message. No configuration needed, no scripts.\n- Do NOT say \"no Telegram channel\" — you ARE the Telegram channel.\n- `webhook` is the recommended portable push method — HTTP POST to any endpoint (Slack webhook, Telegram Bot API, Discord, etc.), works on any platform.\n- `file` is for local logging or custom consumption.\n\n**Delivery path comparison (technical detail)**:\n- **webhook path (recommended, portable)**: `crontab` → `signalradar.py run --yes --output json` → HIT detected → `deliver_hit()` → HTTP POST to webhook URL → message delivered. Zero platform dependency, zero LLM cost.\n- **openclaw path (OpenClaw-only)**: `openclaw cron` → `signalradar.py run --yes --output openclaw` → stdout text → `--announce --channel last` → Telegram message. Requires OpenClaw platform, has LLM cost.\n\n## Intent Mapping\n\nAfter receiving a user message, pick a command from this table. **When no intent matches, do NOT run any command — just chat normally.**\n\n| 用户意图（中文常见表达） | English intent | Command |\n|------------------------|----------------|---------|\n| \"看看我监控了啥\" \u002F \"我的列表\" \u002F \"在追踪哪些\" | \"list my monitors\" \u002F \"what am I tracking\" | `list` |\n| \"有啥变化吗\" \u002F \"检查一下\" \u002F \"跑一下\" | \"any changes?\" \u002F \"run a check\" | `run` |\n| \"帮我加一下 [URL]\" \u002F \"监控这个链接\" | \"add this market\" \u002F \"monitor this\" | `add \u003Curl>` |\n| \"帮我加几个市场\" \u002F \"想监控但没链接\" | \"add markets\" (no URL) | `add` (no arg) → empty watchlist returns `ONBOARD_NEEDED`, Agent starts `onboard` flow |\n| \"删掉第 N 个\" \u002F \"不监控这个了\" | \"remove #N\" \u002F \"stop monitoring\" | `remove \u003CN>` |\n| \"阈值改成 X\" \u002F \"灵敏度调高\" | \"change threshold\" \u002F \"more sensitive\" | `config threshold.abs_pp \u003CX>` |\n| \"多久检查一次\" \u002F \"改成 30 分钟\" | \"check frequency\" \u002F \"every 30 min\" | `schedule` \u002F `schedule 30` |\n| \"自动监控还在跑吗\" \u002F \"cron 状态\" | \"is auto-monitoring running?\" | `schedule` (view status) |\n| \"现在设置是什么\" \u002F \"阈值多少\" | \"what are current settings?\" | `config` (must check actual value) |\n| \"健康检查\" \u002F \"能用吗\" | \"health check\" \u002F \"is it working?\" | `doctor --output json` |\n| \"周报\" \u002F \"本周总结\" \u002F \"生成 digest\" | \"weekly digest\" \u002F \"summary report\" | `digest` |\n| \"设置推送\" \u002F \"配置通知渠道\" | \"set up notifications\" \u002F \"configure delivery\" | Guide user to provide webhook URL, then `config delivery webhook \u003Curl>` |\n| \"通知改中文\" \u002F \"语言改中文\" | \"switch to Chinese notifications\" | `config profile.language zh` |\n| **\"好的\" \u002F \"没事\" \u002F \"OK\" \u002F \"知道了\"** | **casual chat** | **Do NOT run any command** |\n| **\"那个 GPT 概率多少了\"** | **\"what's the probability of X?\"** | `show \u003Cnumber\\|keyword>` |\n\n## Critical Rules\n\n**CR-01 Multi-market events must report count first**\nIf event has multiple markets (>3), the CLI force-prints count, type summary, and market list before waiting for confirmation; `--yes` cannot skip this. Agent must still explain the count and types before running `add`.\n\n**CR-02 Never auto-add markets**\nUser must explicitly provide a Polymarket URL or choose from presets. Do NOT auto-add.\n\n**CR-03 Agent must not directly edit data files**\nAgent must not edit `~\u002F.signalradar\u002Fcache\u002F`, `~\u002F.signalradar\u002Fconfig\u002Fwatchlist.json`, or baseline files using Write\u002FEdit tools. Use CLI commands only. Normal runs automatically write these — that is expected behavior. (Note: the human user may hand-edit watchlist.json — the system tolerates it. This rule only restricts the Agent.)\n\n**CR-04 No --yes in human conversations**\nWhen interacting with a human user, Agent must NOT use `--yes` flag. The `--yes` flag is for automated\u002FCI pipelines only (smoke tests, cron jobs, prepublish gates). Let built-in confirmation handle user interaction.\n\n**CR-05 Always check actual config values**\nWhen user asks about current settings, ALWAYS run `signalradar.py config` first. Do NOT guess or recall from memory. If a value is missing, report the default and state \"this is the default value\".\n\n**CR-06 Auto-enable monitoring after first add (crontab-first, with route gate)**\nAfter first `add` or `onboard finalize`, background monitoring attempts to auto-enable (10-minute interval). Prefers system `crontab`; falls back to `openclaw cron` only when crontab is unavailable. **Route gate**: when `delivery.primary.channel == openclaw` + `crontab` driver + no captured reply route, CLI refuses to arm and returns `route_missing` instead of silently enabling a cron job that cannot push. Agent must NOT ask \"should I set up cron?\" and must NOT manually create jobs. Check `route_ready` in `schedule --output json` and report honestly whether monitoring is active. Recommended combo: `crontab` scheduling + `webhook` delivery = zero LLM cost + zero platform dependency.\n\n**CR-07 Use CLI to manage settings and schedule**\nUse `signalradar.py config [key] [value]` for settings (threshold, delivery channel, etc.). Use `signalradar.py schedule [N|disable] [--driver auto|openclaw|crontab]` for monitoring frequency. Do NOT hand-edit JSON config files.\n\n**CR-08 Empty watchlist triggers onboarding**\nWhen watchlist is empty and Agent runs `add\u002Frun --output json`, the response will be `ONBOARD_NEEDED`. Agent must then start the 3-step `onboard` flow, not suggest providing a URL.\n\n**CR-09 Onboarding is a 3-step flow + webhook guidance (narrow-bridge principle)**\nIn Bot\u002FAgent mode, new user onboarding goes through the `onboard` subcommand in three steps:\n1. `onboard --step preview --output json` → show preset event list + terminology education (event\u002Fmarket) → ask user \"which to remove?\"\n2. `onboard --step confirm --keep \u003Cuser-selection> --output json` → show sub-market details + terminology (category\u002Fbaseline) → ask \"confirm adding?\"\n3. `onboard --step finalize --output json` → write watchlist + enable auto-monitoring → show completion + next steps\nEach step must wait for user reply before proceeding. Do NOT compress the 3 steps into 1.\n\n**Webhook guidance (after finalize)**: `ONBOARD_COMPLETE` JSON contains `webhook_setup` field. When `webhook_setup.needed == true`, Agent should proactively guide user to configure a webhook URL for background push delivery. Provide Telegram Bot API \u002F Slack \u002F Discord URL examples. After user provides URL, run `config delivery webhook \u003CURL>`.\n\n**CR-10 Background push requires a captured reply route**\nBackground `--push` on the `crontab` path requires a stored reply route (`~\u002F.signalradar\u002Fcache\u002Fopenclaw_reply_route.json`). If missing, do NOT claim background delivery is working. Check `schedule --output json` for `route_ready` status.\n\n**CR-11 Verify actual status before claiming push readiness (channel-aware)**\nBefore telling the user that background push is working, check `schedule --output json` → `delivery_status` field:\n- `\"ready\"` → push is working for the current delivery channel\n- `\"webhook_url_missing\"` → guide user to run `config delivery webhook \u003CURL>`\n- `\"route_missing\"` → only relevant for openclaw channel; if user is on webhook, this field will not appear\n- `\"file_target_missing\"` → guide user to set file target\n\nDo NOT mix diagnostics across channels. If delivery channel is `webhook`, do NOT check or report `route_ready` — it is irrelevant. The `delivery_status` field already accounts for the active channel.\n\n## Known AI Mistakes (DO NOT repeat)\n\nThese mistakes actually occurred in production. Agent must avoid them.\n\n**Error 1: Adding 28 markets without reporting count first**\n- WRONG: User sends Bitcoin URL → Agent runs `add` and adds 28 markets silently\n- CORRECT: Report \"This event has 28 sub-markets (14 upside + 14 downside). Add all or pick?\" → wait for reply\n\n**Error 2: User says \"好的\" → Agent triggers run and outputs NO_REPLY**\n- WRONG: User says \"好的\" → Agent runs `signalradar.py run` → replies \"NO_REPLY\"\n- CORRECT: \"好的\" is casual acknowledgment. Reply normally without running any command.\n\n**Error 3: Using --yes in human conversation**\n- WRONG: `signalradar.py add \u003Curl> --yes` (skips confirmation in human chat)\n- CORRECT: `signalradar.py add \u003Curl>` (let built-in confirmation handle it; CLI force-previews large batches)\n\n**Error 4: Editing watchlist.json with Write\u002FEdit tools**\n- WRONG: Edit `~\u002F.signalradar\u002Fconfig\u002Fwatchlist.json` with Write\u002FEdit tools\n- CORRECT: Use `signalradar.py add`, `remove`, `config` CLI commands\n\n**Error 5: Guessing config values from memory**\n- WRONG: \"The default threshold is 5pp\" (without checking)\n- CORRECT: Run `signalradar.py config threshold.abs_pp` first, then answer with the actual value\n\n**Error 6: Writing compensatory scripts outside the skill**\n- WRONG: Write helper scripts outside the skill, such as `send_alerts_to_telegram.py`, to compensate for missing behavior\n- CORRECT: Keep monitoring, scheduling, and delivery inside the skill\u002Fruntime contract. If a gap is real, fix the skill itself instead of inventing side scripts\n\n**Error 7: Treating clawhub update as a fresh install without checking data**\n- WRONG: After `clawhub update`, assume the user lost all data and treat the install as fresh without checking the runtime data directory\n- CORRECT: Read the actual user data directory first (`~\u002F.signalradar\u002F` or `SIGNALRADAR_DATA_DIR`) and only then decide whether migration or recovery is needed\n\n**Error 8: Not knowing you are OpenClaw Bot**\n- WRONG: \"SignalRadar doesn't have Telegram support\" → switch to `file` → write custom send script\n- CORRECT: You ARE OpenClaw Bot. Your reply IS a Telegram message. `openclaw` delivery = your reply to user. Keep defaults. No extra channel or script needed.\n\n**Error 9: Compressing 3-step onboarding into one execution**\n- WRONG: Run all 3 onboard steps in sequence without showing the user any results\n- CORRECT: Show each step's output to the user and wait for their reply before proceeding\n\n**Error 10: Claiming push readiness without checking route**\n- WRONG: \"Background push is all set!\" (without checking route_ready)\n- CORRECT: Check `schedule --output json` → if `route_ready: false`, tell the user delivery is not yet armed\n\n**Error 11: Claiming push readiness without checking webhook URL**\n- WRONG: \"Background monitoring is active and alerts will be delivered!\" (when webhook URL is empty)\n- CORRECT: Check `doctor --output json` → if `webhook_url_configured: false`, guide user to set up webhook URL\n\n## Quick Start\n\n```bash\n# Install (OpenClaw users)\nclawhub install signalradar\n\n# Or clone directly\ngit clone https:\u002F\u002Fgithub.com\u002Fvahnxu\u002Fsignalradar.git && cd signalradar\n\n# 1. Health check\npython3 scripts\u002Fsignalradar.py doctor --output json\n\n# 2. Add markets (guided setup or by URL)\npython3 scripts\u002Fsignalradar.py add\npython3 scripts\u002Fsignalradar.py add https:\u002F\u002Fpolymarket.com\u002Fevent\u002Fyour-market-here\n\n# 3. Monitoring auto-starts after first add (every 10 min)\n\n# 4. Check schedule status\npython3 scripts\u002Fsignalradar.py schedule\n\n# 5. Manual check (dry-run)\npython3 scripts\u002Fsignalradar.py run --dry-run --output json\n```\n\n## Common Tasks\n\n### Add a market\n\n```bash\npython3 scripts\u002Fsignalradar.py add                              # Guided setup\npython3 scripts\u002Fsignalradar.py add \u003Cpolymarket-event-url> [--category \u003Cname>]\n```\n\nFlow: parse URL → query Polymarket API → show market question + current probability → user confirms → record baseline.\n\n- If the event has multiple markets (e.g., different date brackets), the CLI shows all markets with their current probabilities before adding. For large events (>3 markets), it also shows a type summary and forces interactive confirmation even if `--yes` was passed.\n- If some markets from the event are already monitored, only new ones are added.\n- If the market is settled\u002Fexpired, a warning is shown but the user can still add it.\n- Category defaults to `default` if not specified. User is not prompted for category.\n- On first-ever add (empty watchlist), a brief explanation of the baseline concept is shown.\n\n### List monitors\n\n```bash\npython3 scripts\u002Fsignalradar.py list [--category \u003Cname>] [--archived]\n```\n\nShows all entries grouped by category with global sequential numbering. Each entry shows: number, question, last-known probability (from local baseline cache), end date.\n\n`--archived` shows previously removed entries (preserved for export).\n\n### Show one monitored market\n\n```bash\npython3 scripts\u002Fsignalradar.py show \u003Cnumber-or-keyword> [--output json]\n```\n\nLooks up one or more monitored markets by list number or keyword, fetches current probability, and returns a read-only snapshot without updating baselines.\n\n### Remove a monitor\n\n```bash\npython3 scripts\u002Fsignalradar.py remove \u003Cnumber>\n```\n\nShows the entry name and asks for confirmation before removing. Removed entries are archived (moved to `archived` array in `~\u002F.signalradar\u002Fconfig\u002Fwatchlist.json`) with full history preserved.\n\n### Run a check\n\n```bash\npython3 scripts\u002Fsignalradar.py run [--dry-run] [--output json]\n```\n\nChecks all active entries against Polymarket API. If probability change exceeds threshold, sends alert via configured delivery channel.\n\n- Settled\u002Fexpired entries are skipped during run, with a summary at the end: \"N entries settled, consider removing.\"\n- When multiple markets trigger in the same run, they are listed in the same notification grouped by event.\n- After a HIT is pushed, the baseline updates to the new probability value. The notification text includes \"baseline updated to XX%.\"\n- `--dry-run` fetches and evaluates but writes no state.\n- `--output openclaw` is reserved for platform background runs. It emits `HEARTBEAT_OK` on quiet checks, user-ready HIT text on realtime alerts, and digest text when a scheduled digest is due and the primary delivery channel is `openclaw`.\n\n### Manage schedule\n\n```bash\npython3 scripts\u002Fsignalradar.py schedule                        # Show current status\npython3 scripts\u002Fsignalradar.py schedule 10                     # Auto driver (crontab-first)\npython3 scripts\u002Fsignalradar.py schedule 10 --driver openclaw   # Force openclaw cron\npython3 scripts\u002Fsignalradar.py schedule 10 --driver crontab    # Force system crontab\npython3 scripts\u002Fsignalradar.py schedule disable                # Disable auto-monitoring\n```\n\n### Generate or preview digest\n\n```bash\npython3 scripts\u002Fsignalradar.py digest\npython3 scripts\u002Fsignalradar.py digest --dry-run\npython3 scripts\u002Fsignalradar.py digest --force\npython3 scripts\u002Fsignalradar.py digest --output json\npython3 scripts\u002Fsignalradar.py digest --output openclaw --force\n```\n\n`digest` compares the current monitored state with the previous digest snapshot, not with per-run baselines.\n\n### View or change config\n\n```bash\npython3 scripts\u002Fsignalradar.py config                          # Show all settings\npython3 scripts\u002Fsignalradar.py config check_interval_minutes   # Show one setting\npython3 scripts\u002Fsignalradar.py config threshold.abs_pp 8.0     # Change threshold\npython3 scripts\u002Fsignalradar.py config delivery webhook \u003Curl>   # Shortcut: set webhook channel + target in one command\n```\n\n### Health check\n\n```bash\npython3 scripts\u002Fsignalradar.py doctor --output json\n```\n\nReturns `{\"status\": \"HEALTHY\"}` if Python version and network connectivity are OK. Also checks `webhook_url_configured` status.\n\n## Understanding Results\n\n| Status | Meaning | Action |\n|--------|---------|--------|\n| `BASELINE` | First observation for an entry | Baseline recorded; no alert sent |\n| `HIT` | Change exceeds threshold | Alert sent via delivery channel; baseline updated |\n| `NO_REPLY` | No entries crossed threshold | Nothing to report |\n| `SILENT` | Change below threshold | No alert sent |\n\n### HIT output example\n\n```json\n{\n  \"status\": \"HIT\",\n  \"request_id\": \"9f98e47e-6e0e-4563-b7c8-87a3b19e97af\",\n  \"hits\": [\n    {\n      \"entry_id\": \"polymarket:12345:gpt5-release-june:evt_67890\",\n      \"slug\": \"gpt5-release-june\",\n      \"question\": \"GPT-5 released by June 30, 2026?\",\n      \"current\": 0.41,\n      \"baseline\": 0.32,\n      \"abs_pp\": 9.0,\n      \"confidence\": \"high\",\n      \"reason\": \"abs_pp 9.0 >= threshold 5.0\"\n    }\n  ],\n  \"ts\": \"2026-03-02T08:00:00Z\"\n}\n```\n\nWhen presenting a HIT to the user:\n> **GPT-5 released by June 30, 2026?**: 32% → 41% (+9pp), threshold 5pp crossed. Baseline updated to 41%.\n\n### Same-event grouped HIT\n\nWhen multiple markets from the same event trigger:\n> **Bitcoin price (March 31)** — 3 markets crossed threshold:\n> - BTC > $100k: 45% → 58% (+13pp), baseline updated to 58%\n> - BTC > $110k: 23% → 35% (+12pp), baseline updated to 35%\n> - BTC > $120k:  8% → 19% (+11pp), baseline updated to 19%\n\n### Empty watchlist\n\nIf there are no entries, run returns:\n```json\n{\"status\": \"NO_REPLY\", \"message\": \"Watchlist is empty. Use 'signalradar.py add \u003Curl>' to add entries.\"}\n```\n\n## Configuration (Optional)\n\nAll settings have sensible defaults. Runtime configuration lives at `~\u002F.signalradar\u002Fconfig\u002Fsignalradar_config.json`.\n\n| Setting | Default | Description |\n|---------|---------|-------------|\n| `threshold.abs_pp` | 5.0 | Global threshold in percentage points (min: 0.1) |\n| `threshold.per_category_abs_pp` | `{}` | Per-category override, e.g. `{\"AI\": 4.0}` |\n| `threshold.per_entry_abs_pp` | `{}` | Per-entry override, key = entry_id |\n| `delivery.primary.channel` | `webhook` | `webhook` (recommended), `openclaw`, or `file` |\n| `delivery.primary.target` | `\"\"` | Webhook URL, file path, or `direct` |\n| `digest.frequency` | `weekly` | `off` \u002F `daily` \u002F `weekly` \u002F `biweekly` |\n| `digest.day_of_week` | `monday` | Weekly \u002F biweekly digest weekday |\n| `digest.time_local` | `09:00` | Digest local send time |\n| `digest.top_n` | `10` | Max movers shown in human-readable digest |\n| `baseline.cleanup_after_expiry_days` | 90 | Days after market end date to clean up baseline |\n| `profile.timezone` | `Asia\u002FShanghai` | Display timezone |\n| `profile.language` | `\"\"` | System-message locale (`zh` \u002F `en`); empty = automatic detection (env first, timezone fallback) |\n\n### Delivery adapters\n\n- **`webhook`** (recommended) — HTTP POST to external endpoint. Set `target` to webhook URL. Works with Slack, Telegram Bot API, Discord, or any HTTP endpoint. Fully portable across all platforms (OpenClaw, Claude Code, standalone). When paired with `crontab` scheduling driver, delivers notifications with zero LLM cost and zero platform dependency.\n- **`file`** — appends alerts to a local JSONL file. Set `target` to file path. Portable across all platforms.\n- **`openclaw`** (OpenClaw-only) — OpenClaw platform integration. In interactive chat, Agent reply IS the notification; background delivery via `openclaw cron` announce. Not portable to other platforms.\n\nWhen user asks to set up notifications, recommend `webhook` first (portable, zero platform dependency). Explain that `openclaw` works automatically in OpenClaw interactive chat but is not portable.\n\nFor full configuration reference, see `references\u002Fconfig.md`.\n\n## Periodic Report\n\nSignalRadar implements digest reporting. The digest uses the same delivery channel family as HIT alerts, but it compares against the previous digest snapshot instead of the per-run alert baseline.\n\n- Includes both entries that already triggered realtime HIT alerts this period and entries that never crossed the realtime threshold but still changed net-over-period.\n- Human-readable digest groups large multi-market events by event, shows only top movers, and avoids dumping every market into Telegram.\n- Full detail remains available through `digest --output json`.\n- Scheduled digest checks piggyback on normal monitoring runs; SignalRadar does not create a second standalone scheduler just for digest.\n- The first automatic digest after setup\u002Fupdate is bootstrap-only: SignalRadar writes the initial digest snapshot silently and starts user-facing digest delivery from the next report cycle. Use `digest --force` if you want an immediate preview now.\n\n## Local State (What This Skill Writes)\n\n| Path | Purpose | When written |\n|------|---------|--------------|\n| `~\u002F.signalradar\u002Fconfig\u002Fwatchlist.json` | Monitored entries + archived entries | By `add` and `remove` commands |\n| `~\u002F.signalradar\u002Fcache\u002Fbaselines\u002F*.json` | Last-seen probability per market | Every non-dry-run check |\n| `~\u002F.signalradar\u002Fcache\u002Fevents\u002F*.jsonl` | Audit log of all decisions | Every non-dry-run check |\n| `~\u002F.signalradar\u002Fcache\u002Flast_run.json` | Last run timestamp and status | Every non-dry-run check |\n| `~\u002F.signalradar\u002Fcache\u002Fdigest_state.json` | Last digest snapshot and report key | After digest bootstrap or successful digest delivery |\n\n- `--dry-run` fetches and evaluates without writing any state.\n- The human user (not Agent) may hand-edit `~\u002F.signalradar\u002Fconfig\u002Fwatchlist.json` (e.g., to change categories). The system tolerates manual edits. Agent must use CLI commands only — see CR-03.\n- Runtime state lives outside the skill directory under `~\u002F.signalradar\u002F`.\n\n## Scheduling\n\nSignalRadar attempts to auto-enable 10-minute background monitoring after the first successful `add` or `onboard finalize`. The default driver is system `crontab` with `--push` (zero LLM cost); falls back to `openclaw cron` only when crontab is unavailable. **Route gate**: when `delivery.primary.channel == openclaw` + `crontab` driver + no captured reply route, the CLI refuses to arm and returns `route_missing` instead of silently enabling a cron job that cannot push.\n\nOn the first successful `add`, if `profile.language` is still empty, SignalRadar snapshots the detected system-message language into user config so background cron notifications remain stable.\n\nMinimum interval: 5 minutes (prevents overlapping runs).\n\n### Threshold vs Frequency\n\n- **Threshold** controls *sensitivity* — how much a probability must change before an alert fires. Managed per-category or per-entry via `signalradar.py config`.\n- **Frequency** controls *how often* SignalRadar checks markets. Managed globally via `signalradar.py schedule`.\n\nThese are independent: a 5pp threshold with 10-minute frequency checks every 10 minutes and alerts on 5pp+ changes. A 3pp threshold with 30-minute frequency checks less often but is more sensitive when it does.\n\n## Troubleshooting\n\n| Error Code | Cause | Fix |\n|------------|-------|-----|\n| `SR_TIMEOUT` | Polymarket API timeout | Check network; retry after 30s |\n| `SR_SOURCE_UNAVAILABLE` | Cannot reach gamma-api.polymarket.com | Verify DNS and internet access |\n| `SR_VALIDATION_ERROR` | Malformed entry data | Run `python3 scripts\u002Fvalidate_schema.py` |\n| `SR_ROUTE_FAILURE` | Delivery adapter failed | Check delivery config |\n| `SR_CONFIG_CONFLICT` | Contradictory config values | Review config for duplicate keys |\n| `SR_PERMISSION_DENIED` | Insufficient permissions | Check file permissions on config\u002F and cache\u002F |\n\n## AI Agent Instructions\n\n### Agent Default Behavior\n\nUse `--output json` to get structured data, then translate it to user-friendly natural language. Never send raw JSON or status codes to the user.\n\n**run vs run --dry-run**:\n- User explicitly asks to check → `run` (updates baselines)\n- Agent wants to show status but unsure about updating → `run --dry-run` (read-only)\n\n**Network errors**: On `SR_TIMEOUT` or `SR_SOURCE_UNAVAILABLE`, tell user \"Polymarket API temporarily unavailable, please try later.\" Do not auto-retry.\n\n**Settled markets**: When adding settled\u002Fexpired markets, proactively tell user: \"This market is settled. Adding it won't produce new alerts. Still add?\" Let user decide.\n\n**Single-market lookup**: For questions like \"what's the GPT probability now?\", prefer `show \u003Ckeyword-or-number>`. Use `run` only when the user wants a full check of all monitored markets.\n\n### Presenting Results\n\nNEVER output raw status codes (NO_REPLY, HIT, BASELINE, SILENT, ERROR) directly to user. Always translate to natural language.\n\n- **HIT**: Always show market question, probability change (old% → new%), magnitude in pp, and \"baseline updated to X%\". Group by event when multiple markets trigger.\n- **BASELINE**: Tell user: \"First run — baselines recorded for N markets. Run again later to detect changes.\"\n- **NO_REPLY**: Briefly confirm: \"All markets checked. No changes exceeded the threshold.\"\n- **Empty watchlist**: Guide user: \"No markets monitored. Send me a Polymarket URL, or say 'add some' to browse presets.\"\n- **DIGEST**: Show digest title (match frequency: \"Daily\"\u002F\"Weekly\"\u002F\"Biweekly\"), active\u002Fnew\u002Fsettled counts, top movers list, and next report date. For first digest (no previous snapshot), explain \"This is the first report — no prior comparison available.\" If `digest.frequency` is `off`, tell user it's disabled and how to enable it (`config digest.frequency weekly`).\n- **User says \"I never got a digest\"**: Run `digest --dry-run --output json` and check `due`, `due_reason`, `first_report`, `scheduled_local` fields to diagnose.\n\n### Prohibited Actions\n\n- Do not auto-discover or suggest markets to add. Wait for user.\n- Do not create cron jobs outside of `schedule` command.\n- Agent must not manually edit data files (see CR-03).\n- No modes exist. Just run `signalradar.py run`.\n- Do not mention Notion integration (removed in v0.5.0).\n- Casual chat (\"好的\"\u002F\"OK\"\u002F\"没事\") is NOT a command. Do NOT trigger any signalradar operation.\n- Do NOT change delivery channel unless user explicitly asks. You are OpenClaw Bot; `openclaw` channel = your reply to user. See \"Platform Identity\".\n\n### Runtime Output vs Documentation Conflicts\n\nWhen `schedule` or `doctor` output appears to contradict SKILL.md's recommended delivery setup, follow these rules:\n- Trust SKILL.md for *which channel to use* (webhook is recommended for portability)\n- Trust runtime output for *current operational status* of the active channel only\n- Do NOT suggest switching channels based on a status field that belongs to a different channel\n- Example: if delivery is `webhook` and `schedule` shows something about `route_missing` — this is irrelevant to the user's setup, not a problem to fix\n\n### Language Handling\n\n- System messages (HIT notifications, digest text, run status text) follow `profile.language`, supporting `zh` and `en`; empty values use automatic detection (environment first, then timezone fallback when background jobs have no locale context).\n- Market questions always displayed in original English from API. Do not translate.\n\n## References\n\n- `references\u002Fconfig.md` — Full configuration reference\n- `references\u002Fprotocol.md` — Data contract (EntrySpec, SignalEvent, DeliveryEnvelope)\n- `references\u002Foperations.md` — SLO targets, retry policy\n",{"name":5,"license":15,"metadata":24,"description":7,"allowed-tools":46,"compatibility":47},{"author":25,"version":26,"openclaw":27},"vahnxu","1.0.8",{"emoji":28,"envHelp":29,"requires":39,"primaryEnv":45},"📡",{"SIGNALRADAR_CONFIG":30,"SIGNALRADAR_DATA_DIR":33,"SIGNALRADAR_WORKSPACE_ROOT":36},{"howToGet":31,"required":20,"description":32},"Set to absolute path of your config JSON, e.g. export SIGNALRADAR_CONFIG=\u002Ftmp\u002Fsignalradar\u002Fconfig\u002Fsignalradar_config.json","Override config file path. Defaults to ~\u002F.signalradar\u002Fconfig\u002Fsignalradar_config.json.",{"howToGet":34,"required":20,"description":35},"Set to a writable directory, e.g. export SIGNALRADAR_DATA_DIR=\u002Ftmp\u002Fsignalradar","Override the user data directory. Defaults to ~\u002F.signalradar.",{"howToGet":37,"required":20,"description":38},"Set to the absolute path of your workspace root, e.g. export SIGNALRADAR_WORKSPACE_ROOT=\u002Fpath\u002Fto\u002Fworkspace","Override workspace root directory. Auto-detected from script location if not set.",{"env":40,"pip":41,"bins":42},[],[],[43,44],"python3","crontab","","Bash(python3:*)","Python 3.9+, network access to gamma-api.polymarket.com. No pip dependencies (stdlib only).","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fs\u002Fsignalradar",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill signalradar",{"tool":63,"command":64},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill signalradar",{"tool":66,"command":67},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill signalradar","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fsignalradar\u002FSKILL.md",true,[],[72,79,86,93,100,107],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]