Master OpenClaw's timing systems. Use for scheduling reliable reminders, setting up periodic maintenance (janitor jobs), and understanding when to use Cron v...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install cron-mastery或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install cron-mastery⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/cron-mastery/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: cron-mastery description: Master OpenClaw's timing systems. Use for scheduling reliable reminders, setting up periodic maintenance (janitor jobs), and understanding when to use Cron vs Heartbeat for time-sensitive tasks. ---
Rule #1: Heartbeats drift. Cron is precise.
This skill provides the definitive guide for managing time in OpenClaw 2026.2.15+. It solves the "I missed my reminder" problem by enforcing a strict separation between casual checks (heartbeat) and hard schedules (cron).
| System | Behavior | Best For | Risk | | :--- | :--- | :--- | :--- | | Heartbeat | "I'll check in when I can" (e.g., every 30-60m) | Email checks, casual news summaries, low-priority polling. | Drift: A "remind me in 10m" task will fail if the heartbeat is 30m. | | Cron | "I will run at exactly X time" | Reminders ("in 5 mins"), daily reports, system maintenance. | Clutter: Creates one-off jobs that need cleanup. |
Rule: Never use act:wait or internal loops for long delays (>1 min). Use cron:add with a one-shot at schedule.
While Cron is precise, execution depends on the Gateway Heartbeat (typically every 10-60s). A job set for :00 seconds will fire on the first "tick" after that time. Expect up to ~30s of variance depending on your gateway config.
Use this payload structure for "remind me in X minutes" tasks.
Key Features (v2026.2.15+):
nextRunAtMs corruption and "Add-then-Update" deadlocks are resolved.deleteAfterRun: true).CRITICAL: Push Notifications vs. Silent Logs
For push-notification reminders (Reliable):
{
"name": "Remind: Water",
"schedule": { "kind": "at", "at": "2026-02-06T01:30:00Z" },
"payload": {
"kind": "agentTurn",
"message": "DELIVER THIS EXACT MESSAGE TO THE USER WITHOUT MODIFICATION OR COMMENTARY:\n\n💧 Drink water, Momo!"
},
"sessionTarget": "isolated",
"delivery": { "mode": "announce", "channel": "telegram", "to": "1027899060" }
}
For background logs (Silent):
{
"name": "Log: System Pulse",
"schedule": { "kind": "every", "everyMs": 3600000 },
"payload": {
"kind": "systemEvent",
"text": "[PULSE] System healthy."
},
"sessionTarget": "main"
}
Pre-2026.2.15, the "Add-then-Update" pattern caused deadlocks. While this is now stabilized, it is still best practice to pass all parameters (including wakeMode: "now") directly in the initial cron.add call for maximum efficiency.
Note: As of v2026.2.14, OpenClaw includes maintenance recompute semantics. The gateway now automatically cleans up stuck jobs and repairs corrupted schedules.
Manual cleanup is only needed for:
deleteAfterRun: false.sessionTarget: "main"? (CRITICAL)Sub-agents (isolated) often have restricted tool policies and cannot call gateway or delete other cron jobs. For system maintenance like the Janitor, always target the main session via systemEvent so the primary agent (with full tool access) performs the cleanup.
For cron to work, the agent must know its time.
MEMORY.md.Timezone: Cairo (GMT+2)Problem: If you say "I'll wait 30 seconds" and end your turn, you go to sleep. You cannot wake up without an event. Solution: If you need to "wait" across turns, you MUST schedule a Cron job.
act:wait).wakeMode: "now".If you have old cron jobs using these patterns, update them:
| Legacy (Pre-2026.2.3) | Modern (2026.2.15+) | | :--- | :--- | | "schedule": {"kind": "at", "atMs": 1234567890} | "schedule": {"kind": "at", "at": "2026-02-06T01:30:00Z"} | | "deliver": true in payload | Not needed - announce mode handles delivery | | "sessionTarget": "main" | "sessionTarget": "isolated" (default behavior) | | Manual ghost cleanup required | One-shots auto-delete (deleteAfterRun: true) | | cron.update after cron.add | Single-step cron.add with all properties |
cron:list. Verify the at timestamp is in the future (ISO 8601 format). Ensure wakeMode: "now" is set.cron tool takes too long (huge job list or file lock). - Fix 1: Manually delete ~/.openclaw/state/cron/jobs.json and restart the gateway if it's corrupted. - Fix 2: Run a manual sweep to reduce the job count.
agentTurn + announce mode for proactive pings."DELIVER THIS EXACT MESSAGE TO THE USER WITHOUT MODIFICATION OR COMMENTARY:\n\n💧 Your message here"安装 Cron Mastery 后,可以对 AI 说这些话来触发它
Help me get started with Cron Mastery
Explains what Cron Mastery does, walks through the setup, and runs a quick demo based on your current project
Use Cron Mastery to master OpenClaw's timing systems
Invokes Cron Mastery with the right parameters and returns the result directly in the conversation
What can I do with Cron Mastery in my developer & devops workflow?
Lists the top use cases for Cron Mastery, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/cron-mastery/ 目录(个人级,所有项目可用),或 .claude/skills/cron-mastery/(项目级)。重启 AI 客户端后,用 /cron-mastery 主动调用,或让 AI 根据上下文自动发现并使用。
Cron Mastery 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Cron Mastery 可免费安装使用。请查阅仓库了解许可证信息。
Master OpenClaw's timing systems. Use for scheduling reliable reminders, setting up periodic maintenance (janitor jobs), and understanding when to use Cron v...
Cron Mastery 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my developer & devops tasks using Cron Mastery
Identifies repetitive steps in your workflow and sets up Cron Mastery to handle them automatically