AgentSkillsCN

cron

安排提醒与定期任务。

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

Cron

Use the cron tool to schedule reminders or recurring tasks.

Actions

  • add — schedule a new reminder
  • list — show all pending jobs
  • cancel — remove a job by name

Examples

Set a reminder:

code
cron(action="add", name="break-reminder", message="Time to take a break!", delay="20m")

Longer delay:

code
cron(action="add", name="standup", message="Daily standup in 5 minutes", delay="1h")

List and cancel:

code
cron(action="list")
cron(action="cancel", name="break-reminder")

Delay Format

Use Go duration strings:

User saysDelay value
2 minutes2m
1 hour1h
1 hour 30 minutes1h30m
30 seconds30s
1 day24h