cloudflare-workers

Build and deploy edge serverless functions with Cloudflare Workers.

22|1|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/itechmeat/llm-code --skill cloudflare-workers-itechmeat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-workers
Source: https://github.com/itechmeat/llm-code/tree/main/skills/cloudflare-workers
Command: npx skills add https://github.com/itechmeat/llm-code --skill cloudflare-workers-itechmeat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Cloudflare Workers enables developers to run code at the edge to reduce latency and complexity for globally distributed apps.

Core Features & Use Cases

  • Edge deployment of fetch handlers, scheduled tasks, queue handlers, and email handling.
  • Rich bindings including KV, R2, D1, Durable Objects, Queues, AI, and Vectorize for integrating Cloudflare resources.
  • Local development and testing with Miniflare and Vitest; deployment via Wrangler with compatibility flags.

Quick Start

To begin, install Wrangler, initialize a Worker project, implement a fetch handler in src/index.ts, configure wrangler.toml, and run wrangler dev for local testing.

Frequently Asked Questions about cloudflare-workers

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

FAQPage Schema
How do I deploy serverless functions at the edge using Cloudflare Workers?

To deploy serverless functions at the edge, implement a fetch handler in src/index.ts, configure wrangler.toml, test locally with wrangler dev, and use Wrangler tooling to deploy. You must set a compatibility_date and nodejs_compat flags for the Cloudflare Workers runtime.

What Cloudflare bindings can I use for edge app state and storage?

Cloudflare Workers edge apps support rich bindings including KV, R2, D1, Durable Objects, Queues AI, and Vectorize. These bindings integrate Cloudflare resources directly into your serverless functions for stateful storage and event-driven workflows.

Can I run scheduled tasks and event-driven workflows on Cloudflare Workers?

Yes, Cloudflare Workers can run scheduled cron-based tasks, queue handlers, and email handling event-driven workflows. You configure these handlers within your project to execute automatically across Cloudflare's global network.

How do I set up local development and testing for Cloudflare Workers?

Local development and testing for Cloudflare Workers uses Miniflare and Vitest. After initializing your project and implementing the main entry file, run wrangler dev to test serverless functions locally before deploying.

Do I need Wrangler and a compatibility_date to run Cloudflare Workers?

Yes, running Cloudflare Workers requires Wrangler tooling for deployment and a specified compatibility_date in your configuration. You also need nodejs_compat flags to ensure your serverless code executes properly within the Cloudflare Workers runtime.

What's the best way to reduce latency for globally distributed API endpoints?

Deploying API endpoints as serverless functions at the edge using Cloudflare Workers reduces latency for globally distributed apps. This approach runs code closer to users across Cloudflare's global network with integrated resource bindings.