cloudflare-cron-triggers

Configure Cloudflare Workers cron triggers with wrangler.jsonc and scheduled handlers.

16|7|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jackspace/ClaudeSkillz --skill cloudflare-cron-triggers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-cron-triggers
Source: https://github.com/jackspace/ClaudeSkillz/tree/main/skills/cloudflare-cron-triggers
Command: npx skills add https://github.com/jackspace/ClaudeSkillz --skill cloudflare-cron-triggers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires wrangler, cloudflare-worker-base, and includes references (resource) components.

What problem does it solve?

Complete knowledge domain for Cloudflare Cron Triggers - scheduling Workers with cron expressions for periodic tasks.

Core Features & Use Cases

  • Add scheduled handlers to your Worker
  • Understand 5-field cron syntax and UTC timezone
  • Wrangler configuration and testing
  • Multiple schedules and environment-specific crons

Quick Start

Add a wrangler.jsonc cron trigger and implement a scheduled function named scheduled.

Frequently Asked Questions about cloudflare-cron-triggers

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I schedule periodic execution of Cloudflare Workers using cron expressions?

Cron expressions schedule Workers to run at fixed intervals. Add a cron trigger to wrangler.jsonc with five-field syntax (minute, hour, day, month, day-of-week) in UTC, implement a scheduled handler export in your Worker, and deploy with wrangler. The Worker executes automatically on each schedule.

What's the correct syntax for Cloudflare cron triggers in wrangler.jsonc?

Cloudflare cron triggers use five-field syntax: minute hour day month day-of-week, all in UTC timezone. Configure triggers in wrangler.jsonc under [[triggers.crons]], specify multiple schedules if needed, and ensure your Worker exports a default scheduled handler function to receive trigger events.

Can I test scheduled cron triggers locally before deploying to Cloudflare?

Yes, test cron triggers locally using wrangler's --test-scheduled flag, which simulates scheduled execution without deploying. This lets you verify your scheduled handler logic, error handling, and timing behavior before production deployment across environments.

Do Cloudflare cron triggers work with Workflows for recurring tasks?

Cron triggers integrate with Cloudflare Workflows to automate recurring tasks. Configure cron schedules in wrangler.jsonc, implement a scheduled handler that invokes Workflow steps, and manage environment-specific cron configurations for different deployment targets.

What are common errors when setting up Cloudflare cron triggers and how do I fix them?

Common issues include incorrect five-field cron syntax, missing default export of the scheduled handler, timezone mismatches (Cloudflare uses UTC), and ES modules format requirements. Verify wrangler.jsonc configuration, test locally with --test-scheduled, and check handler naming and export structure.

How do I configure different cron schedules for different environments in Cloudflare Workers?

Environment-specific cron triggers deploy different schedules to staging and production by defining separate cron configurations in environment-specific wrangler.jsonc sections. Deploy to target environments with wrangler deploy --env [environment-name] to apply the correct schedule.