AgentSkillsCN

cron

安排提醒与定期任务。

SKILL.md
--- frontmatter
name: cron
description: Schedule reminders and recurring tasks.

Cron

Use the cron tool to schedule reminders or recurring tasks.

Three Modes

  1. Reminder - message is sent directly to user
  2. Task - message is a task description, agent executes and sends result
  3. One-time - runs once at a specific time, then auto-deletes

Examples

Fixed reminder:

code
cron(action="add", message="Time to take a break!", every_seconds=1200)

Dynamic task (agent executes each time):

code
cron(action="add", message="Check luthebao/nanoclaw GitHub stars and report", every_seconds=600)

One-time scheduled task (compute ISO datetime from current time):

code
cron(action="add", message="Remind me about the meeting", at="<ISO datetime>")

List/remove:

code
cron(action="list")
cron(action="remove", job_id="abc123")

Time Expressions

User saysParameters
every 20 minutesevery_seconds: 1200
every hourevery_seconds: 3600
every day at 8amcron_expr: "0 8 * * *"
weekdays at 5pmcron_expr: "0 17 * * 1-5"
at a specific timeat: ISO datetime string (compute from current time)