cloudflare-workers-expert

Implements and deploys serverless applications on Cloudflare Workers using Wrangler, KV, D1, and Durable Objects.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/involvex/dev --skill cloudflare-workers-expert-involvex
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cloudflare-workers-expert
Source: https://github.com/involvex/dev/tree/main/.claude/skills/cloudflare-workers-expert
Command: npx skills add https://github.com/involvex/dev --skill cloudflare-workers-expert-involvex

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building and deploying serverless applications on Cloudflare's edge network requires platform-specific knowledge of the Fetch API, bindings, and storage services that differ from traditional Node.js development. This Skill provides expert guidance to avoid common pitfalls and follow Cloudflare best practices. ## Core Features & Use Cases - Edge Architecture Guidance: Design Workers using the Web standard Fetch API, wrangler.toml configuration, and env bindings for KV, D1, and secrets. - Storage & State Patterns: Implement edge-side data storage with KV, D1, and Durable Objects for stateful coordination and high-concurrency needs. - Performance Optimization: Apply techniques like ctx.waitUntil() for non-blocking tasks, bundle size control, and CPU time limit troubleshooting. - Use Case: You need to add security headers and caching logic to responses at the edge. Use this Skill to write a Worker that modifies responses with Content-Security-Policy headers before they reach users. ## Quick Start Ask the AI to write a Cloudflare Worker with a KV binding that reads a key and returns its value, configured via wrangler.toml.

Frequently Asked Questions about cloudflare-workers-expert

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

FAQPage Schema
How do I deploy a Cloudflare Worker with Wrangler?▼

Deploy a Cloudflare Worker by defining configuration in wrangler.toml, testing locally with npx wrangler dev, and deploying with Wrangler CLI. Use wrangler tail for live production debugging after deployment.

How to use KV bindings in Cloudflare Workers?▼

Define the KV namespace binding in wrangler.toml, then access it through the env parameter in the fetch handler, such as env.MY_KV_NAMESPACE.get("my-key"). All bindings including D1 and secrets follow this same env pattern.

Can I use Node.js libraries like fs in Cloudflare Workers?▼

Cloudflare Workers use the Web standard Fetch API, not Node.js globals. Node.js specific libraries like fs and path are not supported unless you enable Node.js compatibility mode in your Worker configuration.

When should I use Durable Objects instead of KV?▼

Use Durable Objects for stateful coordination and high-concurrency needs where strong consistency is required. KV is better suited for eventually consistent key-value reads distributed globally at the edge.

Why does my Cloudflare Worker exceed the CPU time limit?▼

CPU time limit errors come from heavy loops, excessive await calls, or synchronous work in the request path. Optimize the code and move non-blocking tasks like logging and analytics into ctx.waitUntil() so they run after the response is sent.