/cloudflare:cloudflare-workersfrom cloudflare
Use this skill when the user asks about Cloudflare Workers, deploying serverless functions on Cloudflare's edge network, writing Worker scripts, configuring Worker routes and bindings, or managing Workers 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.
Cloudflare Workers let you run JavaScript/TypeScript (or WASM) on Cloudflare's global edge network with near-zero cold starts. Workers execute in V8 isolates, not containers.
wrangler (npx wrangler or npm i -g wrangler)cloudflare.WorkersScript (docs)# Create a new Worker project
npx wrangler init my-worker
cd my-worker
# Develop locally
npx wrangler dev
# Deploy
npx wrangler deploy
export default {
async fetch(request: Request, env: Env, ctx: ExecutionContext): Promise<Response> {
return new Response("Hello from the edge!");
},
async scheduled(event: ScheduledEvent, env: Env, ctx: ExecutionContext) {
// Cron trigger handler
},
};
interface Env {
MY_KV: KVNamespace;
MY_R2: R2Bucket;
MY_DB: D1Database;
SECRET_KEY: string;
}
Workers connect to other Cloudflare services via bindings declared in wrangler.toml:
| Binding | Type | Use Case |
|---|---|---|
| KV | kv_namespaces | Key-value storage |
| R2 | r2_buckets | Object storage |
| D1 | d1_databases | SQL database |
| Durable Objects | durable_objects | Stateful coordination |
| Queues | queues | Message queues |
| AI | ai | Workers AI inference |
| Service | services | Worker-to-Worker calls |
| Secret | [vars] / secrets | Environment variables |
import * as cloudflare from "@pulumi/cloudflare";
const worker = new cloudflare.WorkersScript("my-worker", {
accountId: accountId,
name: "my-worker",
content: workerScriptContent, // The JS/TS bundle as a string
module: true, // ES modules format
// Bindings
kvNamespaceBindings: [
{
name: "MY_KV",
namespaceId: myKvNamespace.id,
},
],
r2BucketBindings: [
{
name: "MY_R2",
bucketName: myR2Bucket.name,
},
],
d1DatabaseBindings: [
{
name: "MY_DB",
databaseId: myD1Database.id,
},
],
plainTextBindings: [
{
name: "ENV_VAR",
text: "value",
},
],
secretTextBindings: [
{
name: "API_KEY",
text: config.requireSecret("apiKey"),
},
],
});
// Route the worker to a custom domain
const route = new cloudflare.WorkersRoute("my-route", {
zoneId: zone.id,
pattern: "api.example.com/*",
scriptName: worker.name,
});
| Limit | Free | Paid |
|---|---|---|
| Requests/day | 100,000 | Unlimited |
| CPU time/request | 10ms | 30s |
| Script size | 1 MB | 10 MB |
| Subrequests | 50 | 1,000 |
| KV reads/request | 1,000 | 1,000 |
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