Cloudflare Durable Objects
Summary
Create and review Cloudflare Durable Objects — single-instance coordination with SQLite storage, alarms, and WebSockets.
Features
- Stateful coordination patterns for rooms, games, and bookings
- RPC methods, SQLite storage, and alarms
- Review guidance for existing Durable Object code
Install This Skill
Add this skill to your favorite AI agent in a few steps.
Skill Content
Description
Durable Objects are the strangest and most powerful primitive on Cloudflare's platform, and the easiest to misuse. This official skill covers both writing them and reviewing them.
It addresses the cases they exist for — chat rooms, multiplayer games, booking systems, rate limiters, anything needing a single authoritative instance — and the mechanics: RPC method definitions, the SQLite storage API, alarms for scheduled work, WebSocket hibernation, and how objects are addressed and located.
The review guidance is the underrated part, since the common failure modes (unbounded object counts, storage misuse, missing hibernation) are invisible until they are expensive. Published by Cloudflare.
Related Skills
Deno Guidance
by Deno
Deno's official foundational skill — project setup, package choices, configuration, and CLI commands done the current way.
Gradio App Builder
by Hugging Face
Build Gradio web UIs and ML demos in Python with the current API — components, layouts, events, and chat interfaces.
Cloudflare Platform
by Cloudflare
Cloudflare's official platform skill — Workers, Pages, storage, AI, networking, security, and IaC in one reference.
Verification Before Completion
by Jesse Vincent
Never claim work is complete, fixed, or passing without running the check and reading the output first.