Agent skill

Cron Manager

by countbot-ai in countbot-ai/CountBot

定时任务管理。创建、查看、修改、删除定时任务,管理任务会话数据。当用户需要设置提醒、定时执行任务、管理调度计划时使用. An agent skill from countbot-ai/CountBot.

MITAuto-check passedProductivity & Automation

Install Cron Manager

skills CLI
$ npx skills add countbot-ai/CountBot --skill cron-manager -a claude-code

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

GitHub CLI
$ gh skill install countbot-ai/CountBot cron-manager --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/countbot-ai/CountBot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/workspace/skills/cron-manager .claude/skills/cron-manager && 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-manager
GitHub stars
782
Token cost
~1.4k tokens
SKILL.md length
196 words
Files
2 (incl. scripts)
Skills in repo
11
Repo updated
First seen
Licence
MIT

At a glance

定时任务管理。创建、查看、修改、删除定时任务,管理任务会话数据。当用户需要设置提醒、定时执行任务、管理调度计划时使用. An agent skill from countbot-ai/CountBot.

  • Tasks that involve Scheduled and recurring tasks
  • SKILL.md covers 使用场景, 命令行调用, Cron 表达式参考 and 注意事项, plus 2 more sections
  • Runs Python scripts from its folder; calls python3 and curl

What it does

Cron Manager is an agent skill from countbot-ai/CountBot. 定时任务管理。创建、查看、修改、删除定时任务,管理任务会话数据。当用户需要设置提醒、定时执行任务、管理调度计划时使用。

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/cron_manager.py`).

It sits in Productivity & Automation, covering Scheduled and recurring tasks. The repository describes itself as: 更适配中文用户的轻量开源AI Agent | 国产大模型Coding plan支持 | 兼容OpenClaw Skills生态| 已接入微信ClawBot/微博龙虾/飞书/钉钉/QQ/小智AI/Telegram/deepseek-v4。 The licence is MIT.

When your agent uses it

  • Tasks that involve Scheduled and recurring tasks

Example prompts

  • “/cron-manager”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit 3c26f11. 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

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • curl

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

  • Network

    No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.

    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 Manager loads about 1.4k tokens when it runs. Until then it costs about 18 tokens; SKILL.md has 196 words of instructions outside code blocks.

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

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); the scripts in this folder are not scanned.

SKILL.md

The full file from countbot-ai/CountBot at commit 3c26f11, republished under its MIT licence (© countbot-ai). 196 words, ~1,423 tokens.

Download SKILL.mdSave it as .claude/skills/cron-manager/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
cron-manager
description
定时任务管理。创建、查看、修改、删除定时任务,管理任务会话数据。当用户需要设置提醒、定时执行任务、管理调度计划时使用。
version
1.1.0
always
false

定时任务管理

通过命令行管理 CountBot 的定时任务系统,支持完整的 CRUD 操作和会话数据管理。

使用场景

  • 用户说"每天早上9点提醒我开会" -> 创建定时任务
  • 用户说"帮我设置一个每小时查天气的任务" -> 创建定时任务
  • 用户说"看看我有哪些定时任务" -> 列出任务
  • 用户说"把那个天气任务改成每2小时执行" -> 修改任务
  • 用户说"删掉那个新闻任务" -> 删除任务
  • 用户说"暂停/恢复某个任务" -> 禁用/启用任务
  • 用户说"立即执行一次那个任务" -> 手动触发
  • 用户说"看看天气任务的历史消息" -> 查看会话消息
  • 用户说"清理一下定时任务的历史记录" -> 清理会话

命令行调用

开始前先快速确认后端可用:

bash
curl -s http://127.0.0.1:8000/api/cron/jobs || echo "后端服务没在运行!"

所有操作优先通过 exec 工具执行这个脚本:

bash
python3 skills/cron-manager/scripts/cron_manager.py <command> [args]

硬性规则:

  • 只用 skills/cron-manager/scripts/cron_manager.py 这个脚本名,不要猜 cron.py
  • info/delete/enable/disable/run/messages/clean/reset 都优先传位置参数 <job_id>
  • 不要先 ls、再 help、再试错多次;优先直接按下面的准确命令执行
  • 只有在命令返回参数错误时,才补一条 -h 查看帮助
创建任务
bash
# 基本创建(默认启用自动重试1次)
python3 skills/cron-manager/scripts/cron_manager.py create --name "每日天气" --schedule "0 9 * * *" --message "查询今天的天气并生成播报"

# 创建不重试的任务
python3 skills/cron-manager/scripts/cron_manager.py create --name "简单任务" --schedule "0 9 * * *" --message "执行简单任务" --max-retries 0

# 创建并推送到当前渠道(多机器人渠道应同时指定 account_id)
python3 skills/cron-manager/scripts/cron_manager.py create --name "每日天气" --schedule "0 9 * * *" --message "查询今天的天气并生成播报" --channel feishu --account-id bot --chat-id ou_xxxx --deliver

# 创建带自定义重试的任务(失败后最多重试 3 次,每次间隔 60 秒)
python3 skills/cron-manager/scripts/cron_manager.py create --name "重要任务" --schedule "0 9 * * *" --message "执行重要任务" --max-retries 3 --retry-delay 60

# 创建一次性任务(成功后自动删除)
python3 skills/cron-manager/scripts/cron_manager.py create --name "一次性提醒" --schedule "0 14 * * *" --message "下午2点提醒" --delete-on-success
列出任务
bash
curl -s http://127.0.0.1:8000/api/cron/jobs || echo "后端服务没在运行!"

# 需要更易读的格式时再用脚本
python3 skills/cron-manager/scripts/cron_manager.py list
查看任务详情
bash
python3 skills/cron-manager/scripts/cron_manager.py info <job_id>
修改任务
bash
# 修改调度时间
python3 skills/cron-manager/scripts/cron_manager.py update <job_id> --schedule "0 */2 * * *"

# 修改名称
python3 skills/cron-manager/scripts/cron_manager.py update <job_id> --name "新名称"

# 修改执行消息
python3 skills/cron-manager/scripts/cron_manager.py update <job_id> --message "新的执行指令"

# 修改渠道投递(注意:update 的 --deliver 需要显式写 true/false)
python3 skills/cron-manager/scripts/cron_manager.py update <job_id> --channel telegram --account-id default --chat-id 123456 --deliver true
删除任务
bash
python3 skills/cron-manager/scripts/cron_manager.py delete <job_id>
启用/禁用任务
bash
python3 skills/cron-manager/scripts/cron_manager.py enable <job_id>
python3 skills/cron-manager/scripts/cron_manager.py disable <job_id>
手动触发执行
bash
python3 skills/cron-manager/scripts/cron_manager.py run <job_id>
验证 Cron 表达式
bash
python3 skills/cron-manager/scripts/cron_manager.py validate "0 9 * * *"
批量创建任务
bash
# 从 JSON 文件批量创建任务
python3 skills/cron-manager/scripts/cron_manager.py batch-create --file tasks.json

JSON 文件格式示例:

json
[
  {
    "name": "每日天气",
    "schedule": "0 9 * * *",
    "message": "查询今天的天气",
    "enabled": true,
    "max_retries": 3,
    "retry_delay": 60
  },
  {
    "name": "每周报告",
    "schedule": "0 10 * * 1",
    "message": "生成本周工作报告",
    "enabled": true,
    "delete_on_success": false
  }
]
批量删除任务
bash
# 批量删除多个任务(支持 ID 前缀匹配)
python3 skills/cron-manager/scripts/cron_manager.py batch-delete abc123 def456 ghi789
查看任务会话消息
bash
python3 skills/cron-manager/scripts/cron_manager.py messages <job_id> --limit 20
清理任务会话消息
bash
# 保留最近10条
python3 skills/cron-manager/scripts/cron_manager.py clean <job_id> --keep 10

# 清空所有消息
python3 skills/cron-manager/scripts/cron_manager.py clean <job_id> --keep 0
重置任务会话
bash
python3 skills/cron-manager/scripts/cron_manager.py reset <job_id>

Cron 表达式参考

格式: 分钟 小时 日 月 星期

表达式含义
0 9 * * *每天 9:00
*/30 * * * *每 30 分钟
0 9 * * 1-5工作日 9:00
0 0 1 * *每月 1 日 0:00
0 */2 * * *每 2 小时整点
0 8,12,18 * * *每天 8:00、12:00、18:00

注意事项

  • job_id 支持前缀匹配,输入前几位即可
  • 内置系统任务完全隐藏,不可见也不可操作
  • message 字段是任务执行时发送给 AI 的指令,应该写清楚要做什么
  • 优先先跑 curl -s http://127.0.0.1:8000/api/cron/jobs || echo "后端服务没在运行!",确认后端在线
  • 严禁把脚本名写成 cron.py;规范入口是 cron_manager.py
  • 对接受 job_id 的命令,只使用位置参数,不要写 --id
  • create 的 --deliver 是无参开关;update 的 --deliver 必须写成 true 或 false
  • 创建任务时如果需要推送结果到渠道,必须指定 --deliver
  • 多机器人渠道(如飞书)必须区分 --account-id,否则会默认落到 default
  • 在带渠道上下文的会话中执行时,脚本会自动补全当前 channel/chat_id/account_id
  • clean 操作不可撤销,清理前建议先用 messages 查看内容
  • reset 会删除整个会话,任务下次执行时会自动创建新会话

新功能说明

自动重试机制
  • 默认启用自动重试,失败后重试1次,间隔60秒
  • 使用 --max-retries 指定最大重试次数(0 = 不重试,最多5次)
  • 使用 --retry-delay 指定重试间隔秒数(默认 60 秒)
  • 任务失败后会自动重试,直到成功或达到最大重试次数
  • 重试期间任务状态显示为 "retrying"
  • 重试耗尽后按原定 cron 表达式继续执行
成功后自动删除
  • 使用 --delete-on-success 标记任务为一次性任务
  • 任务执行成功后会自动从数据库中删除
  • 适用于一次性提醒、临时任务等场景
  • 如果任务失败,不会删除,会按重试策略处理
批量操作
  • batch-create 支持从 JSON 文件批量创建任务
  • batch-delete 支持一次删除多个任务
  • 批量操作会显示成功和失败的统计信息
  • 部分失败不影响其他任务的处理

渠道自动识别

当用户通过飞书、钉钉、QQ、Telegram 等渠道与 AI 对话时,系统提示词中会自动包含当前渠道信息:

Channel: feishu
Chat ID: ou_xxxx
Account ID: bot

创建定时任务时,应主动利用这些信息:

  • 如果用户说"每天提醒我",自动使用当前渠道和 chat_id 作为投递目标
  • 如果当前渠道支持多机器人,必须同时带上当前 Account ID
  • 如果用户说"推送到这个群",从上下文获取 channel 和 chat_id
  • 如果是网页端对话(无渠道信息),创建任务时不设置投递,仅在系统内执行

示例:用户在飞书群中说"每天9点提醒我看天气"

bash
python3 skills/cron-manager/scripts/cron_manager.py create --name "每日天气提醒" --schedule "0 9 * * *" --message "查询今天的天气并生成播报" --channel feishu --account-id bot --chat-id ou_xxxx --deliver

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

Files

SKILL.md and 1 other file (scripts) in workspace/skills/cron-manager of countbot-ai/CountBot.

  • SKILL.md
  • scripts/cron_manager.py

Open the folder on GitHubat commit 3c26f11

Compare with similar skills

Cron Manager 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 Manager compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cron Manager this skillcountbot-ai/CountBot782—~1.4kAutomated safety check: PassMIT
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
Jobsphysiclaw/PhysiClaw3861 repos~1.1kAutomated safety check: PassMIT

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
  • Jobs

    physiclaw/PhysiClaw

    A skill your agent uses when the task involves scheduling future work — any "remind me at …", "every weekday …", "check again in 30 min", or closing a fired cron job.

    386 GitHub starsUsed in 1 repo~1.1k tokens
    Productivity & AutomationAuto-check passed
  • 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

More from countbot-ai/CountBot

All 11 skills in this repo
  • Ima Knowledge Base

    countbot-ai/CountBot

    通过 IMA OpenAPI 处理知识库任务。支持知识库内容搜索、命中详情查看、条目浏览、列出知识库、上传文件、导入网页。用户提到知识库、资料库、上传到知识库、导入网页、搜知识库时使用。

    782 GitHub stars~506 tokensUpdated 4 days ago
    Auto-check passed
  • Find Skills

    countbot-ai/CountBot

    基于腾讯 SkillHub 搜索、安装和管理技能。用户提到“找技能”“安装 skill”“扩展功能”“启用/禁用 skill”“删除 skill”“安装 SkillHub CLI”时优先使用。

    782 GitHub starsUsed in 1 repo~794 tokens
    Auto-check passed
  • Image Analysis

    countbot-ai/CountBot

    图片分析与识别,可分析本地图片、网络图片、视频、文件。适用于 OCR、物体识别、场景理解等。当用户发送图片或要求分析图片时必须使用此技能。

    782 GitHub starsUsed in 1 repo~532 tokens
    Auto-check passed
  • Web Design

    countbot-ai/CountBot

    网页设计与部署。生成精美的单页 HTML 网页(报告、落地页、数据可视化等),支持一键部署到 Cloudflare Pages。使用 Tailwind CSS + Chart.js + Font Awesome 技术栈。当用户要求制作网页、生成报告页面、创建落地页、数据可视化展示、部署网页到线上时使用。

    782 GitHub stars~1k tokensUpdated 4 days ago
    Auto-check passed
  • News

    countbot-ai/CountBot

    新闻与资讯查询。获取中文新闻和全球 AI 技术资讯,支持按分类查询(时政、财经、科技、社会、国际、体育、娱乐、AI 技术、AI 社区)。当用户询问最新新闻、AI 动态、行业资讯时使用。

    782 GitHub starsUsed in 1 repo~876 tokens
    Auto-check passed
  • Agent Team Manager

    countbot-ai/CountBot

    多智能体团队管理。创建、查看、修改、删除 CountBot 的多智能体团队,管理团队成员(角色)和团队级自定义模型配置。当用户要新建 Pipeline/Graph/Council 团队、调整成员分工、修改依赖关系、开关技能系统、设置团队专属模型时使用。

    782 GitHub stars~1.6k tokensUpdated 4 days ago
    Auto-check passed

Questions about Cron Manager

What does Cron Manager do?

定时任务管理。创建、查看、修改、删除定时任务,管理任务会话数据。当用户需要设置提醒、定时执行任务、管理调度计划时使用. An agent skill from countbot-ai/CountBot. Cron Manager is an agent skill from countbot-ai/CountBot.

When should I use Cron Manager?

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

How do I install Cron Manager in Claude Code?

Run `npx skills add countbot-ai/CountBot --skill cron-manager -a claude-code`. Or copy the skill folder (workspace/skills/cron-manager in countbot-ai/CountBot) into .claude/skills/cron-manager in your project. Claude Code loads it when a task matches its description.

How do I install Cron Manager in Codex?

Run `npx skills add countbot-ai/CountBot --skill cron-manager -a codex`. Or copy the skill folder (workspace/skills/cron-manager in countbot-ai/CountBot) into .agents/skills/cron-manager in your project. Codex loads it when a task matches its description.

Can I use Cron Manager 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 countbot-ai/CountBot --skill cron-manager -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-manager, .gemini/skills/cron-manager, .github/skills/cron-manager and .opencode/skills/cron-manager in your project.

What does Cron Manager need to run?

Going by SKILL.md and its folder, Cron Manager needs Python for the scripts in its folder and the command-line tools its instructions call (python3 and curl). Our summary lists: Python 3.

Does Cron Manager access the network?

SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Cron Manager 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Cron Manager use?

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

How many tokens does Cron Manager use?

About 1.4k tokens (SKILL.md is roughly 5.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 Manager?

Skills that share tags, products or a category with Cron Manager: 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 Manager?

countbot-ai (a GitHub user) maintains it in countbot-ai/CountBot, which has 782 GitHub stars. The repository holds 11 skills in this directory. The repository was last updated on October 4, 2026.

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