brainstorming
OBobra/superpowers298k2,631 new stars in the last 7 days
仅在需要未来定时执行或周期执行任务时使用。通过 create_cron_job / list_cron_jobs / toggle_cron_job / delete_cron_job 管理定时任务。
只有在需要未来某个时间自动执行,或按周期重复执行时使用本技能。
| 操作 | 工具调用 |
|---|---|
| 查看所有任务 | 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)
格式:分 时 日 月 周
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
Asia/Shanghai;若用户在其他时区,明确指定triggerMessage 是 Agent 触发时收到的提示词,不是发给用户的消息OBobra/superpowers298k2,631 new stars in the last 7 days
OBobra/superpowers298k2,631 new stars in the last 7 days
OBobra/superpowers298k2,631 new stars in the last 7 days
OBobra/superpowers298k2,631 new stars in the last 7 days
OBobra/superpowers298k2,631 new stars in the last 7 days
MAmattpocock/skills288k10,178 new stars in the last 7 days