cloudflare-workers

Build, test, and deploy Cloudflare Workers with Wrangler CLI.

Updated Sep 16, 2025
One-click install
npx skills add https://github.com/kienhaminh/speed-reader --skill cloudflare-workers-kienhaminh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-workers
Source: https://github.com/kienhaminh/speed-reader/tree/main/.claude/skills/cloudflare-workers
Command: npx skills add https://github.com/kienhaminh/speed-reader --skill cloudflare-workers-kienhaminh

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a comprehensive guide to building Cloudflare Workers apps, including binding setups, runtime APIs, and local testing with Wrangler.

Core Features & Use Cases

  • Bindings & Runtimes: Configure D1, KV, R2, Durable Objects, etc.
  • Runtime APIs: Fetch, Cache, HTMLRewrite, WebSockets.
  • Local Development: Wrangler CLI for local testing and deployment.
  • Edge Functions: Build scalable edge endpoints and middleware.

Quick Start

Create a new Worker project with Wrangler and deploy a basic fetch handler.

Frequently Asked Questions about cloudflare-workers

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

FAQPage Schema
How do I build and deploy serverless functions to the edge with Cloudflare Workers?

Cloudflare Workers enable you to build serverless edge functions deployed globally across Cloudflare's network. Write JavaScript handlers, configure bindings to D1, KV, R2, or Durable Objects, and deploy using Wrangler CLI for zero infrastructure management and millisecond cold starts.

What runtime APIs and bindings are available for Cloudflare Workers?

Workers support fetch, cache, HTMLRewriter, and WebSockets runtime APIs, plus bindings for D1 databases, KV storage, R2 object storage, and Durable Objects for stateful logic. Configure all bindings in wrangler.toml and access them via environment variables.

How do I test Cloudflare Workers locally before deploying?

Use Wrangler CLI to run Workers locally with wrangler dev, test fetch handlers and bindings in your environment, and verify behavior before production deployment. Wrangler handles environment configuration via .env and wrangler.toml.

Can I use Cloudflare Workers to build API endpoints and middleware?

Yes, Workers are ideal for building scalable edge API endpoints and middleware. Handle incoming requests with fetch handlers, apply transformations with HTMLRewriter, integrate with databases and storage via bindings, and deploy globally without managing servers.

Do Cloudflare Workers support scheduled tasks and background jobs?

Cloudflare Workers support scheduled tasks through cron triggers configured in wrangler.toml. Execute JavaScript logic on a schedule across Cloudflare's edge network with pay-per-request pricing and no infrastructure overhead.

What's the difference between ES Modules and Service Worker formats for Cloudflare Workers?

Both formats run in V8 isolates on Cloudflare's edge. ES Modules use module syntax for cleaner code organization, while Service Worker format uses global request handlers. Choose based on your project structure; Wrangler supports both.