/cloudflare:cloudflare-durable-objectsfrom cloudflare
Use this skill when the user asks about Cloudflare Durable Objects, stateful serverless on Cloudflare, WebSocket coordination, distributed counters or locks, or managing Durable Objects with Pulumi.
Ships in cloudflare. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Durable Objects provide strongly consistent, low-latency coordination and state for Workers. Each object is a single-threaded instance with persistent storage, ideal for WebSocket servers, counters, rate limiters, and collaborative apps.
cloudflare.WorkersScript with durableObjectBindingsexport class Counter {
state: DurableObjectState;
constructor(state: DurableObjectState) {
this.state = state;
}
async fetch(request: Request): Promise<Response> {
let value = (await this.state.storage.get<number>("count")) ?? 0;
value++;
await this.state.storage.put("count", value);
return new Response(value.toString());
}
}
export default {
async fetch(request: Request, env: Env): Promise<Response> {
const id = env.COUNTER.idFromName("my-counter");
const stub = env.COUNTER.get(id);
return stub.fetch(request);
},
};
[durable_objects]
bindings = [
{ name = "COUNTER", class_name = "Counter" }
]
[[migrations]]
tag = "v1"
new_classes = ["Counter"]
const worker = new cloudflare.WorkersScript("do-worker", {
accountId,
name: "do-worker",
content: workerScript,
module: true,
});
// Durable Object bindings are part of the Worker script resource.
// The class must be exported from the Worker module.
// Migrations are handled via wrangler.toml, not Pulumi.
| Resource | Free | Paid |
|---|---|---|
| Requests | 1M included | $0.15/M |
| Duration | 400K GB-s | $12.50/M GB-s |
| Storage reads | 1M/month | $0.20/M |
| Storage writes | 1M/month | $1.00/M |
| Storage | 1 GB | $0.20/GB/month |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nsheaps/ai-mktpl --plugin cloudflare15 skills in this plugin
/cloudflare-ai-gatewayUse this skill when the user asks about Cloudflare AI Gateway, proxying AI API requests through Cloudflare, setting up Claude Code with AI Gateway, configuring ANTHROPIC_BASE_URL, routing AI traffic through a gateway for logging/caching/rate-limiting, cost tracking for AI APIs, connecting Claude Code to OpenRouter or z.ai via a gateway, or managing AI Gateway with Pulumi.
/cloudflare-d1Use this skill when the user asks about Cloudflare D1, serverless SQL databases on Cloudflare, SQLite on the edge, or managing D1 databases with Pulumi.
/cloudflare-dnsUse this skill when the user asks about Cloudflare DNS, managing DNS records, domain zones, DNSSEC, proxied records, or managing DNS with Pulumi.
Other plugins' skills for the same job