@tank/cloudflare-workers
Installation
SKILL.md
Cloudflare Workers
Core Philosophy
- Edge-first means Web API-first — Write to the standard Fetch runtime model (
Request,Response,fetch,URL) instead of assuming Node APIs exist. - Bindings are the platform contract — KV, D1, R2, Durable Objects, Queues, and AI are not ad hoc SDK calls; they are explicit runtime capabilities passed into your worker.
- Latency beats distance — Keep hot request paths short, cache aggressively, and move coordination-heavy logic out of the edge path when possible.
- State belongs in the right primitive — KV for simple global reads, D1 for relational queries, R2 for blobs, Durable Objects for coordination, Queues for async work.
- Deploy safely with environments — Separate preview, staging, and production config in Wrangler; edge mistakes propagate globally fast.