oc-condition-monitor

Periodically check web page updates, API changes, or custom conditions and trigger alerts when conditions are met. Can be paired with calendar scheduling to enable proactive polling alerts. Includes four scripts for web-change detection, interface/status checks, condition evaluation, and scheduling configuration to cover monitoring scenarios.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "oc-condition-monitor" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-96b183871d13e05d7042249611a45c4ef82890b4f98f53c6deea46e00831d1ef. Verify the upstream source and version against https://skillhub.cn/skills/user_f28fdad8/oc-condition-monitor before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Periodically check web page updates, API changes, or custom conditions and trigger alerts when conditions are met. Can be paired with calendar scheduling to enable proactive polling alerts. Includes four scripts for web-change detection, interface/status checks, condition evaluation, and scheduling configuration to cover monitoring scenarios.

0 Downloads

Introduction source: third_party · user_f28fdad8 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: 条件监控提醒器
description: 定时检查网页更新/API变化/自定义条件,满足时触发提醒。配合Calendar定时触发,实现主动轮询提醒。网页变化检测/接口状态检查/条件判断/调度配置,4个脚本覆盖监控全场景。
version: "1.0.0"
updated_at: "2026-06-03"
category: ["监控工具", "自动化"]
tags: ["监控", "轮询", "提醒", "定时检查", "网页变化"]
trigger: ["监控提醒", "定时检查", "网页变化检测", "条件监控", "轮询通知"]

条件监控提醒器

配合Calendar定时触发,实现主动轮询+变化提醒。Skill提供检查逻辑,Calendar负责定时调度。

核心能力

  1. 网页变化检测 — 记录页面指纹,对比发现变化时触发提醒
  2. 接口状态检查 — 检查API是否正常、返回值是否变化
  3. 条件判断 — 自定义条件表达式,满足时触发提醒
  4. 调度配置生成 — 一键生成Calendar日程配置,自动设定定时触发

工作原理

Calendar定时触发 → Agent读取日程工单 → 调用本Skill脚本 → 检查是否有变化 → 有变化通知用户 / 无变化静默

快速开始

流程1:监控网页变化

用户说:帮我盯着这个网页,有变化提醒我

python scripts/web_check.py --input '{"url": "https://example.com/news", "name": "news_page", "check_hash": true, "check_keywords": ["新品发布", "更新"]}'

首次运行:记录页面指纹,返回"已建立监控基线" 后续运行:对比指纹,有变化返回变更详情,无变化返回"无变化"

流程2:检查接口状态

用户说:帮我监控这个API,挂了提醒我

python scripts/api_check.py --input '{"url": "https://api.example.com/health", "method": "GET", "expected_status": 200, "expected_field": "status", "expected_value": "ok"}'

流程3:条件判断

用户说:当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

流程4:生成调度配置

用户说:帮我设置定时监控

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/ 目录下:

  • {name}_hash.json — 网页指纹基线
  • {name}_last.json — 上次检查结果
  • {name}_history.json — 历史变化记录

脚本说明

scripts/web_check.py

  • 输入:url + name + check_hash + check_keywords
  • 输出:变化状态 + 变更详情(如有)
  • 逻辑:抓取页面 → 计算指纹 → 对比基线 → 输出结果

scripts/api_check.py

  • 输入:url + method + expected_status + expected_field + expected_value
  • 输出:接口状态 + 异常信息(如有)
  • 逻辑:请求接口 → 校验状态码/返回值 → 输出结果

scripts/condition_check.py

  • 输入:name + data_source + field + operator + threshold
  • 输出:条件是否满足 + 当前值
  • 逻辑:获取数据 → 判断条件 → 输出结果

scripts/scheduler.py

  • 输入:name + interval + script + params
  • 输出:Calendar日程创建配置(JSON)
  • 逻辑:生成日程工单描述,Agent据此创建Calendar

设计原则

  1. 有状态检查 — 记录历史基线,能检测变化
  2. 静默优先 — 无变化不输出,不干扰用户
  3. 配合Calendar — Skill只负责检查,定时靠外部调度
  4. 纯标准库 — 零安装
  5. JSON标准化 — Agent好对接

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 提供网页变化检测、API状态检查、条件判断和调度配置生成四大核心能力
  • 配合Calendar实现主动轮询提醒,解决用户监控需求
Trigger Precision78/100

Areas to improve

  • 触发词覆盖不全 Reported severity: Minor

    缺少部分常见变体如'轮询监控'、'状态检查'等

    Recommendation: 补充更多触发词变体以提升触发覆盖率

Highlights

  • 触发词边界清晰,核心场景覆盖完整
Structure and Standards88/100

Highlights

  • 结构完整,包含工作原理、快速开始、脚本说明等章节
  • 提供端到端示例,frontmatter完整规范
Execution Reliability68/100

Areas to improve

  • 异常处理机制缺失 Reported severity: Major

    未明确说明网络超时、JSON解析失败等主要异常的处理方式

    Recommendation: 在脚本说明中补充异常处理机制,确保执行可靠性

Highlights

  • 脚本来源明确,参数定义清晰,JSON标准化便于对接
Evidence Verifiability (mean of the first four)77/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • api.example.com
  • example.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.