$npx -y skills add volcengine/OpenViking --skill cronSchedule reminders and recurring tasks.
| 1 | # Cron |
| 2 | |
| 3 | Use the `cron` tool to schedule reminders or recurring tasks. |
| 4 | |
| 5 | ## Three Modes |
| 6 | |
| 7 | 1. **Reminder** - message is sent directly to user |
| 8 | 2. **Task** - message is a task description, agent executes and sends result |
| 9 | 3. **One-time** - runs once at a specific time, then auto-deletes |
| 10 | |
| 11 | ## Examples |
| 12 | |
| 13 | Fixed reminder: |
| 14 | ``` |
| 15 | cron(action="add", message="Time to take a break!", every_seconds=1200) |
| 16 | ``` |
| 17 | |
| 18 | Dynamic task (agent executes each time): |
| 19 | ``` |
| 20 | cron(action="add", message="Check HKUDS/vikingbot GitHub stars and report", every_seconds=600) |
| 21 | ``` |
| 22 | |
| 23 | One-time scheduled task (compute ISO datetime from current time): |
| 24 | ``` |
| 25 | cron(action="add", message="Remind me about the meeting", at="<ISO datetime>") |
| 26 | ``` |
| 27 | |
| 28 | List/remove: |
| 29 | ``` |
| 30 | cron(action="list") |
| 31 | cron(action="remove", job_id="abc123") |
| 32 | ``` |
| 33 | |
| 34 | ## Time Expressions |
| 35 | |
| 36 | | User says | Parameters | |
| 37 | |-----------|------------| |
| 38 | | every 20 minutes | every_seconds: 1200 | |
| 39 | | every hour | every_seconds: 3600 | |
| 40 | | every day at 8am | cron_expr: "0 8 * * *" | |
| 41 | | weekdays at 5pm | cron_expr: "0 17 * * 1-5" | |
| 42 | | at a specific time | at: ISO datetime string (compute from current time) | |