From 30361c9307f9014f49530d80abd5717bc97f554a Mon Sep 17 00:00:00 2001 From: Re-bin Date: Mon, 23 Feb 2026 18:28:09 +0000 Subject: [PATCH] refactor: replace cron usage docs in TOOLS.md with reference to cron skill --- nanobot/templates/TOOLS.md | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/nanobot/templates/TOOLS.md b/nanobot/templates/TOOLS.md index 757edd2..51c3a2d 100644 --- a/nanobot/templates/TOOLS.md +++ b/nanobot/templates/TOOLS.md @@ -10,27 +10,6 @@ This file documents non-obvious constraints and usage patterns. - Output is truncated at 10,000 characters - `restrictToWorkspace` config can limit file access to the workspace -## Cron — Scheduled Reminders +## cron — Scheduled Reminders -Use `exec` to create scheduled reminders: - -```bash -# Recurring: every day at 9am -nanobot cron add --name "morning" --message "Good morning!" --cron "0 9 * * *" - -# With timezone (--tz only works with --cron) -nanobot cron add --name "standup" --message "Standup time!" --cron "0 10 * * 1-5" --tz "Asia/Shanghai" - -# Recurring: every 2 hours -nanobot cron add --name "water" --message "Drink water!" --every 7200 - -# One-time: specific ISO time -nanobot cron add --name "meeting" --message "Meeting starts now!" --at "2025-01-31T15:00:00" - -# Deliver to a specific channel/user -nanobot cron add --name "reminder" --message "Check email" --at "2025-01-31T09:00:00" --deliver --to "USER_ID" --channel "CHANNEL" - -# Manage jobs -nanobot cron list -nanobot cron remove -``` +- Please refer to cron skill for usage.