durable-objects
Build reliable Durable Objects
Stateful Workers applications can fail when storage, concurrency, and routing patterns are unclear. This skill provides practical Durable Objects patterns for implementation, review, configuration, and testing.
Install with my Agent
Copy this request to your Agent. It includes the canonical Skill page and manifest.
Review the Skillstore skill "durable-objects" from https://skillstore.io/skills/cloudflare-durable-objects.md and its manifest at https://skillstore.io/api/skills/cloudflare-durable-objects/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.Your Agent should still show its plan and request any confirmation required by the security policy.
Agent-readable resources
Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.
Test it
Using "durable-objects". Design a booking Durable Object with temporary holds.
Expected outcome:
- Suggested one object per resource or schedule.
- SQLite tables for holds and confirmed bookings.
- An alarm pattern for hold expiration.
- Concurrency and validation considerations.
Using "durable-objects". Review my Durable Object test strategy.
Expected outcome:
- Coverage gaps for isolated storage and alarm execution.
- Recommended direct object and HTTP integration tests.
- Concrete assertions for routing and persistence.
Security Audit
Medium RiskAll 93 static findings are false positives caused by documentation syntax, Durable Objects SQLite APIs, test fixtures, and Cloudflare documentation links. No command execution, local secret access, or data-exfiltration behavior was found. One medium-risk documentation issue remains: the CORS example uses a wildcard origin while allowing Authorization.
Confirmed security concerns (1)
Risk Factors
โก Contains scripts (11)
โ๏ธ External commands (40)
๐ Network access (22)
๐ Filesystem access (3)
๐ Env variables (4)
Share & cite this report
Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.
Copy report link
https://skillstore.io/skills/cloudflare-durable-objects/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown badge
[](https://skillstore.io/skills/cloudflare-durable-objects?utm_source=security_passport_badge)HTML badge
<a href="https://skillstore.io/skills/cloudflare-durable-objects?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/cloudflare-durable-objects/security.svg" alt="Skillstore security assessment" loading="lazy"></a>Embed card
<iframe src="https://skillstore.io/embed/skills/cloudflare-durable-objects.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>Academic citations (APA ยท BibTeX ยท CFF)
APA citation
cloudflare. (2026). durable-objects security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/cloudflare-durable-objects/audits/1BibTeX citation
@techreport{cloudflare-cloudflare-durable-objects-2026,
author = {cloudflare},
title = {durable-objects security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/cloudflare-durable-objects/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "durable-objects security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "cloudflare"
date-released: "2026-07-20"
url: "https://skillstore.io/skills/cloudflare-durable-objects/audits/1"
identifiers:
- type: other
value: "skillstore:cloudflare-durable-objects:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore Score
Why this score Evidence Confidence: MediumWhat You Can Build
Plan coordinated application state
Design room, game, booking, or tenant objects with clear ownership and routing.
Review Durable Object code
Check storage, concurrency, RPC, alarms, and error handling before release.
Build Workers test coverage
Create isolated Vitest tests for Durable Object methods, HTTP routes, storage, and alarms.
Try These Prompts
Create a TypeScript Durable Object for a chat room. Include a Wrangler binding, SQLite schema, and two RPC methods.
Review this Durable Object storage design. Recommend a SQLite schema and explain how to keep related writes atomic.
Write a Vitest test plan for a Durable Object alarm that expires booking holds. Include normal, retry, and isolation cases.
Review this Workers and Durable Objects architecture for sharding, authorization boundaries, concurrency, WebSocket lifecycle, and observability. List prioritized fixes.
Best Practices
- Retrieve current Cloudflare documentation before relying on an API or configuration detail.
- Persist critical state before updating in-memory caches.
- Use a trusted-origin allowlist for authenticated CORS endpoints.
Avoid
- Do not route all requests through one global Durable Object.
- Do not hold blockConcurrencyWhile across network or other external I/O.
- Do not store secrets in Wrangler configuration files.
Frequently Asked Questions
What does this skill help build?
Can it create Durable Object code?
Does it support SQLite storage?
Can it help with testing?
Does it deploy my Worker?
Should I use the CORS example unchanged?
Developer Details
Author
cloudflareLicense
MIT
Skillstore revision
r1
Version notice
The author did not declare a version.
Ref
77d5da919262b24fe9496be8a819516787d082ed
Maintenance freshness
7/20/2026
Usage
0 downloads ยท 0 views
File structure