cron-manager
定时任务管理。创建、查看、修改、删除定时任务,管理任务会话数据。当用户需要设置提醒、定时执行任务、管理调度计划时使用。
npx skills add countbot-ai/CountBot --skill cron-manager --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 定时任务管理 通过命令行管理 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 "查询今天的天气并
- 使用场景
- 命令行调用
- 创建任务
- 列出任务
- 查看任务详情
- 修改任务
- 删除任务
- 启用/禁用任务
- 手动触发执行
- 验证 Cron 表达式
- 批量创建任务
- 批量删除任务
- 查看任务会话消息
- 清理任务会话消息
curl -s http://127.0.0.1:8000/api/cron/jobs || echo "后端服务没在运行!" python3 skills/cron-manager/scripts/cron_manager.py <command> [args] 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 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 python3 skills/cron-manager/scripts/cron_manager.py list python3 skills/cron-manager/scripts/cron_manager.py info <job_id> 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 "新名称"
What does the cron-manager skill do?
定时任务管理。创建、查看、修改、删除定时任务,管理任务会话数据。当用户需要设置提醒、定时执行任务、管理调度计划时使用。
How do I install it?
Run `npx skills add countbot-ai/CountBot --skill cron-manager --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From countbot-ai/CountBot, a repository with 760 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
