Durable Objects

Build Cloudflare Durable Objects for stateful coordination, one-per-entity actors, strong consistency, private SQLite-backed storage, RPC methods, WebSockets, alarms, sessions, rooms, rate limits, and collaborative state. Use when Workers code needs serialized state or race-free coordination.

9 starsDatabases

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add zllovesuki/cloudflare-agent-skills --skill durable-objects
Manual install
git clone --depth 1 https://github.com/zllovesuki/cloudflare-agent-skills.git /tmp/cloudflare-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/cloudflare-agent-skills/skills/durable-objects ~/.claude/skills/durable-objects

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Durable Objects

Use this skill when code needs stateful coordination. A Durable Object should represent the smallest logical unit that needs serialization: a room, document, cart, user, game, tenant workspace, rate-limit bucket, or workflow coordinator.

## Design rules

- Create one Durable Object per coordination atom.
- Do not create one global object for all users or all writes.
- Keep object state small and local to its entity.
- Persist durable state; in-memory fields are performance caches only and can disappear.
- Expose clear RPC methods for application operations.
- Use WebSockets in Durable Objects for data realtime: chat, collaboration, live dashboards, multiplayer.
- Make alarms and retries idempotent.

## Current TypeScript skeleton
Read the full skill on GitHub

Details

Skill name
durable-objects
Path
skills/durable-objects/SKILL.md
Repo updated
28 April 2026

FAQ

What does the Durable Objects skill do?

Build Cloudflare Durable Objects for stateful coordination, one-per-entity actors, strong consistency, private SQLite-backed storage, RPC methods, WebSockets, alarms, sessions, rooms, rate limits, and collaborative state. Use when Workers code needs serialized state or race-free coordination.

How do I install the Durable Objects skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add zllovesuki/cloudflare-agent-skills --skill durable-objects. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Durable Objects popular?

It lives in zllovesuki/cloudflare-agent-skills, which has 9 GitHub stars and 0 forks.

Related skills

Agents

9

zllovesuki/cloudflare-agent-skills

Build Cloudflare Agents SDK applications for autonomous multi-step tool use, AIChatAgent chat agents, Durable Object-backed state, tools, scheduling, callable methods, WebSockets, SQL state, and constrained agent behavior. Use when RAG or Workflows are not enough.

AI, LLMs & Agents

Cloudflare Architecture

9

zllovesuki/cloudflare-agent-skills

Choose Cloudflare Developer Platform primitives and architecture shapes before writing code. Use for Cloudflare Workers, Durable Objects, D1, R2, Queues, Workflows, Containers, Realtime, Workers AI, Vectorize, AI Search, Agents, cost, limits, and migration decisions.

Software Development

Containers

9

zllovesuki/cloudflare-agent-skills

Decide when to use Cloudflare Containers instead of Workers and design container-backed workloads, native binaries, long-running processes, image processing, larger runtime shapes, and Worker frontends. Use as an escape hatch when Workers constraints do not fit.

DevOps & Cloud

Kv Hyperdrive

9

zllovesuki/cloudflare-agent-skills

Use Cloudflare KV for eventually consistent global cache/config and Hyperdrive for existing Postgres/MySQL access from Workers. Use when deciding cache-aside patterns, TTLs, invalidation, external DB connectivity, and Node-compatible database drivers.

Databases

Data Quality Rule Generator

9

shisuidata/ss-data-skills

Use when generating data quality rules from a table schema, SQL, metric definition, or data pipeline description. Produces validation rules for freshness, row count, uniqueness, nulls, enums, ranges, referential integrity, metric fluctuation, reconciliation, and SQL checks. 中文触发词:数据质量规则、质量校验、DQC、校验 SQL、上线验收。

Databases

Multi Tenant

9

zllovesuki/cloudflare-agent-skills

Design multi-tenant Cloudflare applications with tenant isolation, D1 row/database boundaries, Durable Object-per-tenant patterns, R2 key prefixes, KV cache keys, authz, noisy-neighbor controls, and migration paths. Use for SaaS and platform code.

Databases

Browse the most popular Claude skills, all databases skills, or write your own with the skills generator.