Agent skill

Cron

by mateaix in mateaix/mateclaw

仅在需要未来定时执行或周期执行任务时使用。通过 createcronjob / listcronjobs / togglecronjob / deletecronjob 管理定时任务。

Apache-2.0Auto-check passedProductivity & Automation

Install Cron

skills CLI
$ npx skills add mateaix/mateclaw --skill cron -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mateaix/mateclaw cron --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mateaix/mateclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/mateclaw-server/src/main/resources/skills/cron .claude/skills/cron && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cron
GitHub stars
1.1k
Token cost
~437 tokens
SKILL.md length
73 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
Apache-2.0

At a glance

仅在需要未来定时执行或周期执行任务时使用。通过 createcronjob / listcronjobs / togglecronjob / deletecronjob 管理定时任务。

  • Tasks that involve Scheduled and recurring tasks
  • SKILL.md covers 何时使用, 工具速查, 工作流程 and Cron 表达式参考(5 段格式), plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cron is an agent skill from mateaix/mateclaw. 仅在需要未来定时执行或周期执行任务时使用。通过 createcronjob / listcronjobs / togglecronjob / deletecronjob 管理定时任务。

Its SKILL.md is about 440 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Scheduled and recurring tasks. The repository describes itself as: 🤖 MateClaw — Your second brain with Multi-Agent Orchestration, MCP Protocol, Skills & Memory, Dream, and Multi-Channel Support. Built on Spring AI Alibaba. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Scheduled and recurring tasks

Example prompts

  • “/cron”

What it can do on your machine

Read from SKILL.md and the folder at commit 3b5f7de. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cron loads about 437 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 73 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~437

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mateaix/mateclaw at commit 3b5f7de, republished under its Apache-2.0 licence (© mateaix). 73 words, ~437 tokens.

Download SKILL.mdSave it as .claude/skills/cron/SKILL.md (or your agent's skills folder).
name
cron
description
仅在需要未来定时执行或周期执行任务时使用。通过 create_cron_job / list_cron_jobs / toggle_cron_job / delete_cron_job 管理定时任务。
version
1.4.0
dependencies.tools
create_cron_job, list_cron_jobs, toggle_cron_job, delete_cron_job

定时任务管理

何时使用

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

应该使用
  • 用户要求"每天 / 每周 / 每小时"执行某件事
  • 用户要求"明天 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 分钟)的任务,除非用户明确需要

© mateaix, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in mateclaw-server/src/main/resources/skills/cron of mateaix/mateclaw.

Open the folder on GitHubat commit 3b5f7de

Compare with similar skills

Cron next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cron compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cron this skillmateaix/mateclaw1.1k—~437Automated safety check: PassApache-2.0
ScheduleTinyAGI/tinyagi3.6k—~1.4kAutomated safety check: PassMIT
Send User MessageTinyAGI/tinyagi3.6k—~829Automated safety check: PassMIT
Cron Opsczl9707/build-your-own-openclaw1.9k—~593Automated safety check: PassMIT
X Bookmarkssharbelxyz/x-bookmarks289—~2kAutomated safety check: NotesNone
Wp Wpcli And OpsAutomattic/agent-skills2112 repos~988Automated safety check: PassNone

Similar skills

  • Schedule

    TinyAGI/tinyagi

    Create, list, and delete scheduled tasks (recurring or one-time) that send messages to agents.

    3.6k GitHub stars~1.4k tokensUpdated 6 mo ago
    Productivity & AutomationAuto-check passed
  • Send User Message

    TinyAGI/tinyagi

    Send a proactive message to a paired user via their channel (Discord, Telegram, or WhatsApp).

    3.6k GitHub stars~829 tokensUpdated 6 mo ago
    Productivity & AutomationAuto-check passed
  • Cron Ops

    czl9707/build-your-own-openclaw

    Create, list, and delete scheduled cron jobs. An agent skill from czl9707/build-your-own-openclaw.

    1.9k GitHub stars~593 tokensUpdated 3 mo ago
    Productivity & AutomationAuto-check passed
  • X Bookmarks

    sharbelxyz/x-bookmarks

    Fetch, summarize, and manage X/Twitter bookmarks via bird CLI or X API v2.

    289 GitHub stars~2k tokensUpdated 7 mo ago
    Productivity & AutomationAuto-check: notes
  • Wp Wpcli And Ops

    Automattic/agent-skills

    A skill your agent uses when working with WP-CLI (wp) for WordPress operations: safe search-replace, db export/import, plugin/theme/user/content management, cron, cache flushing, multisite, and…

    211 GitHub starsUsed in 2 repos~988 tokens
    Productivity & AutomationAuto-check passed
  • Ohdear

    ohdearapp/ohdear-cli

    Manage Oh Dear website monitoring using the ohdear CLI. An agent skill from ohdearapp/ohdear-cli.

    141 GitHub stars~1.1k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed

More from mateaix/mateclaw

All 17 skills in this repo
  • Pixel Art

    mateaix/mateclaw

    Pixel art w/ era palettes (NES, Game Boy, PICO-8). An agent skill from mateaix/mateclaw.

    1.1k GitHub starsUsed in 5 repos~1.8k tokens
    Auto-check passed
  • DOCX

    mateaix/mateclaw

    A skill your agent uses whenever the user wants to create, read, edit, or manipulate Word documents (.docx files).

    1.1k GitHub stars~4.1k tokensUpdated 4 days ago
    Auto-check passed
  • XLSX

    mateaix/mateclaw

    Use this skill any time a spreadsheet file is the primary input or output.

    1.1k GitHub stars~1.5k tokensUpdated 4 days ago
    Auto-check passed
  • Execute plans via delegatetask subagents (2-stage review). An agent skill from mateaix/mateclaw.

    1.1k GitHub starsUsed in 3 repos~2.6k tokens
    Auto-check passed
  • Ideation

    mateaix/mateclaw

    Generate project ideas via creative constraints. An agent skill from mateaix/mateclaw.

    1.1k GitHub starsUsed in 2 repos~1.5k tokens
    Auto-check passed
  • Architecture Diagram

    mateaix/mateclaw

    Dark-themed SVG architecture/cloud/infra diagrams as HTML. An agent skill from mateaix/mateclaw.

    1.1k GitHub starsUsed in 5 repos~1.7k tokens
    Auto-check passed

Questions about Cron

What does Cron do?

仅在需要未来定时执行或周期执行任务时使用。通过 createcronjob / listcronjobs / togglecronjob / deletecronjob 管理定时任务。. Cron is an agent skill from mateaix/mateclaw.

When should I use Cron?

Cron fits situations like: tasks that involve Scheduled and recurring tasks.

How do I install Cron in Claude Code?

Run `npx skills add mateaix/mateclaw --skill cron -a claude-code`. Or copy the skill folder (mateclaw-server/src/main/resources/skills/cron in mateaix/mateclaw) into .claude/skills/cron in your project. Claude Code loads it when a task matches its description.

How do I install Cron in Codex?

Run `npx skills add mateaix/mateclaw --skill cron -a codex`. Or copy the skill folder (mateclaw-server/src/main/resources/skills/cron in mateaix/mateclaw) into .agents/skills/cron in your project. Codex loads it when a task matches its description.

Can I use Cron in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mateaix/mateclaw --skill cron -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cron, .gemini/skills/cron, .github/skills/cron and .opencode/skills/cron in your project.

What does Cron need to run?

SKILL.md names no scripts, command-line tools or credentials: Cron is instructions for the agent only.

Does Cron access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cron safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cron use?

Cron is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cron use?

About 437 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cron?

Skills that share tags, products or a category with Cron: Schedule (TinyAGI/tinyagi, 3.6k stars), Send User Message (TinyAGI/tinyagi, 3.6k stars), Cron Ops (czl9707/build-your-own-openclaw, 1.9k stars) and X Bookmarks (sharbelxyz/x-bookmarks, 289 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cron?

mateaix (a GitHub user) maintains it in mateaix/mateclaw, which has 1,149 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 5, 2026.

Source: mateaix/mateclaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.