A 0-token jobs + monitoring framework for OpenClaw: run long-running read tasks via scripts, checkpoint/resume safely, and send periodic progress + immediate alerts to Telegram. Write jobs are blocked by default and must be explicitly approved and verified.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install ops-framework或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install ops-framework⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/ops-framework/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: ops-framework description: >- A 0-token jobs + monitoring framework for OpenClaw: run long-running read tasks via scripts, checkpoint/resume safely, and send periodic progress + immediate alerts to Telegram. Write jobs are blocked by default and must be explicitly approved and verified. version: 0.1.0 author: Zjianru license: MIT compatibility: >- Requires Python 3.10+ on the gateway host. Uses openclaw message send when available; otherwise falls back to Telegram HTTP API using the bot token in openclaw.json. ---
目标:把“长任务执行 / 断点续跑 / 进度汇报 / 异常告警”做成 0-token 的可复用能力。
这套技能由两部分组成:
ops-monitor.py:一个纯本地脚本,负责跑 status / 检测卡住 / 发送 Telegram 快报ops-jobs.json:一个声明式 job 配置(包含 kind/risk/命令/策略)> 推荐作为“外挂”存在:长任务尽量用脚本跑,避免让模型持续盯进度烧 token。
ACTION REQUIRED / ALERT or fail.1) Copy files to your OpenClaw host (suggested layout):
~/.openclaw/net/tools/ops-monitor.py~/.openclaw/net/config/ops-jobs.json~/.openclaw/net/state/ops-monitor.json (auto-created)You can also run the script from any directory as long as OPENCLAW_HOME points to your OpenClaw state dir (default ~/.openclaw).
2) Start from the example config:
ops-jobs.example.json3) Validate:
python3 ops-monitor.py validate-config --config-file ~/.openclaw/net/config/ops-jobs.json
python3 ops-monitor.py selftest
4) Run one monitoring tick (prints only; does not send):
python3 ops-monitor.py tick --print-only
5) Run periodic ticks via your OS scheduler (launchd/systemd/cron). The script is designed to be called frequently; it decides whether to report based on policy and state.
kind is one of:
long_running_readone_shot_readone_shot_write (never auto-executed by ops-monitor)risk is one of:
read_onlywrite_localwrite_externalRules (MVP):
long_running_read may auto-resume only when risk=read_only and policy.autoResume=true.one_shot_read may run explicitly or via queue (read-only only).one_shot_write is always blocked from auto-run; it exists as a declarative “approval + verification chain” placeholder.Your commands.status must print JSON to stdout, with at least:
running (boolean)completed (boolean)Recommended:
pid (number)stopReason (string)progress (object)progressKey (string) — stable key used for stall detectionlevel (ok|warn|alert)message (string)# Validate config
python3 ops-monitor.py validate-config --config-file ~/.openclaw/net/config/ops-jobs.json
# Print current statuses (no Telegram)
python3 ops-monitor.py status --config-file ~/.openclaw/net/config/ops-jobs.json
# One monitoring tick
python3 ops-monitor.py tick --config-file ~/.openclaw/net/config/ops-jobs.json
# Explicitly start/stop a long job
python3 ops-monitor.py start <job_id> --config-file ~/.openclaw/net/config/ops-jobs.json
python3 ops-monitor.py stop <job_id> --config-file ~/.openclaw/net/config/ops-jobs.json
# Run one one_shot_read job explicitly
python3 ops-monitor.py run <job_id> --config-file ~/.openclaw/net/config/ops-jobs.json
OPS_FRAMEWORK.md安装 Ops Framework 后,可以对 AI 说这些话来触发它
Send a Slack message to the #engineering channel about the deployment
Formats and sends the message with relevant context, tagging the right people
Summarize all unread messages in my inbox from today
Reads messages across connected channels and returns a prioritized summary
Draft a reply to this customer complaint and send it for review
Writes an empathetic, professional response and routes it to the approval queue
将技能文件夹放到 ~/.claude/skills/ops-framework/ 目录(个人级,所有项目可用),或 .claude/skills/ops-framework/(项目级)。重启 AI 客户端后,用 /ops-framework 主动调用,或让 AI 根据上下文自动发现并使用。
Ops Framework 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Ops Framework 可免费安装使用。请查阅仓库了解许可证信息。
A 0-token jobs + monitoring framework for OpenClaw: run long-running read tasks via scripts, checkpoint/resume safely, and send periodic progress + immediate alerts to Telegram. Write jobs are blocked by default and must be explicitly approved and verified.
Ops Framework 属于「Communication」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。