cron-mastery by sundial-org/awesome-openclaw-skills
npx skills add https://github.com/sundial-org/awesome-openclaw-skills --skill cron-mastery规则 #1:心跳会漂移。Cron 是精确的。
此技能提供了在 OpenClaw 中管理时间的权威指南。它通过强制区分临时检查(心跳)和严格计划(cron),解决了“我错过了提醒”的问题。
| 系统 | 行为 | 最适合 | 风险 |
|---|---|---|---|
| 心跳 | “我方便时会检查”(例如,每 30-60 分钟) | 电子邮件检查、临时新闻摘要、低优先级轮询。 | 漂移: 如果心跳间隔是 30 分钟,一个“10 分钟后提醒我”的任务将会失败。 |
| Cron | “我将在 X 时间准时运行” | 提醒(“5 分钟后”)、每日报告、系统维护。 | 混乱: 会产生需要清理的一次性任务。 |
切勿 使用 act:wait 或内部循环来处理长延迟(>1 分钟)。请使用带有一次性 at 计划的 cron:add。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
对于“X 分钟后提醒我”的任务,请使用以下负载结构:
{
"name": "Remind: Drink Water",
"schedule": {
"kind": "at",
"atMs": <CURRENT_MS + DELAY_MS>
},
"payload": {
"kind": "agentTurn",
"message": "⏰ Reminder: Drink water!",
"deliver": true
},
"sessionTarget": "isolated",
"wakeMode": "next-heartbeat"
}
注意:即使使用 wakeMode: "next-heartbeat",cron 系统也会在 atMs 强制注入事件。如果您需要在任务负载之外强制立即唤醒,请在 cron:wake 工具中使用 mode: "now"。
一次性 cron 任务(类型:at)在运行后会自行禁用,但会作为“幽灵”保留在列表中(enabled: false, lastStatus: ok)。为防止混乱,请安装 每日清理工。
cron:list (includeDisabled: true)Daily Cron CleanupeveryMs: 86400000)“是时候进行 24 小时 cron 清理了。列出所有 cron 任务,包括已禁用的。如果发现任何
enabled: false且lastStatus: ok(已完成的一次性任务)的任务,请删除它们以保持列表整洁。不要删除活动的重复性任务。记录删除了什么。”
要使 cron 正常工作,代理 必须 知道其时间。
MEMORY.md。Timezone: Cairo (GMT+2)问题: 如果你说“我等 30 秒”然后结束了你的轮次,你就会进入休眠状态。没有事件你无法醒来。解决方案: 如果你需要跨轮次“等待”,你 必须 安排一个 Cron 任务。
act:wait)。wakeMode: "now" 的 Cron。“30 秒后检查”的负载示例:
{
"schedule": { "kind": "at", "atMs": <NOW + 30000> },
"payload": { "kind": "agentTurn", "message": "⏱️ 30s check-in. Report status." },
"wakeMode": "now"
}
cron:list。如果任务存在但未触发,请检查系统时钟与 atMs。每周安装数
140
仓库
GitHub 星标数
509
首次出现
2026 年 2 月 14 日
安全审计
安装于
codex140
cursor138
gemini-cli138
github-copilot138
amp138
kimi-cli138
Rule #1: Heartbeats drift. Cron is precise.
This skill provides the definitive guide for managing time in OpenClaw. 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. |
Never use act:wait or internal loops for long delays (>1 min). Use cron:add with a one-shot at schedule.
Use this payload structure for "remind me in X minutes" tasks:
{
"name": "Remind: Drink Water",
"schedule": {
"kind": "at",
"atMs": <CURRENT_MS + DELAY_MS>
},
"payload": {
"kind": "agentTurn",
"message": "⏰ Reminder: Drink water!",
"deliver": true
},
"sessionTarget": "isolated",
"wakeMode": "next-heartbeat"
}
Note: Even withwakeMode: "next-heartbeat", the cron system forces an event injection at atMs. Use mode: "now" in the cron:wake tool if you need to force an immediate wake outside of a job payload.
One-shot cron jobs (kind: at) disable themselves after running but stay in the list as "ghosts" (enabled: false, lastStatus: ok). To prevent clutter, install the Daily Janitor.
cron:list (includeDisabled: true)Daily Cron CleanupeveryMs: 86400000)"Time for the 24-hour cron sweep. List all cron jobs including disabled ones. If you find any jobs that are
enabled: falseand havelastStatus: ok(finished one-shots), delete them to keep the list clean. Do not delete active recurring jobs. Log what you deleted."
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".Example Payload for "Checking back in 30s":
{
"schedule": { "kind": "at", "atMs": <NOW + 30000> },
"payload": { "kind": "agentTurn", "message": "⏱️ 30s check-in. Report status." },
"wakeMode": "now"
}
cron:list. If the job exists but didn't fire, check the system clock vs atMs.Weekly Installs
140
Repository
GitHub Stars
509
First Seen
Feb 14, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykWarn
Installed on
codex140
cursor138
gemini-cli138
github-copilot138
amp138
kimi-cli138
Azure Data Explorer (Kusto) 查询技能:KQL数据分析、日志遥测与时间序列处理
133,300 周安装
Claude技能创建与分享工具 - 自动化技能开发、团队协作与Slack集成
1,100 周安装
LangSmith Fetch 代理调试技能 - 快速调试 LangChain/LangGraph 代理执行轨迹
1,100 周安装
内部沟通AI技能:自动生成3P更新、公司通讯、FAQ回复等内部沟通内容
1,100 周安装
开发者成长分析技能:基于Claude聊天历史识别编码模式与改进领域
1,200 周安装
Connect技能:让Claude AI连接1000+应用执行真实操作,告别纯文本生成
1,200 周安装
Anthropic品牌风格指南技能 - 获取官方品牌标识、颜色、字体和视觉设计规范
1,100 周安装