Index of every page on this site: llms.txt
All skills
cloudflare avatar

/durable-objects

@5108325 official
by cloudflarecloudflare/skills3.4k stars
357
Run it yourself

Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.

Use this Skill: https://skilld.dev/gh/cloudflare/skills/durable-objects

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesskill-feedback.md

≈701 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Skill feedback

GitHub issues are public: anyone can read an issue once it is posted. Never include sensitive information, and never post an issue until the user has seen the exact title and body and approved it.

Use this when the user reports that the durable-objects skill gave incorrect or outdated guidance, is missing information, or could be improved. This is about the skill (agent instructions), not about Cloudflare products.

What not to include

The issue is drafted from the conversation, so remove the following before drafting and describe the problem in general terms instead:

  • Credentials, API tokens, secrets, and passwords
  • Account IDs, zone IDs, and other resource identifiers
  • Customer or personal data, such as names, email addresses, and IP addresses
  • Internal hostnames and URLs
  • Private code, configuration, and logs

Steps

  1. Ask permission – Ask the user if they would like to submit feedback to the skill maintainers. If they decline, move on.

  2. Draft the issue – Fill in the table below from the conversation and use it as the issue body. Always identify which specific file and section caused the problem. Leave out everything listed in What not to include.

  3. Review with the user – Show the user the exact title and body, then ask a yes/no question, such as "Post this as a public issue on cloudflare/skills?" Submit only after the user answers yes. If they ask for changes, apply them and ask again. If they answer no, do not post. Agreeing to send feedback in step 1 is not approval of the text.

  4. Submit – Create a GitHub issue on the cloudflare/skills repository with the approved draft as the body, for example with gh issue create --repo cloudflare/skills. The title must follow this format: skill-feedback: durable-objects: <summary of the problem>.

  5. Share the result – Share the issue URL with the user after submission. If submission fails, give the user the approved title and body, and this link to create the issue manually: https://github.com/cloudflare/skills/issues/new

Issue body

Field Value
Type bug (incorrect guidance), outdated, missing, or improvement
Skill durable-objects
Source File and section, e.g. SKILL.md > "Section name" or references/<file>.md > "Section name"
Agent The agent and model in use, if known
Task What the user was trying to do, e.g. "deploy a preview"
Expected What should have happened, e.g. "Create a Preview deployment"
Actual What the skill said or what happened, e.g. "Unknown option: --preview"
Impact The effect on the user, e.g. "Time spent finding the correct syntax"
Suggested fix How the skill should change; leave blank if unsure

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts21d5 checks · Risk SAFE
  • Gen Agent Trust Hub21d

    This skill is safe for use. It provides comprehensive and correct guidance for developing Cloudflare Durable Objects and includes security best practices such as input validation, secure secrets management, and proper authorization scoping.

  • Socket21d

    No alerts

  • Snyk21d

    Risk: LOW · No issues

  • Runlayer8mo

    4 files scanned · No issues

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 5108325. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 3 weeks ago
  • TypeScript
  • cloudflare
  • durable-objects
  • workers
  • stateful
  • coordination
  • websockets
  • sqlite
  • vitest
  • wrangler

README badge

README badge for cloudflare/skills/durable-objects

Creates and reviews Cloudflare Durable Objects for stateful edge applications, covering RPC methods, SQLite storage, alarms, and WebSocket handlers. Use for building coordination systems like chat rooms, multiplayer games, and booking systems, plus Vitest testing and wrangler configuration.

Generated from the current SKILL.md.

Does this skill work with plain Workers or only Durable Objects?
This skill targets Durable Objects specifically. For stateless request handling, use plain Workers instead.
What storage backends does this cover?
The skill covers SQLite (recommended and synchronous) and KV storage (async). SQLite is the primary focus for Durable Objects.
Can I use this skill to test Durable Objects with Vitest?
Yes. The skill includes Vitest setup and testing patterns using `@cloudflare/vitest-pool-workers`, with examples for unit and integration tests including alarm testing.
Does this skill prioritize Cloudflare's official documentation?
Yes. The skill biases towards retrieving from Cloudflare's official docs over pre-trained knowledge for any Durable Objects task.

Generated from the current SKILL.md. These answers refresh after source changes.