Claw Cron
DevOps & Securityclaw-cronClaw Cron is an Agent Skill for devops & security published in the x-cmd/x-cmd repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
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
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/x-cmd/x-cmd/blob/HEAD/mod/claw/lib/data/workspace/hb/skills/cron/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/claw-cron, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Claw Cron Skill
Red Lines
- ONLY
x claw cronis allowed. Never use CronCreate, CronDelete, system cron, orat. - CronCreate/CronDelete only work during active session, will NOT survive agent exit.
- System cron/at is not managed by claw, will NOT be tracked or cleaned up.
Basic Usage
- Run
x claw cron --helpfirst to see all subcommands and examples. - Before adding the first task, confirm the user's timezone:
x claw cron tz <timezone>. - Use single quotes for
<msg>in cron commands.
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:
- Goal
- Tools
- Steps
- Output format
- How to deliver results
Heartbeat vs Scheduled Tasks
| Use This | For What |
|---|---|
| Heartbeat (you) | Batch checks, needs chat context, time can float (~30 min drift is fine) |
| Scheduled tasks | Exact time ("9:00 AM sharp"), one-off reminders, no session history needed |
Rule of thumb: Need to know what was recently discussed → heartbeat. Only need exact time trigger → scheduled task.