Agent skill · software engineering · secondsky

cloudflare-cron-triggers

Cloudflare Cron Triggers for scheduled Workers execution. Use for periodic tasks, scheduled jobs, or encountering handler not found, invalid cron expression, timezone errors.

Why this skill is useful

Provides specific commands and patterns for configuring Cloudflare Cron Triggers that the AI wouldn't reliably generate on its own.

What it needs

Requires wrangler installed locally. Requires cloudflare account access. About 11k tokens when loaded. Last updated 2026-08-06. 204 stars on the source repository.

What this skill does

Cloudflare Cron Triggers Status: Production Ready ✅ Last Updated: 2025-11-25 Dependencies: cloudflare-worker-base (for Worker setup) Latest Versions: wrangler@4.81.0, @cloudflare/workers-types@4.20260408.0 --- Quick Start (5 Minutes) 1. Add Scheduled Handler to Your Worker src/index.ts: Why this matters: Handler must be named exactly scheduled (not scheduledHandler or onScheduled) Must be exported in default export object Must use ES modules format (not Service Worker format) 2. Configure Cron Trigger in Wrangler wrangler.jsonc: CRITICAL: Cron expressions use 5 fields: minute hour day-of-month month day-of-week All times are UTC only (no timezone conversion) Changes take up to 15 minutes to propagate globally 3. Test Locally Testing tips: /scheduled endpoint is only available with --test-scheduled flag Can pass any cron expression in query parameter Python Workers use /cdn-cgi/handler/scheduled instead 4. Deploy After deployment: Changes may take up to 15 minutes to propagate Check dashboard: Workers & Pages > [Your Worker] > Cron Triggers View past executions in Logs tab --- When to Load References Load immediately when user mentions: cron-expressions-reference.md → "cron syntax", "schedule format", "expression", "minute hour day", "every X minutes" common-patterns.md → "examples", "use cases", "patterns", "real-world", "database cleanup", "report generation", "how to" integration-patterns.md → "implement", "Hono", "multiple triggers", "bindings", "workflows", "error handling" wrangler-config.md → "configuration", "wrangler.jsonc", "multiple crons", "environment-specific", "dev staging production" testing-guide.md → "test", "local development", "scheduled", "unit test", "curl", "debugging" Load proactively when: Building new scheduled task → Load integration-patterns.md Configuring wrangler.jsonc → Load wrangler-config.md Debugging cron expression → Load cron-expressions-reference.md Testing locally → Load testing-guide.md Looking for examples → Load common-pattern …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills secondsky/cloudflare-cron-triggers

View the source on GitHub

Browse the @skills marketplace