Cron logo

Cron

CommunityPopular
mateaix
cron

仅在需要未来定时执行或周期执行任务时使用。通过 create_cron_job / list_cron_jobs / toggle_cron_job / delete_cron_job 管理定时任务。

Overview

Publishermateaix
Repositorymateclaw
Skill namecron
Stars
1.1K
Forks
337
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by mateaix on GitHub. Read the source before you install it.

Installation

Install the Cron AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/mateaix/mateclaw/tree/dev/mateclaw-server/src/main/resources/skills/cron
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mateaix/mateclaw.git /tmp/mateclaw
mkdir -p .claude/skills
cp -r /tmp/mateclaw/mateclaw-server/src/main/resources/skills/cron .claude/skills/cron
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cron in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cron on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cron is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

定时任务管理

何时使用

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

应该使用

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

Frequently asked questions

What does the Cron AI skill do?

仅在需要未来定时执行或周期执行任务时使用。通过 create_cron_job / list_cron_jobs / toggle_cron_job / delete_cron_job 管理定时任务。

Why use Cron on TypingMind?

Because you install it once and use it with any model. Cron is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cron in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/mateaix/mateclaw/tree/dev/mateclaw-server/src/main/resources/skills/cron. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Cron?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cron?

As many as you like. As long as a model supports skills, you can use Cron with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cron AI skill free?

Yes. It is published on GitHub by mateaix under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇