跳到正文
Skillpedia
自动化81k · #1641

cron-schedule

它能做什么

这项技能按时钟在后台安排任务,例如定期的安全扫描。适合希望例行检查自动运行、不必自己记住的人。

适用场景

  • ✓当你希望在工作期间每隔几分钟运行一次检查时。
  • ✓当你希望例行扫描或记忆清理按设定时间进行时。
  • ✓当你想停止一个不再需要的定期任务时。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-loop-workers/skills/cron-schedule/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-loop-workers/skills/cron-schedule/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“今天我工作的时候,请每 15 分钟运行一次安全审计。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能使用五段式 cron 时间和要运行的提示词创建一个定期任务。这些任务只在会话保持打开时存在,定期任务在七天后过期。你可以通过任务 ID 取消任务。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Use CronCreate for a worker that should fire on a clock while this Claude Code session is open:

CronCreate({ cron: "*/15 * * * *", prompt: "Dispatch the audit worker with mcp__plugin_ruflo-core_ruflo__hooks_worker-dispatch({ trigger: \"audit\" }) and report anything critical", recurring: true })

The parameters are cron (five-field expression), prompt and recurring. A schedule: field does not exist. These jobs live in the session: they stop when you close it, and recurring jobs expire on their own after 7 days. Cancel one sooner with CronDelete (find its id with CronList). For a worker that must keep running after the session ends, use /schedule (cloud routines) or an OS scheduler (cron, systemd timer) that calls npx @claude-flow/cli@latest hooks worker dispatch --trigger audit.

Recommended Schedules

Worker Cron Description
audit */15 * * * * Security scanning
optimize */30 * * * * Performance optimization
consolidate 0 * * * * Memory consolidation
map */30 * * * * Codebase mapping
testgaps */15 * * * * Test coverage analysis
document 0 */2 * * * API documentation

When to Use Cron vs Loop

  • /loop: In-session, self-pacing. Use for active development.
  • CronCreate: In-session, fixed clock, auto-expires after 7 days. Use for regular checks while you work.
  • /schedule or an OS scheduler: Survives the session. Use for CI-style monitoring.
常见问题

关闭会话后,定时任务还会继续运行吗?

不会。会话关闭时它们会停止。对于必须持续运行的任务,来源建议使用云端例行程序或操作系统的计划任务程序。

定期任务能持续多久?

七天后会自动过期。

我怎样停止任务?

你可以使用删除命令并输入任务 ID 来取消,任务 ID 可以在任务列表中找到。

详情

作者的原始描述

Schedule persistent background workers via CronCreate

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1641
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能