cron

cron is a skill for Claude Code, Codex from mateaix/mateclaw. It costs 42 tokens per session (812 once invoked), scanned A, original, Apache-2.0.

A scheduler for tasks that should run automatically at a future time or repeat on a schedule. It uses cron expressions, a text format for describing times such as every day at 9:00.

In plain words
What is it for?
Setting up recurring reports, checks, notifications, reminders, and other agent tasks, including jobs for a specific future date or time.
Why use it?
It removes the need to remember recurring work or start it manually. It also lets you view, pause, resume, and delete scheduled tasks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Setting up recurring reports, checks, notifications, reminders, and other agent tasks, including jobs for a specific future date or time.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mateaix/mateclaw/cron
About the project

MateClaw is a pluggable agent runtime that coordinates AI agents, tools, conversations, memory, and workflows. It is designed for personal and multi-user AI assistants, including agents used through chat platforms. Catalogue add-ons provide skills for extending its agent workflows.

mateaix/mateclaw · 1,164 stars · on GitHub · claw.mate.vip

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mateaix/mateclaw --skill cron
Clone the repo
git clone --depth 1 https://github.com/mateaix/mateclaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cron

README.md
[![agentmods](https://agentmods.dev/badge/skills/mateaix/mateclaw/cron/github.svg)](https://agentmods.dev/skills/mateaix/mateclaw/cron)
Your own site
<a href="https://agentmods.dev/skills/mateaix/mateclaw/cron"><img src="https://agentmods.dev/badge/skills/mateaix/mateclaw/cron/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cron

Your own site · 80×15
<a href="https://agentmods.dev/skills/mateaix/mateclaw/cron"><img src="https://agentmods.dev/badge/skills/mateaix/mateclaw/cron.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 812 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.00812
Opus 5.5 $0.00017 $0.00325
Sonnet 5.5 $0.00008 $0.00162
Haiku 4.5 $0.00004 $0.00081

Measured 1mo ago against content hash b5571101c47a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cron scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mateclaw-server/src/main/resources/skills/cron/SKILL.md · 107 lines

What it actually says

定时任务管理

何时使用

只有在需要未来某个时间自动执行,或按周期重复执行时使用本技能。

应该使用

  • 用户要求"每天 / 每周 / 每小时"执行某件事
  • 用户要求"明天 9 点 / 下周一 / 某个时间"自动提醒或执行
  • 需要长期周期性通知、检查、汇报

不应使用

  • 只是现在立即执行一次
  • 只是当前会话中的正常回复
  • 用户没有明确执行时间或周期

工具速查

操作 工具调用
查看所有任务 list_cron_jobs()
创建任务 create_cron_job(name, cronExpression, triggerMessage, timezone)
暂停任务 toggle_cron_job(jobId, enabled=false)
恢复任务 toggle_cron_job(jobId, enabled=true)
删除任务 delete_cron_job(jobId)

工作流程

第一步:确认必要信息

创建前必须确认以下信息,缺一不可:

  • 任务名称(name)
  • 执行周期(cronExpression,5 段 cron 表达式)
  • 触发消息(triggerMessage,任务触发时 Agent 收到的提示词)
  • 时区(timezone,可选,默认 Asia/Shanghai)

信息不全时先追问用户,不要用占位符创建任务。

第二步:创建任务

create_cron_job(
  name="每日早报",
  cronExpression="0 9 * * *",
  triggerMessage="请获取今日财经新闻并发送摘要给用户",
  timezone="Asia/Shanghai"
)

第三步:管理任务

查看所有任务:

list_cron_jobs()

暂停(从返回的任务列表中获取 jobId):

toggle_cron_job(jobId=123, enabled=false)

恢复:

toggle_cron_job(jobId=123, enabled=true)

删除:

delete_cron_job(jobId=123)

Cron 表达式参考(5 段格式)

格式:分 时 日 月 周
0 9 * * *        每天 09:00
0 */2 * * *      每 2 小时整点
30 8 * * 1-5     工作日 08:30
0 0 * * 0        每周日零点
*/15 * * * *     每 15 分钟
0 9,18 * * *     每天 09:00 和 18:00

常见错误

  • 缺少信息就创建:必须先确认周期、名称和触发消息
  • 只是立即执行一次:不需要创建 cron,直接执行即可
  • 时区混淆:默认 Asia/Shanghai;若用户在其他时区,明确指定

安全须知

  • triggerMessage 是 Agent 触发时收到的提示词,不是发给用户的消息
  • 避免创建执行频率极高(< 5 分钟)的任务,除非用户明确需要
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 107 lines · 42 tokens per session scan A b5571101c47a

Subscribe to this mod's changes

cron is a skill published in the GitHub repository mateaix/mateclaw (1,164 stars, last pushed 2d ago), licensed Apache-2.0. It adds 42 tokens to every session and 812 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.