durable-objects

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

Updated Jul 17, 2026
One-click install
npx skills add https://github.com/kartikkabadi/skills --skill durable-objects-kartikkabadi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: durable-objects
Source: https://github.com/kartikkabadi/skills/tree/main/durable-objects
Command: npx skills add https://github.com/kartikkabadi/skills --skill durable-objects-kartikkabadi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you design, implement, and review Cloudflare Durable Objects for applications that need strong consistency, coordinated state, and persistent real-time behavior at the edge.

Core Features & Use Cases

  • Stateful Coordination: Build chat rooms, multiplayer sessions, collaborative workflows, and per-entity state managers.
  • Cloudflare Integration: Configure workers bindings, migrations, alarms, WebSockets, and RPC methods correctly.
  • Best-Practice Review: Catch anti-patterns like global bottlenecks, unsafe concurrency, and incorrect storage initialization.
  • Testing Guidance: Set up and verify Durable Objects behavior with Vitest and Cloudflare test tooling.

Quick Start

Ask the skill to design or review a Cloudflare Durable Object for a stateful application, and include the desired coordination pattern, storage needs, alarms, and testing requirements.

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 edge applications with Cloudflare Workers by using Durable Objects for strong consistency, coordinated state, and persistent real-time behavior. They manage per-entity storage, WebSocket connections, and alarms to maintain reliable state across requests.

How do I test Cloudflare Durable Objects using Vitest?

Test Cloudflare Durable Objects using Vitest by configuring the Cloudflare test tooling environment. This Skill provides testing guidance to set up and verify stateful behavior, SQLite storage patterns, and RPC-based coordination correctly within your test suite.

When should I use Durable Objects for per-entity storage instead of global state?

Use Durable Objects for per-entity storage when your application requires strong consistency and coordinated state for specific entities like chat rooms or game sessions. Avoid global state bottlenecks by distributing state across individual object instances.

Can I use WebSockets and alarms with Cloudflare Durable Objects?

Yes, you can use WebSockets and alarms with Cloudflare Durable Objects to enable persistent real-time behavior and scheduled task execution. This Skill helps configure these features correctly for stateful edge applications requiring coordinated state management.

What are common anti-patterns when implementing Cloudflare Durable Objects?

Common anti-patterns in Cloudflare Durable Objects implementations include global state bottlenecks, unsafe concurrency control, and incorrect SQLite storage initialization. This Skill reviews your code to catch these issues and applies best practices for stateful edge applications.