cloudflare-workers

Build edge-first serverless applications with Durable Objects and Cloudflare storage bindings.

31|8|Updated Apr 10, 2026
One-click install
npx skills add https://github.com/itallstartedwithaidea/agent-skills --skill cloudflare-workers-itallstartedwithaidea
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-workers
Source: https://github.com/itallstartedwithaidea/agent-skills/tree/main/skills/infrastructure/cloudflare-workers
Command: npx skills add https://github.com/itallstartedwithaidea/agent-skills --skill cloudflare-workers-itallstartedwithaidea

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cloudflare Workers helps you design and implement edge-first applications without falling into common architectural traps around isolation, distributed state, and server-like assumptions.

Core Features & Use Cases

  • Stateful coordination with Durable Objects: Use actor-style, single-threaded coordination with transactional storage, WebSockets, and alarms.
  • Edge data + compute building blocks: Store and retrieve content and knowledge using KV, R2, D1 (SQLite), AI bindings, and Vectorize for embeddings and similarity search.
  • Production-ready edge patterns: Implement routing, caching, request delegation, and inference flows suitable for real deployments (e.g., buddy-agent orchestration plus buddy-brain knowledge storage).

Quick Start

Ask an AI to generate a Cloudflare Workers + Durable Objects architecture that routes requests, reads cached pages from KV, stores objects in R2, queries D1 for relational data, and performs AI + Vectorize steps for retrieval-augmented responses.

Frequently Asked Questions about cloudflare-workers

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

FAQPage Schema
How do I build a stateful serverless application using Cloudflare Workers?

To build a stateful serverless application with Cloudflare Workers, use Durable Objects for actor-style, single-threaded coordination alongside transactional storage, WebSockets, and alarms to manage distributed state at the edge.

What is the best way to combine Cloudflare KV, R2, and D1 in an edge architecture?

The best way to combine KV, R2, and D1 in edge architecture is routing requests via Workers, caching pages in KV, storing objects in R2, and using D1 SQLite for relational data queries to achieve low-latency global access.

Can I use Cloudflare Workers AI and Vectorize embeddings for retrieval-augmented generation?

Yes, you can use Cloudflare Workers AI bindings and Vectorize for retrieval-augmented generation by performing inference steps and similarity searches on embeddings directly within your serverless edge application backend.

Does Cloudflare Workers support WebSocket connections for real-time edge coordination?

Cloudflare Workers supports real-time edge coordination through WebSockets by leveraging Durable Objects, which provide actor-style consistency and single-threaded execution for reliable stateful connections.

What are common architectural traps when designing edge-first serverless applications?

Common architectural traps when designing edge-first serverless applications involve mishandling distributed state isolation, ignoring edge data constraints, and incorrectly applying server-like assumptions instead of actor-style coordination patterns.

When should I use Durable Objects instead of standard KV storage in Workers?

You should use Durable Objects instead of standard KV storage when your application requires single-threaded actor consistency, transactional storage, or alarms for complex stateful coordination beyond simple caching.