AGENT SKILL

cron

Schedule reminders and recurring tasks using the cron tool

License 许可
MIT
所属仓库
timainge/picobot
最近更新
2026-04-07
Stars
★ 1
Forks
0

01 前言 Front Matter

name
cron
metadata
{}
description
Schedule reminders and recurring tasks using the cron tool

03 SKILL.md 正文

Cron

Use the cron tool to schedule reminders and recurring tasks. Each job stores a message that is sent to the agent when the job fires — the agent then executes the message as a prompt via process_direct().

Actions

Action Required params Description
add message + (every_seconds or cron_expr) Create a new scheduled job
list (none) Show all scheduled jobs with IDs
remove job_id Delete a job by ID

Scheduling Modes

Interval (every_seconds)

Fires repeatedly at a fixed interval. The value is in seconds.

{
  "action": "add",
  "message": "Check disk usage and warn if any partition is above 90%",
  "every_seconds": 3600
}

Cron expression (cron_expr)

Standard 5-field cron syntax: minute hour day-of-month month day-of-week.

{
  "action": "add",
  "message": "Summarize today's journal entries and store a daily digest in kb",
  "cron_expr": "0 22 * * *"
}

Examples

Schedule a recurring reminder every 20 minutes

{
  "action": "add",
  "message": "Remind me to take a break and stretch",
  "every_seconds": 1200
}

Schedule a daily task at 9 AM

{
  "action": "add",
  "message": "Check the project's GitHub issues and summarize any new ones",
  "cron_expr": "0 9 * * *"
}

Schedule a weekday-only task at 5 PM

{
  "action": "add",
  "message": "Write a brief status update for today's work",
  "cron_expr": "0 17 * * 1-5"
}

Schedule a task every 10 minutes

{
  "action": "add",
  "message": "Check HKUDS/nanobot GitHub stars and report the count",
  "every_seconds": 600
}

List all scheduled jobs

{
  "action": "list"
}

Returns job names, IDs, and schedule types. Use the id value from the output to remove jobs.

Remove a job

{
  "action": "remove",
  "job_id": "abc123-def456"
}

Common Time Conversions

User says Parameter
every 5 minutes "every_seconds": 300
every 20 minutes "every_seconds": 1200
every hour "every_seconds": 3600
every 6 hours "every_seconds": 21600
every day at 8 AM "cron_expr": "0 8 * * *"
every day at midnight "cron_expr": "0 0 * * *"
weekdays at 5 PM "cron_expr": "0 17 * * 1-5"
every Sunday at noon "cron_expr": "0 12 * * 0"
first of every month "cron_expr": "0 0 1 * *"

Notes

  • The message field is a prompt that the agent will execute when the job fires. Write it as a clear instruction.
  • Jobs persist across restarts in ~/.picobot/data/cron/jobs.json.
  • Job names are auto-generated from the first 30 characters of the message.
  • You must provide exactly one of every_seconds or cron_expr when adding a job — not both, not neither.

04 同仓库更多 Skills