Token导航 LogoToken导航TokenDH.com
待分类只读github未标认证来源可访问许可证需确认审计提醒

cron-helper计划任务助手

Agent Skill

cron-helper 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

8,303

周安装

353

GitHub Stars

公开资料未说明

下载量

2,909
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cron-helper(计划任务助手)
来源仓库:https://github.com/tclawde/openclaw-skills-user
仓库路径:skills/cron-helper
安装命令:
npx skills add https://github.com/tclawde/openclaw-skills-user --skill cron-helper
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tclawde/openclaw-skills-user --skill cron-helper

简介

用于处理 GitHub 仓库、Issue 和 Pull Request 协作信息。

  • 适合在代码协作、仓库状态跟踪或变更管理中使用。
  • 通过 npx skills add 命令从 GitHub 仓库安装。
  • 使用前需确认权限、维护状态及是否执行网络请求或文件操作。
  • cron-helper 属于待分类类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Cron Helper Skill

Purpose: Guides me to use openclaw cron CLI for time-based tasks and send logs on create/remove.

When to use:

  • User asks for periodic/reminder tasks
  • User mentions "remind me every X"
  • User needs scheduled background checks
  • User wants agent to perform a task at a specific time

Core Principle

Always prefer cron over manual timing.

Reason: I lack an internal clock. Manual "track time yourself" fails because I can get absorbed in reading/thinking and lose track of time. Cron is an external clock that works reliably.


Main vs Isolated Session

Isolated Session (RECOMMENDED for tasks) ✅ Best Practice

Use --session isolated when you want the agent to actually perform a task:

  • Agent receives the message and executes it
  • Can use tools (exec, read, message, etc.)
  • Can deliver output to a channel
  • Does not pollute main conversation history

Format:

openclaw cron add \
  --name "job_name" \
  --cron "0 9 * * *" \
  --session isolated \
  --message "Task instructions for the agent" \
  --deliver \
  --channel feishu

Main Session (simple notifications only)

Use --session main with --system-event for simple notifications only:

  • Just displays a message in main chat
  • Agent does NOT execute any tasks
  • No tool calls, no delivery

Format:

openclaw cron add \
  --name "reminder" \
  --at "+30m" \
  --session main \
  --system-event "Reminder: check email"

How I Should Respond

Step 1: Detect the request

Keywords: "every", "remind", "schedule", "定时", "每小时/每天/每周", "在X分钟后执行"

Step 2: Ask for details

Get from user:

  • What - task description or notification message
  • When - schedule (e.g., "every 2 hours", "at 9am daily", "in 10 minutes")
  • Delivery - does output need to be sent to a chat? (default: no)
  • Name - job name (optional, auto-generated if not provided)

Step 3: Create cron job

For agent tasks (RECOMMENDED):

openclaw cron add \
  --name "task_name" \
  --at "+10m" \
  --session isolated \
  --message "Your task instructions here" \
  --deliver \
  --channel feishu

For simple reminders:

openclaw cron add \
  --name "reminder" \
  --at "+10m" \
  --session main \
  --system-event "Your reminder message"

Remove a cron job:

openclaw cron rm <job_id>

List all cron jobs:

openclaw cron list

Other useful commands:

openclaw cron status          # 查看调度器状态
openclaw cron run <job_id>    # 立即触发任务
openclaw cron enable <job_id> # 启用任务
openclaw cron disable <job_id> # 禁用任务
openclaw cron runs <job_id>   # 查看执行历史

Delivery Options

When using --session isolated, you can deliver output to a chat:

OptionDescription
--deliverEnable delivery (required for channel output)
--channel <name>Channel: feishu, telegram, slack, whatsapp, etc.
--to <dest>Channel-specific target (chat ID, phone, etc.)
--post-mode fullPost full output instead of summary

Examples:

# Deliver to Feishu
--deliver --channel feishu

# Deliver to Telegram
--deliver --channel telegram --to "-1001234567890"

# Deliver with full output
--deliver --channel feishu --post-mode full

Common Options

OptionDescription
--cron <expr>Cron expression (5-field or 6-field with seconds)
--every <duration>Run every duration (e.g., 10m, 1h)
--at <when>Run once at time (ISO or +duration, supports m/s)
--tz <iana>Timezone (default: local)
`--session main\isolated`Target session (default: main)
--system-event <text>System event payload (main session only)
--message <text>Agent message payload (isolated session only)
--delete-after-runDelete one-shot job after success
--disabledCreate job in disabled state

Step 4: Send log

On CREATE/REMOVE only:

After creating or removing cron jobs, send ONE log with the exact command:

Log format:

# 新增任务
[HH:MM] CRON ✅
$ openclaw cron add \
  --name "job_name" \
  --at "+10m" \
  --session isolated \
  --message "task description" \
  --deliver \
  --channel feishu

# 删除任务
[HH:MM] CRON ❌
$ openclaw cron rm <job_id>

Examples:

# 新增
[21:30] CRON ✅
$ openclaw cron add \
  --name "daily-summary" \
  --cron "0 9 * * *" \
  --tz "Asia/Shanghai" \
  --session isolated \
  --message "总结今天的工作" \
  --deliver \
  --channel feishu

# 删除
[21:41] CRON ❌
$ openclaw cron rm 983a0f0e-0976-414a-b3d0-fd09c533e301

Key points:

  • Send log ONLY on create/remove, NOT on execution
  • Keep it minimal: One command block, no extra text

Cron → Human mapping (五位 - 分时日月周):

  • */5 * * * * → 每5分钟
  • */30 * * * * → 每30分钟
  • 0 * * * * → 每1小时
  • 0 */2 * * * → 每2小时
  • 0 9 * * * → 每天1次(09:00)
  • 0 10,22 * * * → 每天2次(10:00,22:00)
  • 0 9 * * 1 → 每周1次(周一09:00)

Cron → Human mapping (六位 - 秒分时日月周):

  • */1 * * * * * → 每1秒
  • */5 * * * * * → 每5秒
  • */30 * * * * * → 每30秒

Best Practice Summary

Use CaseSessionPayloadDelivery
Agent performs taskisolated--message--deliver
Simple notificationmain--system-event

Rule of thumb: If you want the agent to do something (use tools, send messages), use --session isolated + --message.


What NOT To Do

❌ Don't say "I'll set a reminder myself" ❌ Don't try to track time manually ❌ Don't use --system-event when you need the agent to execute tasks ❌ Don't forget --deliver when you need output sent to chat ❌ Don't send execution logs (only log on create/remove)

✅ Always use the openclaw cron CLI ✅ Use --session isolated for agent tasks ✅ Use --session main for simple notifications only ✅ Send log on create/remove only ✅ Keep log simple and clean


Common Schedule Patterns

五位 Cron(分 时 日 月 周)

FrequencyCron ExpressionCLI Flag
Every 5 min*/5 * * * *--cron "*/5 * * * *"
Every 30 min*/30 * * * *--cron "*/30 * * * *"
Every hour0 * * * *--cron "0 * * * *"
Every 2 hours0 */2 * * *--cron "0 */2 * * *"
Daily at 9am0 9 * * *--cron "0 9 * * *"
Twice daily (10am, 10pm)0 10,22 * * *--cron "0 10,22 * * *"
Weekly (Monday 9am)0 9 * * 1--cron "0 9 * * 1"

六位 Cron(秒 分 时 日 月 周)

FrequencyCron ExpressionCLI Flag
Every 1 second*/1 * * * * *--cron "*/1 * * * * *"
Every 5 seconds*/5 * * * * *--cron "*/5 * * * * *"
Every 30 seconds*/30 * * * * *--cron "*/30 * * * * *"

Duration flags:

FrequencyCLI Flag
Every 10 minutes--every "10m"
Every 2 hours--every "2h"
Once in 20 minutes--at "+20m"
Once in 20 seconds--at "+20s"

Loaded automatically when skill is installed.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.4%
按下载量换算943

Claude

31.28%
按下载量换算910

Cursor

20.56%
按下载量换算598

Gemini CLI

9.71%
按下载量换算282

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills