scheduled-tasks
Create and manage OpenClaw scheduled tasks (reminders, periodic notifications, automated workflows). 创建和管理 OpenClaw 定时任务(提醒、定时推送、自动化工作流)。 Supports OpenClaw Cron API and system crontab with best practices and pitfall avoidance. 支持 OpenClaw Cron API 和系统 crontab,包含最佳实践和避坑指南。
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/chowlee-cc/scheduled-tasksScheduled Tasks Skill | 定时任务技能
OpenClaw + 飞书定时任务解决方案
Version | 版本: 2.1.7
Author | 作者: 9527
License | 许可证: MIT
Overview | 概述
This skill helps you create, manage, and troubleshoot scheduled tasks in OpenClaw. It supports two approaches: OpenClaw Cron API (recommended for Agent tasks) and System Crontab (for shell scripts).
本技能帮助您创建、管理和调试 OpenClaw 定时任务。支持两种方式:OpenClaw Cron API(推荐用于 Agent 任务)和系统 Crontab(适用于 Shell 脚本)。
When to Use | 使用场景
| Scenario | Use OpenClaw Cron | Use System Crontab |
|---|---|---|
| One-time reminder (X minutes later) | ✅ --at | ❌ |
| Scheduled Agent task with reply | ✅ --announce | ⚠️ Complex |
| Scheduled shell script execution | ⚠️ Possible | ✅ Direct |
| Requires Agent thinking/tools | ✅ | ✅ via openclaw agent |
| Multiple Agents | ✅ --agent | ✅ --agent |
| Model/thinking override | ✅ --model --thinking | ❌ |
| Auto-retry on failure | ✅ Built-in | ❌ Manual |
| 场景 | 用 OpenClaw Cron | 用系统 Crontab |
|---|---|---|
| 一次性提醒(X 分钟后) | ✅ --at | ❌ |
| 定时让 Agent 执行任务并回复 | ✅ --announce | ⚠️ 复杂 |
| 定时执行 Shell 脚本 | ⚠️ 可以 | ✅ 更直接 |
| 需要 Agent 思考和工具调用 | ✅ | ✅ 通过 openclaw agent |
| 需要指定不同 Agent | ✅ --agent | ✅ --agent |
| 需要模型/思考级别覆盖 | ✅ --model --thinking | ❌ |
| 任务失败自动重试 | ✅ 内置 | ❌ 需自行处理 |
Principle | 原则: Prefer OpenClaw Cron unless the task is essentially running a script without Agent involvement.
优先使用 OpenClaw Cron,除非任务本质是运行脚本且不需要 Agent 参与。
Quick Start | 快速开始
One-Time Reminder | 一次性提醒
# Remind in 20 minutes | 20 分钟后提醒
openclaw cron add \
--name "Water Reminder | 喝水提醒" \
--at "20m" \
--session main \
--system-event "Time to drink water! 💧 | 主人,该喝水了 💧" \
--wake now \
--delete-after-run
Daily Scheduled Task | 每日定时任务
# Daily news briefing at 08:00 | 每天 08:00 新闻播报
openclaw cron add \
--name "Daily News | 每日新闻" \
--cron "0 8 * * *" \
--tz "Asia/Shanghai" \
--session isolated \
--agent <agent-id> \
--message "Search today's news and send to user | 搜索今日新闻并推送" \
--announce \
--channel feishu \
--to "user:<user_open_id>"
Method 1: OpenClaw Cron API (Recommended) | 方式一:OpenClaw Cron API(推荐)
Basic Commands | 基础命令
# List all tasks | 查看所有任务
openclaw cron list
# Run task manually | 手动触发任务
openclaw cron run <jobId>
# View run history | 查看运行历史
openclaw cron runs --id <jobId>
# Edit task | 编辑任务
openclaw cron edit <jobId> --message "New message | 新消息"
# Disable task | 禁用任务
openclaw cron edit <jobId> --enabled false
# Remove task | 删除任务
openclaw cron remove <jobId>
Common Patterns | 常见模式
Pattern 1: One-Time Reminder | 一次性提醒
openclaw cron add \
--name "Meeting Reminder | 会议提醒" \
--at "2026-03-27T09:00:00+08:00" \
--session main \
--system-event "Meeting at 9 AM! | 9 点有会议,请准备" \
--wake now \
--delete-after-run
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-chowlee-cc-scheduled-tasks": {
"enabled": true,
"auto_update": true
}
}
}