> 配合Calendar定时触发,实现主动轮询+变化提醒。Skill提供检查逻辑,Calendar负责定时调度。
Calendar定时触发 → Agent读取日程工单 → 调用本Skill脚本 → 检查是否有变化 → 有变化通知用户 / 无变化静默
用户说:帮我盯着这个网页,有变化提醒我
python scripts/web_check.py --input '{"url": "https://example.com/news", "name": "news_page", "check_hash": true, "check_keywords": ["新品发布", "更新"]}'
首次运行:记录页面指纹,返回"已建立监控基线"
后续运行:对比指纹,有变化返回变更详情,无变化返回"无变化"
用户说:帮我监控这个API,挂了提醒我
python scripts/api_check.py --input '{"url": "https://api.example.com/health", "method": "GET", "expected_status": 200, "expected_field": "status", "expected_value": "ok"}'
用户说:当XX条件满足时提醒我
python scripts/condition_check.py --input '{"name": "price_monitor", "data_source": "url", "url": "https://api.example.com/price", "field": "price", "operator": ">", "threshold": 100}'
支持运算符:> / < / >= / <= / == / != / contains / not_contains
用户说:帮我设置定时监控
python scripts/scheduler.py --input '{"name": "news_monitor", "interval": "HOURLY", "script": "web_check", "params": {"url": "https://example.com/news", "name": "news_page"}}'
输出Calendar日程创建指令,Agent据此创建定时任务。
检查结果和基线数据存储在 monitor_state/ 目录下:
共 1 个版本