gostlight

Casual Cron

AI 智能体v1.2.0
作者:gostlight更新于 2026-05-11共 6 个版本 · 最新版本发布于 2026-02-11casual-cron@clawhub_gostlightai/casual-cron
任务自动化工具调用#Cron#Message#Schedule#Telegram

据 AlphaMoat 统计,截至 2026-09,Casual Cron 累计下载 4,406 次、获 1 个星标,在全部 5,078 个 AI 技能中排名第 2,215 位,在「AI 智能体」分类(969 个)中排名第 420 位。

累计安装
219
累计下载
4,406
星标
1
全站排名
#2,215
全站前 44% · 「AI 智能体」前 44%
平台累计安装累计下载星标评论
ClawHub ↗1374,4061-
SkillHub ↗2194,2071—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

流程为:检测调度意图(含 /at、/every 命令)→ 解析时间、频率、渠道、目标与消息 → 构建 openclaw cron add 命令 → 执行前向用户确认解析出的时间、任务名与任务 ID。一次性任务用 --at(钟点时间换算为带 America/New_York 偏移的 DST 安全 ISO 时间;近期提醒优先相对时间如 --at "20m"),必须带 --delete-after-run 与 --deliver --channel <channel> --to <destination>;重复任务按间隔用 --every "<duration>"、按钟点用 --cron "<expr>" --tz "America/New_York",均配 --session isolated 与 --message "Output exactly: <task>"。运行守卫硬规则:cron 任务内不得排障、重启网关或检查时间,不得发送确认或解释,只输出确切的消息载荷后停止。默认时区 America/New_York(DST 感知),默认渠道 telegram(可用 CRON_DEFAULT_CHANNEL 覆盖),支持 telegram、whatsapp、slack、discord、signal。时间格式支持 8am、8:45pm、noon、midnight、14:30 等映射;频率支持 daily、weekdays(周一至周五)、mondays、hourly、every 2 hours、weekly(默认周一)与 monthly(每月 1 日)。依赖 python3 与 openclaw。

资料发布于 2026-10-27

可以用来做什么

  • 把"每天 8 点提醒我"等自然语言转成 cron 命令
  • 经 Telegram 等渠道投递一次性或重复提醒
  • 把 /at 与 /every 命令转为正确的 openclaw cron add 参数

什么时候用

  • 用户要求安排提醒或定时消息(一次性或重复),尤其经 Telegram 时
  • 用户使用 /at 或 /every 命令时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

每天早上 8 点提醒我喝水
20 分钟后提醒我开会
/every 2h 给我发一次 Telegram 消息

月度数据趋势

累计下载4,406
2,6803,6074,5342026-03 · 累计下载 2,8082026-05 · 累计下载 3,4702026-06 · 累计下载 3,6582026-07 · 累计下载 4,0122026-08 · 累计下载 4,2342026-09 · 累计下载 4,40626-0326-09
星标1
0122026-03 · 星标 12026-05 · 星标 12026-06 · 星标 12026-07 · 星标 12026-08 · 星标 12026-09 · 星标 126-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,406—1
2026-084,234+5.5%1
2026-074,012+9.7%1
2026-063,658+5.4%1
2026-053,470—1
2026-032,808—1

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

3.9 KB · ClawHub v1.2.0
---
name: casual-cron
description: "Create Clawdbot cron jobs from natural language with strict run-guard rules. Use when: users ask to schedule reminders or messages (recurring or one-shot), especially via Telegram, or when they use /at or /every. Examples: 'Create a daily reminder at 8am', 'Remind me in 20 minutes', 'Send me a Telegram message at 3pm', '/every 2h'."
metadata: {"openclaw":{"emoji":"⏰","requires":{"bins":["python3","openclaw"],"env":["CRON_DEFAULT_CHANNEL"]}}}
---

# Casual Cron

Create Clawdbot cron jobs from natural language. Supports one-shot and repeating schedules with safe run-guard rules.
展开全部(共 135 行)
## Cron Run Guard (Hard Rules)

- When running inside a cron job: do NOT troubleshoot, do NOT restart gateway, and do NOT check time.
- Do NOT send acknowledgements or explanations.
- Output ONLY the exact message payload and then stop.

---

## How It Works

1. Agent detects scheduling intent from user message (or `/at` / `/every` command)
2. Parses: time, frequency, channel, destination, message
3. Builds `openclaw cron add` command with correct flags
4. Confirms parsed time, job name, and job id with user before executing

---

## Scheduling Rules

When a message starts with `/at` or `/every`, schedule via the CLI (NOT the cron tool API).

Use: `openclaw cron add`

### /at (one-shot)

- If user gives a clock time (e.g., "3pm"), convert to ISO with offset computed for America/New_York on that date (DST-safe).
- Prefer relative times for near-term reminders (e.g., `--at "20m"`).
- Use `--session isolated --message "Output exactly: <task>"`.
- Always include `--delete-after-run`.
- Always include `--deliver --channel <channel> --to <destination>`.

### /every (repeating)

- If interval: use `--every "<duration>"` (no timezone needed).
- If clock time: use `--cron "<expr>" --tz "America/New_York"`.
- Use `--session isolated --message "Output exactly: <task>"`.
- Always include `--deliver --channel <channel> --to <destination>`.

### Confirmation

- Always confirm parsed time, job name, and job id with the user before finalizing.

---

## Command Reference

One-shot (clock time, DST-aware):
```
openclaw cron add \
  --name "Reminder example" \
  --at "2026-01-28T15:00:00-05:00" \
  --session isolated \
  --message "Output exactly: <TASK>" \
  --deliver --channel telegram --to <TELEGRAM_CHAT_ID> \
  --delete-after-run
```

One-shot (relative time):
```
openclaw cron add \
  --name "Reminder in 20m" \
  --at "20m" \
  --session isolated \
  --message "Output exactly: <TASK>" \
  --deliver --channel telegram --to <TELEGRAM_CHAT_ID> \
  --delete-after-run
```

Repeating (clock time, DST-aware):
```
openclaw cron add \
  --name "Daily 3pm reminder" \
  --cron "0 15 * * *" --tz "America/New_York" \
  --session isolated \
  --message "Output exactly: <TASK>" \
  --deliver --channel telegram --to <TELEGRAM_CHAT_ID>
```

Repeating (interval):
```
openclaw cron add \
  --name "Every 2 hours" \
  --every "2h" \
  --session isolated \
  --message "Output exactly: <TASK>" \
  --deliver --channel telegram --to <TELEGRAM_CHAT_ID>
```

---

## Configuration

| Setting | Value |
|---------|-------|
| Default timezone | `America/New_York` (DST-aware) |
| Default channel | `telegram` (override via `CRON_DEFAULT_CHANNEL` env var) |
| Supported channels | telegram, whatsapp, slack, discord, signal |

---

## Supported Patterns

### Time Formats

| Input | Cron |
|-------|------|
| `8am` | `0 8 * * *` |
| `8:45pm` | `45 20 * * *` |
| `noon` | `0 12 * * *` |
| `midnight` | `0 0 * * *` |
| `14:30` | `30 14 * * *` |

### Frequencies

| Input | Behavior |
|-------|----------|
| `daily` / `every day` | Daily at specified time |
| `weekdays` / `mon-fri` | Mon-Fri at specified time |
| `mondays` / `every monday` | Weekly on Monday |
| `hourly` / `every hour` | Every hour at :00 |
| `every 2 hours` | `0 */2 * * *` |
| `weekly` | Weekly (defaults to Monday) |
| `monthly` | Monthly (1st of month) |

「AI 智能体」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。