cloudflare-workflows

Orchestrate durable multi-step Cloudflare Workflows on Workers with retries and state persistence.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides complete, production-ready knowledge for Cloudflare Workflows - a durable execution framework for building multi-step applications on Workers that automatically retry, persist state, and run for hours or days.

Core Features & Use Cases

  • Automatically retry failed steps with configurable backoff
  • Persist state between steps so workflows survive failures
  • Run for long durations with built-in sleep and scheduling
  • Wait for external events to enable human-in-the-loop patterns
  • Coordinate between APIs with reliable execution guarantees
  • Wrangler workflows integration for deployment and management

Quick Start

  • Use the Cloudflare Workflows starter template:
    • npm create cloudflare@latest my-workflow -- --template cloudflare/workflows-starter --git --deploy false
    • cd my-workflow
  • Inspect the generated WorkflowEntrypoint-based code to understand run(event, step)
  • Deploy and manage workflow instances via Wrangler commands

Frequently Asked Questions about cloudflare-workflows

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

FAQPage Schema
How do I build multi-step workflows that automatically retry on failure?

Cloudflare Workflows provides durable execution with automatic retries and state persistence across steps. Use step.do to execute individual steps, configure retry behavior, and the framework handles failures without losing progress between steps.

Can I run long-duration tasks on Cloudflare Workers?

Yes. Cloudflare Workflows enable long-running, event-driven applications on Workers using step.sleep and step.sleepUntil for scheduling, and step.waitForEvent for pausing until external events occur, supporting workflows lasting hours or days.

What's the best way to orchestrate APIs with reliable execution guarantees?

Cloudflare Workflows coordinate between multiple APIs with built-in retry logic, error handling via NonRetryableError, and state persistence across steps, ensuring reliable API orchestration and cross-service data pipelines without manual coordination logic.

How do I implement human-in-the-loop approvals in my workflow?

Use step.waitForEvent to pause workflow execution and wait for external signals, enabling human-in-the-loop patterns like approval gates and webhook orchestration where the workflow resumes only after the approval event arrives.

Do I need Wrangler to deploy and manage Cloudflare Workflows?

Yes. Wrangler provides the deployment and instance management interface for Cloudflare Workflows. Use the cloudflare/workflows-starter template and Wrangler commands to deploy WorkflowEntrypoint-based code and manage workflow instances.

What happens if a workflow step fails partway through execution?

Cloudflare Workflows automatically retry failed steps with configurable backoff and preserve state between retries. Completed steps are not re-executed; the workflow resumes from the failed step, preventing data duplication and ensuring idempotency.