Skip to content
Kitbay
Submit

durable-objects

Apache-2.0Updated on Nov 10, 20263,337GitHub stars

A Cloudflare skill for writing, debugging and reviewing Durable Objects, the Workers feature for stateful, strongly consistent per-entity storage and coordination.

What the skill teaches

A Cloudflare skill for writing, debugging and reviewing Durable Objects, the Workers feature for stateful, strongly consistent per-entity storage and coordination. It lists when Durable Objects fit (chat rooms, games, booking, per-user data, WebSockets) and when plain Workers are the better choice, then gives Wrangler configuration, a basic class pattern, rules for stub creation, storage, SQLite queries, alarms and authorization, and a list of patterns to avoid. Reference files cover the core rules, testing with Cloudflare's Vitest integration and related Workers details. The agent is told to retrieve current docs first.

Capabilities

  • Create Durable Object classes with RPC methods and alarms
  • Configure Durable Object bindings and migrations in Wrangler
  • Review Durable Object code against Cloudflare's rules
  • Write tests with the Workers Vitest integration