cron-setup

Create and manage OpenClaw cron jobs following our conventions. Use when setting up periodic tasks, reminders, automated checks, or any scheduled work.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "cron-setup" with this command: npx skills add BrennerSpear/cron-setup

Cron Job Setup

Our conventions for creating cron jobs in OpenClaw.

Default Settings

SettingDefaultWhy
Modelanthropic/claude-sonnet-4-5Reliable tool calls, works with any Anthropic Max plan — no OpenRouter needed
SessionisolatedCron jobs run in their own session, not the main chat
Delivery"mode": "none"Job handles its own output (posts to Discord, etc.)
Timeout120-180sMost jobs should finish fast

Model Notes

  • Default to Sonnet (anthropic/claude-sonnet-4-5). Reliable, portable (no OpenRouter API key needed).
  • DeepSeek is unreliable for tool calls — don't use it for cron jobs.
  • Use Opus (anthropic/claude-opus-4-6) only as a last resort — expensive for scheduled tasks.
  • Model ID format: Use anthropic/claude-sonnet-4-5 not the full dated version (anthropic/claude-sonnet-4-20250514).

Job Template

{
  "name": "descriptive-kebab-case-name",
  "schedule": {
    "kind": "cron",
    "expr": "*/30 * * * *",
    "tz": "America/New_York"
  },
  "sessionTarget": "isolated",
  "payload": {
    "kind": "agentTurn",
    "message": "TASK INSTRUCTIONS HERE",
    "model": "openrouter/deepseek/deepseek-v3.2",
    "timeoutSeconds": 120
  },
  "delivery": {
    "mode": "none"
  }
}

Schedule Patterns

PatternCron ExpressionNotes
Every 30 min*/30 * * * *Good for inbox checks, monitoring
Every hour0 * * * *Self-reflection, status checks
Daily at 4 AM0 4 * * *Cleanup, backups (during quiet hours)
Daily at 6 AM0 6 * * *Morning digests, daily summaries
Weekly Monday 2 PM0 14 * * 1Weekly outreach, reviews
One-shotUse "kind": "at" insteadReminders, one-time tasks

Task Instruction Conventions

  1. Be explicit with commands — Give the cron agent exact bash commands to run. It doesn't have our context.
  2. Include skip conditions — If there's nothing to do, the agent should reply SKIP to avoid wasting tokens.
  3. Handle its own output — The job should post results to Telegram (or wherever) using the message tool directly. Don't rely on delivery mode for formatted output.
  4. Include error handling — What should happen if a command fails?
  5. Keep instructions self-contained — The cron agent wakes up with no context. Everything it needs should be in the task message.

Telegram Posting from Cron Jobs

When a cron job needs to notify us, include these instructions in the task:

Post to Telegram using the message tool:
- action: send
- channel: telegram
- target: -1003856094222
- threadId: TOPIC_ID
- message: Your formatted message

Topic IDs:

  • 1 — Main topic (general updates, alerts)
  • 573 — Research
  • 1032 — Crypto
  • 1488 — PR updates / dev notifications
  • 1869 — Sticker store
  • 3188 — Activity feed (workspace changes)

Delivery Modes

ModeWhen to Use
"mode": "none"Job posts its own output to Telegram (most common)
"mode": "announce"OpenClaw auto-delivers the agent's final message to a channel. Use when output IS the message (e.g., daily digest). Set "channel": "telegram" and "to": "-1003856094222:TOPIC_ID"

Anti-Patterns

Don't use Opus for cron jobs unless the task genuinely needs it. Most cron tasks are simple checks. ❌ Don't use heartbeat for things that can be a cron job. Heartbeat runs in the main session (Opus) and costs way more. ❌ Don't create cron jobs that loop/poll — each run should be a single check. If you need polling, use a background exec script instead. ❌ Don't set delivery mode to "announce" and also have the job post to Telegram — you'll get duplicate messages.

Existing Jobs (Reference)

Check current jobs anytime with the cron list tool. As of setup:

  • workspace-activity-feed — Every 30 min, commits workspace changes, posts to activity feed
  • agentmail-inbox-check — Every 30 min, checks for new emails, responds to agents
  • sub-agent-monitor — Every 15 min, checks on stalled sub-agents
  • self-reflection — Hourly, reviews recent sessions for lessons learned
  • daily-workspace-commit — Daily 4 AM, git commits workspace changes
  • system-watchdog — Daily 4 AM, checks system resources
  • OpenClaw Daily News Digest — Daily 6 AM, generates news digest
  • sticker-sales-loop — Weekly Monday 2 PM, agent outreach for sticker store

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Charging Ledger

充电记录账本 - 从截图提取充电信息并记录,支持按周、月查询汇总。**快速暗号**: 充电记录、充电账本、充电汇总。**自然触发**: 记录充电、查询充电费用、充电统计。

Registry SourceRecently Updated
General

qg-skill-sync

从团队 Git 仓库同步最新技能到本机 OpenClaw。支持首次设置、定时自动更新、手动同步和卸载。当用户需要同步技能、设置技能同步、安装或更新团队技能,或提到「技能同步」「同步技能」时使用。

Registry SourceRecently Updated
General

Ad Manager

广告投放管理 - 自动管理广告投放、优化ROI、生成报告。适合:营销人员、电商运营。

Registry SourceRecently Updated