Cron

From x-cmd/x-cmd · View interactive version

Cron is an AI agent skill from the GitHub repository x-cmd/x-cmd. Claw scheduled task management using x claw cron. Use when the agent needs to add, remove, list, or manage cron jobs within claw. Also use when explaining the difference between heartbeat checks and scheduled tasks.

How to use this skill

Skill file

Claw Cron Skill

Red Lines

Basic Usage

Cron Command with Agent

When using x claw agentrequest as a cron command, <msg> is sent to a zero-memory new agent. The message MUST include:

Bad: 'Check HN'

Good: 'Use x hn top for top 5 posts. Extract title, URL, score. Send: x claw weixin send --chatid "<CHATID>" --text <result>'

Heartbeat vs Scheduled Tasks

| Use Case | Mechanism | Reason |

|----------|-----------|--------|

| Batch periodic checks (inbox + tasks + notifications) | Heartbeat | Consolidated checks, uses session context |

| Exact time ("Every Monday at 9 AM") | Scheduled task | Precise scheduling, isolated execution |

| One-off reminder ("Remind me in 20 minutes") | Scheduled task | No session history needed |

| Independent task with no chat context | Scheduled task | Clean separation from conversation |

Rule of thumb: Needs conversation context → heartbeat. Needs exact time or isolation → scheduled task.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.