durable-objects

Design and review Cloudflare Durable Object implementations for stateful edge applications.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Rayzerrek/dotfiles --skill durable-objects-rayzerrek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: durable-objects
Source: https://github.com/Rayzerrek/dotfiles/tree/main/.pi/agent/skills/durable-objects
Command: npx skills add https://github.com/Rayzerrek/dotfiles --skill durable-objects-rayzerrek

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you design, implement, and review Cloudflare Durable Object systems that need shared state, coordination, and reliable persistence at the edge.

Core Features & Use Cases

  • Stateful coordination: Build chat rooms, multiplayer sessions, collaborative tools, booking flows, and per-user stateful services.
  • Cloudflare-specific implementation: Handle Durable Object classes, RPC methods, SQLite storage, alarms, WebSockets, and wrangler configuration correctly.
  • Best-practice review: Evaluate sharding, concurrency, initialization, storage patterns, and testing strategy for production readiness.
  • Example scenario: Use it when turning a stateless Worker into a coordinated service that routes requests deterministically and persists critical state safely.

Quick Start

Ask for a Cloudflare Durable Object design, implementation, or code review for your use case, and include the state model, routing strategy, storage needs, and testing goals.

Frequently Asked Questions about durable-objects

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

FAQPage Schema
How do I build stateful applications with Cloudflare Workers and Durable Objects?

Build stateful applications with Cloudflare Workers by implementing Durable Object classes for shared state coordination, using SQLite-backed storage for persistence, and routing requests deterministically to specific object instances.

What is the best way to test Cloudflare Durable Objects and WebSockets?

Test Cloudflare Durable Objects and WebSockets using Vitest within a Cloudflare-specific testing workflow, validating RPC methods, alarm triggers, and SQLite storage interactions for production readiness and concurrency handling.

How do I persist data in a Cloudflare Durable Object using SQLite?

Persist data in a Cloudflare Durable Object by utilizing the built-in SQLite-backed storage API, which ensures reliable state persistence and coordination for stateful edge applications like booking systems or chat rooms.

Can I use Cloudflare Durable Objects for multiplayer game sessions and chat rooms?

Use Cloudflare Durable Objects for multiplayer game sessions and chat rooms to achieve real-time stateful coordination, leveraging WebSockets for connections and alarms for scheduled state updates or cleanup tasks.

How do I configure wrangler for routing requests to Durable Object classes?

Configure wrangler by defining Durable Object bindings and migrations, ensuring deterministic routing strategies map incoming requests to the correct object instances for your stateful edge application.