Skills Development Scheduling Persistent Background Workers

Scheduling Persistent Background Workers

v20260707
cron-schedule
Use CronCreate to schedule background workers that must persist even after session restarts. This utility provides various recommended schedules for critical, recurring tasks like security audits, performance optimization, memory consolidation, and documentation generation. It is essential for CI/CD pipelines, continuous monitoring, and maintaining system health.
Get Skill
396 downloads
Overview

Use CronCreate for workers that must survive session restarts:

CronCreate({ schedule: "*/15 * * * *", prompt: "Run security audit worker via mcp__claude-flow__hooks_worker-dispatch" })

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, cache-aware, self-pacing. Use for active development.
  • CronCreate: Persistent, survives restarts. Use for CI/monitoring.
Info
Category Development
Name cron-schedule
Version v20260707
Size 1001B
Updated At 2026-07-09
Language