← 返回 Skills 市场
kjvarga

Create Cron Job

作者 Karl Varga · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
241
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install create-cron-job
功能描述
Create and configure OpenClaw cron jobs with correct scheduling, execution modes, and delivery patterns. Use when asked to schedule a task, set up a recurrin...
使用说明 (SKILL.md)

Create Cron Job

Set up a scheduled task per conventions/cron.md. Read the convention first.

Need a periodic check instead? Consider HEARTBEAT.md — see "Cron vs Heartbeat" in conventions/cron.md.

Before You Start

Determine:

  • Which agent handles the job
  • Main session (needs conversation context) or isolated (standalone)
  • Delivery mode (announce, webhook, none)

Steps

1. Choose the execution mode

Question If yes If no
Does the task need recent conversation context? Main session Isolated
Does the agent need its AGENTS.md/SOUL.md? Isolated (normal) Isolated + lightContext
Is this a one-shot reminder? --at with --delete-after-run Recurring schedule

2. Choose a job name

Format: \x3Cagent-id>-\x3Cpurpose> in kebab-case.

Examples: auditor-daily-report, archivist-daily-backup, reminder-standup-meeting

3. Choose a schedule

Pattern CLI flag Example
Cron expression --cron --cron "0 7 * * *" (7 AM daily)
Fixed interval --every --every "4h"
One-shot (relative) --at --at "20m"
One-shot (absolute) --at --at "2026-03-15T09:00:00Z"

Always set timezone for cron expressions: --tz "America/Los_Angeles"

4. Create the job

Main session (task needs conversational context):

openclaw cron add \
  --name "\x3Cagent-id>-\x3Cpurpose>" \
  --every "\x3Cinterval>" \
  --session main \
  --system-event "\x3Cinstruction text>" \
  --wake now

Isolated (standalone task):

openclaw cron add \
  --name "\x3Cagent-id>-\x3Cpurpose>" \
  --cron "\x3Cexpr>" \
  --tz "\x3Ctimezone>" \
  --session isolated \
  --message "\x3Cinstruction text>" \
  --agent \x3Cagent-id> \
  --announce \
  --channel \x3Cchannel> \
  --to "\x3Ctarget>"

Isolated + lightweight context (simple, self-contained chore):

openclaw cron add \
  --name "\x3Cagent-id>-\x3Cpurpose>" \
  --every "\x3Cinterval>" \
  --session isolated \
  --message "\x3Cself-contained instruction>" \
  --light-context \
  --announce

One-shot reminder:

openclaw cron add \
  --name "reminder-\x3Cpurpose>" \
  --at "\x3Ctime>" \
  --session isolated \
  --message "\x3Creminder text>" \
  --announce \
  --delete-after-run

5. Bind to an agent

Always use --agent \x3Cagent-id> for agent-specific jobs.

6. Set delivery mode

  • Announce (most jobs): --announce --channel \x3Cch> --to "\x3Ctarget>"
  • Webhook: --webhook \x3Curl>
  • None: omit delivery flags

7. Document in the agent's AGENTS.md

## Scheduled Tasks

| Job | Schedule | Message | Action |
|---|---|---|---|
| `\x3Cjob-name>` | `\x3Cschedule>` | `\x3Cmessage>` | \x3Cwhat the agent does> |

8. Create a skill if the job uses scripts

If the cron job executes scripts (not just a self-contained message), create a skill using the create-skill skill:

  • Scripts live in workspace/skills/\x3Cskill-name>/scripts/, not in ad-hoc workspace directories
  • The skill makes the capability discoverable for on-demand use, not just cron
  • Description should cover both automated (cron) and on-demand (user request) triggers
  • See "Workspace File Placement" in conventions/skills.md for where files belong

Skip if the cron job's message is fully self-contained (no external scripts or supporting files).

9. Test the job

openclaw cron run \x3CjobId>           # Force immediate execution
openclaw cron list                  # Verify job exists
openclaw cron runs --id \x3CjobId>     # Check run history

Post-Creation Checklist

  • Job name follows \x3Cagent-id>-\x3Cpurpose> kebab-case convention
  • Timezone set for cron expressions (--tz)
  • Explicit --agent binding for agent-specific jobs
  • Delivery mode set (announce/webhook/none)
  • Channel and target specified for announce delivery
  • Agent's AGENTS.md updated with Scheduled Tasks entry
  • Job tested with openclaw cron run \x3CjobId>
  • No duplicate: checked that no system crontab or existing job covers the same task
  • One-shot reminders use --delete-after-run
  • If job uses scripts: skill created in workspace/skills/\x3Cname>/ with scripts in its scripts/ subdir
  • No ad-hoc files or directories created at workspace root (see conventions/skills.md)
安全使用建议
This skill appears coherent for creating OpenClaw cron jobs, but before installing or running it: 1) Confirm the `openclaw` CLI exists on the host (SKILL.md assumes it, but metadata doesn't declare it). 2) Ensure you have the expected workspace layout and convention files (conventions/cron.md, AGENTS.md) or adapt instructions accordingly. 3) Review any webhook URLs or channel targets you configure — they will cause the job to send data externally. 4) If a cron job will run scripts, follow the guidance to place scripts under workspace/skills/<name>/scripts/ and review those scripts for safety. 5) Test jobs in a safe environment (use openclaw cron run <jobId>) before enabling production schedules.
功能分析
Type: OpenClaw Skill Name: create-cron-job Version: 1.0.0 The skill bundle provides legitimate instructions and CLI command templates for an AI agent to manage scheduled tasks using the 'openclaw cron' utility. The content in SKILL.md focuses on administrative best practices, such as naming conventions, execution modes, and documentation in AGENTS.md, without any evidence of malicious intent, data exfiltration, or unauthorized persistence.
能力评估
Purpose & Capability
SKILL.md clearly documents how to create cron jobs using the openclaw CLI and workspace conventions (conventions/cron.md, AGENTS.md, workspace/skills/...). However, the registry metadata lists no required binaries or config paths even though the instructions invoke the `openclaw` CLI and expect a particular workspace layout and convention files to exist. This is a mild inconsistency (likely an omission) but not evidence the skill is doing unrelated work.
Instruction Scope
The instructions remain focused on scheduling, naming, binding, delivery, testing, and where to place scripts. They reference local convention files and workspace paths (to document and place skills/scripts) and delivery options (announce, webhook, none). No instructions request unrelated secrets, system-wide config, or arbitrary data collection. Note: delivery modes (webhook/announce) will post to external endpoints or channels as expected for a scheduling tool.
Install Mechanism
This is an instruction-only skill with no install spec and no code files, so nothing is written to disk by the skill itself.
Credentials
No environment variables or credentials are declared or required. The instructions do use webhook URLs and channel/target identifiers when configuring delivery — these are normal for scheduling/delivery and don't require hidden credentials by default. Verify any webhook URLs or channel tokens you supply are appropriate and trusted.
Persistence & Privilege
The skill is not always-enabled and uses default autonomous invocation settings. It does not request elevated platform-wide persistence or claim to modify other skills or system-wide agent settings. It instructs the user/agent to update the agent's AGENTS.md, which is expected documentation work.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install create-cron-job
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /create-cron-job 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the create-cron-job skill for OpenClaw. - Provides step-by-step instructions to create and configure cron jobs, covering schedule patterns, execution modes, and delivery methods. - Includes detailed examples for main session, isolated, lightweight, and one-shot jobs. - Emphasizes proper job naming, agent binding, and documentation procedures. - Clarifies when to create supporting skills and where related files should be placed. - Features a comprehensive post-creation checklist for correctness and compliance.
元数据
Slug create-cron-job
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Create Cron Job 是什么?

Create and configure OpenClaw cron jobs with correct scheduling, execution modes, and delivery patterns. Use when asked to schedule a task, set up a recurrin... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 241 次。

如何安装 Create Cron Job?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install create-cron-job」即可一键安装,无需额外配置。

Create Cron Job 是免费的吗?

是的,Create Cron Job 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Create Cron Job 支持哪些平台?

Create Cron Job 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Create Cron Job?

由 Karl Varga(@kjvarga)开发并维护,当前版本 v1.0.0。

💬 留言讨论