cloudflare/skills✦ 精选0°

durable-objects

仓库创建 2025年12月11日最近提交 7 小时前SkillHot 收录 1 小时前
▸ 精选理由

专注状态协调与 DO 最佳实践,适合边缘实时应用开发。

▸ 风险提示

可能需要访问用户代码库与 Cloudflare 帐号权限

这个 Skill 做什么

为使用 Cloudflare Durable Objects 构建有状态应用(聊天室、游戏等)提供指导与审查。

指导用 Cloudflare Durable Objects 构建有状态应用,比如聊天室、多人游戏或预订系统,或审查相关代码。涵盖实现 RPC、用 Durable Objects 存 SQLite、设置 alarms、处理 WebSocket、以及和 Workers、wrangler 的集成,并建议用 Vitest 做测试。偏向参考 Cloudflare 官方文档来保证 API 与配置是最新的,而不是只凭旧知识。

▸ 展开 SKILL.md 英文原文

Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.

开发编程持久化协调WebSocket测试通用
2.6k
Stars
242
Forks
13
仓库内 Skill
积累中
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/cloudflare/skills/main/skills/durable-objects/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/cloudflare/skills/main/skills/durable-objects/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Durable Objects

Build stateful, coordinated applications on Cloudflare's edge using Durable Objects.

## Retrieval Sources

Your knowledge of Durable Objects APIs and configuration may be outdated. **Prefer retrieval over pre-training** for any Durable Objects task.

| Resource | URL |
|----------|-----|
| Docs | https://developers.cloudflare.com/durable-objects/ |
| API Reference | https://developers.cloudflare.com/durable-objects/api/ |
| Best Practices | https://developers.cloudflare.com/durable-objects/best-practices/ |
| Examples | https://developers.cloudflare.com/durable-objects/examples/ |

Fetch the relevant doc page when implementing features.

## When to Use

- Creating new Dur
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有