scheduler
2
总安装量
2
周安装量
#68764
全站排名
安装命令
npx skills add https://github.com/naohainezha/skill --skill scheduler
Agent 安装分布
openclaw
2
claude-code
2
replit
2
codex
2
opencode
2
mcpjam
1
Skill 文档
Scheduler Skill
You can schedule tasks and manage periodic heartbeat checks.
Cron Jobs (Scheduled Tasks)
Use the alma cron CLI to manage scheduled tasks.
# 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>
Command Format
alma cron add <name> <type> <schedule> [options]
<type>:at(one-shot),every(interval),cron(cron expression)<schedule>: depends on type â “20m”/”2026-02-11T09:00:00” for at, “30m”/”2h” for every, “0 9 * * *” for cron--mode main|isolated: main injects into existing thread, isolated creates temp thread (default: isolated)--prompt "...": the message/task for the AI to execute--deliver-to CHAT_ID: send result to Telegram (use user’s chat ID from system context)--thread-id ID: which thread to inject into (for main mode)--model MODEL: model override for this job
Heartbeat (Periodic Awareness)
Heartbeat is a periodic check-in where you “wake up” and look for things that need attention.
Managing Heartbeat Config
alma 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_ID
Managing HEARTBEAT.md
The heartbeat reads HEARTBEAT.md from the workspace as your checklist. Edit it to change what you check on each heartbeat.
File location: HEARTBEAT.md in the active workspace root.
Example:
# Heartbeat Checklist
- æ£æ¥ææ²¡ææªå¤ççéè¦æ¶æ¯
- å¦æç¨æ·è¶
è¿ 4 å°æ¶æ²¡äºå¨ï¼æä¸ªæå¼
- æ¯å¤©æ©ä¸æ£æ¥ä¸æ¬¡å¤©æ°
If nothing needs attention, respond with HEARTBEAT_OK (this is suppressed, user won’t see it).
When to Use What
| User says | Action |
|---|---|
| “æéæ20åéåå¼ä¼” | alma cron add "å¼ä¼æé" at "20m" --prompt "该å¼ä¼äºï¼" --deliver-to CHAT_ID |
| “æ¯å¤©æ©ä¸9ç¹ç»ææ»ç»AIæ°é»” | alma cron add "AIæ°é»" cron "0 1 * * *" --mode isolated --prompt "æç´¢æ»ç»ä»å¤©AIæ°é»" --deliver-to CHAT_ID (Note: cron uses UTC, 9am GMT+8 = 1am UTC) |
| “æ¯å°æ¶æ£æ¥ä¸ä¸é®ä»¶” | alma cron add "æ£æ¥é®ä»¶" every "1h" --mode isolated --prompt "æ£æ¥é®ä»¶" --deliver-to CHAT_ID |
| “å«åç»æåå¿è·³äº” | alma heartbeat disable |
| “å¿è·³çæ¶å顺便çç天气 | Edit HEARTBEAT.md, add weather check item |
| “åæ¶é£ä¸ªæ¯æ¥æ°é»ä»»å¡” | alma cron list â alma cron remove <id> |
Important
- Always get the user’s Telegram chat ID from the system prompt context for
--deliver-to - For isolated tasks that should send results to user, ALWAYS include
--deliver-to - Cron expressions use UTC unless otherwise noted â adjust for user’s timezone
- One-shot
--atjobs auto-delete after running