Agent skill · software engineering · erichowens
cloudflare-worker-dev
Cloudflare Workers, KV, Durable Objects, and edge computing development. Use for serverless APIs, caching, rate limiting, real-time features. Activate on "Workers", "KV", "Durable Objects",
Why this skill is useful
Provides specific patterns and configurations for Cloudflare Workers and KV that the AI wouldn't reliably generate on its own.
What it needs
Requires wrangler installed locally. Requires cloudflare account access. About 7k tokens when loaded. Last updated 2026-07-14. 180 stars on the source repository.
What this skill does
Cloudflare Workers Development Build high-performance edge APIs with Workers, KV for caching, and Durable Objects for real-time coordination. Core Architecture When to Use What Service Use Case Characteristics --------- ---------- ----------------- Workers Request handling, API logic Stateless, 50ms CPU (free), 30s (paid) KV Caching, config, sessions Eventually consistent, fast reads Durable Objects Real-time, coordination Strongly consistent, single-threaded R2 File storage S3-compatible, no egress fees D1 SQLite at edge Serverless SQL, good for reads Worker Fundamentals Basic Worker Structure CORS Headers (Essential) wrangler.toml Configuration KV Storage Patterns Basic KV Operations Geohash-Based Caching Response Headers for Cache Debugging Rate Limiting IP-Based Rate Limiting Durable Objects (Real-Time) Chat Room Example Deployment & Debugging Commands Error Codes Code Meaning ------ --------- 1101 Worker threw exception 1102 CPU time limit exceeded 1015 Rate limited by Cloudflare 524 Origin timeout (>100s) Quick Reference Anti-Patterns ❌ Awaiting KV writes in hot path ❌ Missing CORS handling ❌ Secrets in wrangler.toml ❌ Ignoring KV eventual consistency ❌ Blocking on external APIs without timeout References See /references/ for detailed guides: kv-patterns.md - Advanced KV usage patterns durable-objects.md - Real-time features with DO debugging.md - Troubleshooting common issues
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills erichowens/cloudflare-worker-dev