技能 编程开发 周期性后台任务调度

周期性后台任务调度

v20260707
loop-worker
本功能用于管理和调度系统中的专业后台工作流。它允许用户设置周期性任务,如安全审计、性能优化、代码映射或文档生成。通过循环和MCP工具调用,可以确保系统持续进行自我监控和维护,执行定期的关键任务。
获取技能
90 次下载
概览

Use /loop for in-session periodic workers. Cache-aware delays keep prompt cache warm:

  • Delay formula: min(270, cache_ttl * 0.9) -- default 270s

Dispatch a worker via MCP: mcp__claude-flow__hooks_worker-dispatch({ trigger: "WORKER_NAME" })

Then schedule the next iteration: ScheduleWakeup({ delaySeconds: 270, reason: "next WORKER_NAME iteration" })

Available Workers

Worker Interval Description
audit 270s Security analysis
optimize 270s Performance optimization
consolidate 600s Memory consolidation
predict 270s Predictive preloading
map 600s Codebase mapping
testgaps 270s Test coverage analysis
document 600s Auto-documentation
benchmark 600s Performance benchmarking

MCP tool responses include [LOOP_SUGGESTION] and [CRON_SUGGESTION] hints -- follow them.

信息
Category 编程开发
Name loop-worker
版本 v20260707
大小 1.13KB
更新时间 2026-07-09
语言