Loading...
Loading...
Create, manage, and delete scheduled tasks (cron jobs) and configure heartbeat. Use when users ask for reminders, recurring tasks, daily summaries, periodic checks, or anything time-based. Also manages HEARTBEAT.md for periodic awareness checks.
npx skill4agent add naohainezha/skill scheduleralma cron# List all jobs
alma cron list
# Add a one-shot reminder (fires once then auto-deletes)
# Format: alma cron add <name> <at|every|cron> <schedule> [--mode main|isolated] [--prompt "..."] [--deliver-to CHAT_ID]
alma cron add "Meeting reminder" at "20m" --mode main --prompt "该开会了"
# Add a recurring task with cron expression
alma cron add "AI news digest" cron "0 9 * * *" --mode isolated --prompt "搜索并总结今天最重要的 AI 新闻,用中文,简洁明了" --deliver-to CHAT_ID
# Add an interval-based task
alma cron add "Check emails" every "2h" --mode isolated --prompt "检查有没有重要邮件" --deliver-to CHAT_ID
# Run a job immediately
alma cron run <job-id>
# View run history
alma cron history <job-id>
# Enable/disable
alma cron enable <job-id>
alma cron disable <job-id>
# Remove
alma cron remove <job-id>alma cron add <name> <type> <schedule> [options]<type>ateverycron<schedule>--mode main|isolated--prompt "..."--deliver-to CHAT_ID--thread-id ID--model MODELalma heartbeat status # Check if enabled and current config
alma heartbeat enable # Enable heartbeat
alma heartbeat disable # Disable heartbeat
alma heartbeat config --interval 30 --start 8 --end 23 --chat-id CHAT_IDHEARTBEAT.mdHEARTBEAT.md# Heartbeat Checklist
- 检查有没有未处理的重要消息
- 如果用户超过 4 小时没互动,打个招呼
- 每天早上检查一次天气HEARTBEAT_OK| User says | Action |
|---|---|
| "提醒我20分钟后开会" | |
| "每天早上9点给我总结AI新闻" | |
| "每小时检查一下邮件" | |
| "别再给我发心跳了" | |
| "心跳的时候顺便看看天气" | Edit HEARTBEAT.md, add weather check item |
| "取消那个每日新闻任务" | |
--deliver-to--deliver-to--at