cloudflare-workflows

Build multi-step Cloudflare Workers applications with durable execution templates.

54|Updated Nov 19, 2025
One-click install
npx skills add https://github.com/dennislee928/Ethic-Latex --skill cloudflare-workflows-dennislee928
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-workflows
Source: https://github.com/dennislee928/Ethic-Latex/tree/main/.claude/skills/cloudflare-workflows
Command: npx skills add https://github.com/dennislee928/Ethic-Latex --skill cloudflare-workflows-dennislee928

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and templates for building robust, multi-step applications on Cloudflare Workers using the Workflows durable execution framework, preventing common errors and accelerating development.

Core Features & Use Cases

  • Durable Execution: Build applications that run for hours or days, persisting state across steps.
  • Automatic Retries: Implement reliable step execution with configurable retry logic and backoff strategies.
  • Event Handling: Coordinate between APIs, handle webhooks, and enable human-in-the-loop workflows with waitForEvent.
  • Use Case: Create an order processing system where a workflow validates an order, processes payment (with retries), updates inventory, and sends a confirmation email, all while surviving network issues or temporary service outages.

Quick Start

Use the cloudflare-workflows skill to create a new workflow that fetches data, waits for one hour, and then processes the data.

Frequently Asked Questions about cloudflare-workflows

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

FAQPage Schema
How do I build long-running tasks on Cloudflare Workers that survive network failures?

Cloudflare Workflows provide a durable execution framework for building long-running tasks on Workers, automatically persisting state across steps and recovering from network issues or temporary service outages.

How do I configure retry logic and backoff strategies for Cloudflare Workflows step execution?

Cloudflare Workflows support automatic retries through configurable retry logic and backoff strategies on step execution. You can also use NonRetryableError to prevent specific errors from triggering infinite retry loops.

Can I pause a Cloudflare Workflow and wait for an external event or webhook before continuing?

Yes, Cloudflare Workflows support event handling with step.waitForEvent, allowing you to coordinate between APIs, handle webhooks, and enable human-in-the-loop workflows by pausing execution until an event is received.

How do I add delays or schedule future steps in a Cloudflare Workers Workflow?

Cloudflare Workflows support scheduled delays using step.sleep for relative time intervals and step.sleepUntil for absolute timestamps, enabling processes that run across hours or days.

Does Cloudflare Workflows support automated testing with Vitest?

Yes, Cloudflare Workflows can be tested using Vitest, allowing you to validate multi-step application logic, event handling, and retry configurations before deploying to production.

What is the best way to coordinate multi-step data pipelines on Cloudflare Workers?

Cloudflare Workflows offer durable execution for reliable data pipelines, coordinating step.do execution with automatic retries and event handling to ensure multi-step processes complete successfully despite transient failures.