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
累計下載
4406
星標
1
全站排名
#2,215
全站前 44% · 「AI 智慧體」前 44%
平台累計安裝累計下載星標評論
ClawHub ↗13744061-
SkillHub ↗21942071—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

流程為:檢測排程意圖(含 /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 訊息

月度資料趨勢

累計下載4406
2680360745342026-03 · 累計下載 28082026-05 · 累計下載 34702026-06 · 累計下載 36582026-07 · 累計下載 40122026-08 · 累計下載 42342026-09 · 累計下載 440626-0326-09
星標1
0122026-03 · 星標 12026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-094406—1
2026-084234+5.5%1
2026-074012+9.7%1
2026-063658+5.4%1
2026-053470—1
2026-032808—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),按月更新。口徑說明見資料方法。