cloudflare
它能做什么
这是一个索引,会把你的智能体引导到 Cloudflare 官方的 Workers、Durable Objects、存储及相关工具指南。适合在 Cloudflare 上开发的开发者。
适用场景
- ✓当你正在编写或审查 Cloudflare Workers 或 Durable Objects 代码时。
- ✓当你需要 wrangler、KV、R2、D1 或 Vectorize 方面的帮助时。
- ✓当你正在使用 Cloudflare Agents SDK 构建智能体时。
技能链接
https://github.com/cloudflare/computer/blob/main/.agents/skills/cloudflare/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我正在用 Durable Object 构建一个 Worker。你应该先阅读哪一份 Cloudflare 指南?”
每周 5 个新技能,1 分钟读完。
工作原理
这个技能列出了主要的 Cloudflare 平台指南,并说明每份指南的适用场景。你的智能体会在开始前打开相应的指南。如果某份指南没有安装,它会从链接的来源获取,或使用 Cloudflare 官方文档。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Cloudflare platform skills
This repo is built on Cloudflare Workers and Durable Objects. The
authoritative platform guidance lives in the cloudflare/skills
repository rather than vendored into this repo, so it stays current.
This file is an index — open the relevant skill below when its trigger
applies and read its SKILL.md before starting work.
If a skill isn't already available in your environment, fetch it from the URL listed and load it manually. The fallback for everything is the official Cloudflare documentation at https://developers.cloudflare.com.
Primary skills
These three cover almost every change in this repo:
| Skill | Load when |
|---|---|
durable-objects |
Writing or reviewing Durable Object code: RPC methods, SQLite storage, alarms, WebSockets, hibernation. Most work in packages/dofs and packages/computer qualifies. |
workers-best-practices |
Writing or reviewing Worker code: streaming, floating promises, global state, bindings, secrets, observability, wrangler.jsonc configuration. |
agents-sdk |
Building on the Cloudflare Agents SDK: stateful agents, Workflows integration, scheduled tasks, MCP servers. Relevant to examples/think. |
Other skills
Load these when their trigger applies:
| Skill | Load when |
|---|---|
wrangler |
Running wrangler commands: deploy, dev, secrets, bindings for KV, R2, D1, Vectorize, Hyperdrive, Queues, Workflows, Containers. |
cloudflare |
General Cloudflare platform questions outside the more specific skills above — KV, R2, D1, Vectorize, networking, security, infrastructure-as-code. |
sandbox-sdk |
Building or reviewing sandboxed-execution code paths. Relevant to examples/container-legacy and to the computerd container model in general. |
web-perf |
Profiling page load, Core Web Vitals, or render-blocking issues. Rarely relevant in this repo, but listed for completeness. |
cloudflare-email-service |
Working with Cloudflare Email Routing or the Email Workers binding. Not currently used in this repo. |
How this maps to the repo
packages/dofsis a Durable Object with SQLite storage. Loaddurable-objectsbefore changing storage shape, RPC methods, or alarm handling. Loadworkers-best-practicesfor the surrounding Worker glue.packages/computerruns inside the Durable Object and exposes the capnwebWorkspaceRPCtocomputerd. Loaddurable-objectsfor the hosting model and thecapnwebskill for the RPC surface itself.packages/computerdruns in a sandbox container, not in a Worker. Loadsandbox-sdkif you're working on the container boundary; the FUSE and HTTP/WebSocket internals are local to the package.examples/thinkis an agent. Loadagents-sdkwhen changing it.- Deploys, secrets, bindings. Load
wranglerbefore runningwranglercommands or editingwrangler.jsonc.
When to escalate
If you're about to write something that crosses two Cloudflare surfaces — say, a Worker that wakes a Durable Object that talks to a container — load both relevant skills before starting. The skills are small; loading two is cheaper than fixing an architectural mistake.
常见问题
哪些指南最先用?
Durable Objects、Workers 最佳实践和 Agents SDK 指南涵盖了大部分 Cloudflare 工作。
如果指南没有安装怎么办?
智能体可以从链接的来源获取,或者使用 Cloudflare 官方文档。
这是 Cloudflare 文档的副本吗?
不是。它是一个指向最新指南的索引,因此内容始终保持最新。
详情
作者的原始描述
Index of Cloudflare-platform skills relevant to this repo. Load when working on anything that touches Workers, Durable Objects, wrangler, the sandbox SDK, the agents SDK, or other Cloudflare platform surface. Triggers include "Cloudflare", "Workers", "Durable Object", "wrangler", "KV", "R2", "D1", "Vectorize", "Containers", "sandbox".
repo: cloudflare/computer
热度
- GitHub 星标
- 9.8k
- 排名
- #12205
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
prose
9.8k教你的智能体用简明易懂的英文撰写代码注释、提交信息、README 和文档,避免行话、缩写和官腔。
pull-requests
9.8k教你的智能体撰写清晰的拉取请求描述,讲清一项修改的来龙去脉、它解决的问题,以及如何进行验证。
test-driven-development
9.8k教你的智能体在修改代码前先写一个会失败的测试,并先用测试复现缺陷。帮助证明修改确实有效。
gardener-tasks
9.8k讲解如何编写和检查 Gardener 任务文件,它通过 GitHub Actions 运行 AI 维护作业,并限制每个作业的修改范围。