SkillsReviewed · cloudflare

Cloudflare Durable Objects skill

Cloudflare's durable-objects is a skill for developers using AI coding assistants to build stateful Cloudflare applications, but it depends on current documentation and project-specific review. It covers object boundaries, SQLite storage, remote method calls, alarms, WebSockets, Wrangler configuration and testing.

Researched 15 Nov 2026

In short.

Cloudflare's durable-objects is an instruction skill for developers using AI coding assistants on stateful Workers applications, but its examples require current documentation and application-specific review. It provides useful guidance on organizing coordinated state, choosing object identities, persisting data and designing tests. Assistant compatibility, runtime correctness, deployment success and operating costs are not established. Some Workers examples need particular scrutiny, including a purported object-listing command that targets D1.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete selected skills/durable-objects directory at revision cbf893b954222276bf1af57e5f23379231e0efb9: SKILL.md and references/rules.md, references/testing.md, references/workers.md and references/skill-feedback.md. The repository-root LICENSE is included as related licence evidence outside that folder. Linked documentation pages and other repository folders are excluded. Nothing was executed; assistant integration, API accuracy against current documentation, runtime behavior, deployment success, performance and operating costs remain unassessed.

The overview

Identity

The durable-objects skill lives in Cloudflare's skills repository at [https://github.com/cloudflare/skills/tree/main/skills/durable-objects]. Its purpose is to guide an AI coding assistant when building, debugging or reviewing Durable Objects code for persistent state and coordination.

The resource consists of SKILL.md and four companion references covering architectural rules, testing, Workers integration and skill feedback. The supplied source revision is cbf893b954222276bf1af57e5f23379231e0efb9.

Assessment

The skill offers concrete guardrails for work where several requests must coordinate around the same entity, such as a chat room, booking record or user account. Its strongest material connects architectural choices with common failures: a global object becoming a bottleneck, essential state disappearing from memory, or concurrency guards enclosing external requests.

Its usefulness depends partly on retrieving the linked documentation and understanding the existing project. No comparative results establish that it improves an assistant's accuracy, development speed or application reliability.

Users

The intended users are developers asking coding assistants to create or review stateful Cloudflare Workers applications. Suggested use cases include collaborative applications, multiplayer games, per-user storage, persistent connections and scheduled work for individual entities.

The TypeScript and Wrangler examples make familiarity with request handlers, bindings and storage useful. Experienced developers get specific review guidance around transactions, object lifecycle, WebSocket hibernation and test isolation. The main instructions identify stateless handling, maximum global distribution and independent high-fan-out requests as poor fits for Durable Objects.

Capabilities

The skill supplies guidance and examples for named object routing, SQLite schema initialization, storage operations, remote procedure calls, alarms, Worker handlers, validation, secrets and observability. Its references direct readers to documentation for migrations, placement constraints, WebSocket restoration and error handling.

The testing reference distinguishes object-method tests from HTTP integration tests. It covers independent object identities, persistent state, alarm effects and suite isolation, and explicitly warns that repeated calls alone do not prove recovery after restart.

Using it

Requirements

The intended use requires an assistant environment that can read the instruction file and its relative references. Its documentation-first approach also depends on access to the relevant Cloudflare documentation. Supported assistant products and host-specific installation requirements are unspecified.

Implementing the examples calls for a Workers project with Durable Object bindings and migration configuration. Testing guidance assumes Cloudflare's Vitest integration and asks readers to inspect installed packages and configuration first. No complete, version-pinned dependency set is supplied.

Mechanism

The main file gives the assistant concise rules, then routes detailed questions to companion references and official documentation. It explicitly treats remembered API knowledge as potentially outdated.

Its central pattern assigns one Durable Object to each entity needing coordinated state. A Worker obtains a stub, meaning a handle for calling that object, using a deterministic name. The guidance favors SQLite for new classes, durable writes before cache updates and schema initialization inside blockConcurrencyWhile. It also highlights that scheduling an alarm replaces the object's existing alarm.

Setup

Keep SKILL.md together with its references directory so the relative file links remain usable. The captured material gives no installation command for a particular assistant.

The basic configuration binds MY_DO to MyDurableObject and declares that class under new_sqlite_classes in a migration. The TypeScript example exports the class and accesses it from a Worker handler. The skill states a compatibility-date requirement of at least 2024-04-03 for its RPC approach; the appropriate configuration for a real project requires current documentation.

Example

The main example defines an object that creates an SQLite items table during initialization. Its addItem method inserts text using a bound SQL parameter and returns the generated row identifier. The Worker obtains the object named my-instance, calls addItem with hello and returns the identifier as JSON.

This illustrates the intended path from an HTTP request to a named object and durable storage. No code was executed, and no observed response, restart-recovery result or deployment outcome is available.

Assessment & evidence

Limitations

The selected folder contains instructions and illustrative snippets without a complete application or executable test suite. Much of the current API and setup detail resides in linked pages whose contents are outside the supplied evidence.

Some Workers examples need close review. A command labelled List DOs executes SQL against a D1 binding and references _cf_DO; the supplied files do not establish that it enumerates Durable Objects. The sample room endpoints show no application authentication, and the CORS helper allows every origin. The timeout helper also shows no cancellation of the underlying operation.

Reasoning

The architectural advice follows the resource's stated failure modes. Per-entity objects limit the bottleneck associated with a single global object. Durable storage addresses loss of in-memory state on eviction or crashes. Restricting concurrency guards addresses the throughput and coordination problems described in the instructions.

The testing reference adds an important distinction between repeated access to state and recovery after restart. These are useful design rationales, but the source supplies no measured throughput, reliability improvement or assistant-performance benchmark.

Alternatives

For stateless request handling, the skill explicitly recommends plain Cloudflare Workers. For an existing Durable Object class, the rules reference calls for inspecting its storage backend and consulting legacy KV guidance where applicable.

Developers can also consult the linked official documentation directly, starting at [https://developers.cloudflare.com/durable-objects/index.md]. Its current contents have not been assessed here. The supplied evidence provides no comparative evaluation of other providers or assistant skills.

Evidence

The primary instruction file is preserved at [https://raw.githubusercontent.com/cloudflare/skills/cbf893b954222276bf1af57e5f23379231e0efb9/skills/durable-objects/SKILL.md]. Its four references provide architectural guidance, test-selection guidance, Workers examples and a feedback procedure. The repository licence is supplied separately.

The feedback reference describes removing sensitive information and obtaining approval of exact issue text before public submission. It supplies no evidence of runtime performance. Across the captured files, no execution results, deployment records, compatibility matrix or benchmarks are provided.

Access & freshness

Costs

The captured Apache License 2.0 grants no-charge copyright permissions subject to its conditions. The files provide no prices for Cloudflare execution, storage, observability or an AI coding assistant.

Free-tier eligibility, billing prerequisites and total operating cost are unknown. No workload measurements or cost-saving results are supplied.

Rights

The repository-root LICENSE supplies Apache License 2.0 terms. It permits reproduction, modification and redistribution subject to conditions including supplying the licence, marking changed files, retaining applicable source notices and preserving required NOTICE attribution when present.

The licence includes a conditional patent grant, excludes general trademark permission and provides the work without warranties. The captured files include no NOTICE file, and whether the repository has one is not established.

Freshness

The supplied snapshot is pinned to commit cbf893b954222276bf1af57e5f23379231e0efb9 and was captured on 2026-11-15 at 17:15:18.198 UTC. That timestamp establishes the snapshot's capture time; the latest upstream state and last author modification are unknown.

The main file cites 2024-04-03 as an RPC compatibility-date threshold, while the Workers configuration example uses 2024-12-01. These dates are source guidance and example configuration, not evidence of current package compatibility. The skill itself repeatedly directs readers to current documentation.

Actions

Before adoption, confirm that the assistant can load the complete directory and retrieve relevant documentation. Inspect the application's storage backend, installed Wrangler and Vitest packages, object identities and migration configuration.

Review application authorization, allowed origins, timeout behavior and the D1-based listing example before reuse. Validate object isolation, recovery after restart, HTTP response contracts and alarm effects in the target application. Those outcomes remain unassessed.

Evidence for this report

LICENSEnotice · checked 2026-11-15
skills/durable-objects/SKILL.mdselected · checked 2026-11-15
skills/durable-objects/references/rules.mdselected · checked 2026-11-15
skills/durable-objects/references/testing.mdselected · checked 2026-11-15
skills/durable-objects/references/workers.mdselected · checked 2026-11-15