/cloudflare:cloudflarefrom cloudflare
Provides expert guidance on Cloudflare platform services including Workers, Pages, KV/D1/R2, Durable Objects, Workers AI, and framework deployments. Prefers live docs over static knowledge.
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.
Read when SKILL.md points to them.
Synced with github.com/cloudflare/skills at cbf893b (2026-11-10): the cloudflare router's references for the products below, plus the upstream cf-cli, wrangler, workers-best-practices, workers-profiling, workers-development, agents-sdk, durable-objects, nextjs-on-cloudflare, frameworks-on-cloudflare and cloudflare-app-bootstrap skills folded in as references. Start from the user's goal, pick the product, then read that reference's README and follow its links.
Your knowledge of Cloudflare APIs, types, limits and pricing may be outdated. Prefer retrieval over pre-training. The references are task routes into the docs, not copies of them: they deliberately avoid restating commands, signatures and numeric limits. When a reference and the docs disagree, trust the docs.
docs / search tools first, else https://developers.cloudflare.com/<product>/llms.txt or the .../index.md pages the references link to.execute → cloudflare.request() against the REST API, authorized by OAuth as the user's account). Reads (D1 .../d1/database/{id}/query, KV, Worker settings, logs) are fine. Deploys, writes, secrets, deletes → only when the user asked. Never ask for or paste an API token.wrangler/cf login. Clone the repo with the host's GitHub path; type-checks, tests, builds and deploys go through the repo's CI / Workers Builds — don't reinstall and rebuild locally what a workflow already does. Local wrangler types / --dry-run only when no workflow covers it.cf (references/cf-cli/; if another cf is on PATH, use its cloudflare alias; cf below means whichever of the two you picked) and, in Wrangler projects, wrangler (references/wrangler/). Account work goes through whichever is authed: the project's CLI or the bundled MCP. Confirm the account first: wrangler whoami against the config's account_id, cf auth whoami for cf (it doesn't read Wrangler config). Wrangler examples (wrangler d1 execute --remote, wrangler tail, wrangler secret put) stay Wrangler-only; in a cf project find the equivalent with cf cli search. Same rule as above for writes. Builds, tests and deploys that the repo's CI or Workers Builds already run still go through them — push and read the run instead of a local deploy. Local dev, Local Explorer and debugging → references/workers-development/.compatibility_date: new Worker → today's date; existing Worker → don't bump casually (read the compatibility-flags docs first). Never copy a date from an example.Upstream default is now the cf CLI (beta) unless the project already uses Wrangler:
wrangler.jsonc / wrangler.json / wrangler.toml and no cloudflare.config.ts → Wrangler for dev, build, deploy (references/wrangler/). cf resource commands (DNS, zones, storage) are fine alongside. cf migrate only when asked.cloudflare.config.ts, a new project, or no Cloudflare config → cf (references/cf-cli/). Don't install Wrangler or create a Wrangler config.references/frameworks/ and then has Wrangler config, so the first bullet applies.Many docs pages show only Wrangler commands and config; in a cf project don't run them or add a Wrangler config. One CLI per project, apart from the npx wrangler commands references/cf-cli/ lists as not yet supported by cf. Where a reference or doc names a Wrangler command, find the cf equivalent with cf cli search "<task>" or the Wrangler to cf reference — never translate from memory.
New sites and apps — static, SPA or full-stack — go on Workers + Workers Static Assets. Keep existing Pages projects on Pages during unrelated maintenance; migrate only when asked.
| Need | Product | Reference |
|---|---|---|
| API, webhook, edge logic, production Worker code | Workers | references/workers/ (best practices: config, runtime patterns, platform APIs) |
| New website / SPA / full-stack app | Workers + Static Assets | references/static-assets/ |
| Framework app on Workers (Astro, SvelteKit, React Router, TanStack Start, Nuxt, Hono, SPA) | Framework tooling + Workers | references/frameworks/ |
| Next.js app on Workers (new or migrating) | vinext on Workers | references/nextjs/ |
| Get an existing app running locally (bindings, secrets, seed data) | Local development | references/app-bootstrap/ |
| Inspect local binding data, traces or logs; debug a deployed Worker | Local Explorer, Workers observability | references/workers-development/ |
| Worker far from its regional database / backends | Workers placement | references/workers/configuration.md → Place compute near regional databases |
| Existing Pages site / its server endpoints | Pages + Pages Functions | references/pages/, references/pages-functions/ |
| Scheduled job | Cron Triggers | references/cron-triggers/ |
| Give a Worker access to a resource | Bindings | references/bindings/ |
| Read-heavy config / cache, stale-tolerant | KV | references/kv/ |
| Relational records, SQL | D1 | references/d1/ |
| Per-entity coordinated state, strong consistency, WebSockets, alarms | Durable Objects | references/durable-objects/ |
| Files, uploads, large objects | R2 | references/r2/ |
| Run a model at the edge (text, embeddings, images, speech) | Workers AI | references/workers-ai/ |
| Proxy / cache / log / rate-limit / route calls to any AI provider | AI Gateway | references/ai-gateway/ |
| Stateful AI agent, chat agent, MCP server or client, scheduled/durable agent work | Agents SDK | references/agents-sdk/ |
| Automate account config via HTTP | REST API | REST API docs; the bundled MCP's execute; from a terminal, cf resource commands |
| Reach an Access-protected page or API from an agent, script or crawler | Access service tokens | Service token docs |
Proxied site shows a Cloudflare error page, 52x, 1xxx code or Cloudflare 403 | Error triage | references/http-errors/ (decide: zone config or origin) |
| Run, configure, deploy, Previews, secrets, environments | cf CLI / Wrangler | references/cf-cli/ (new projects), references/wrangler/ (Wrangler projects) |
| Profile CPU or memory of a deployed Worker / DO | Workers profiling | references/workers-profiling/ |
Not bundled — go straight to docs (Cloudflare MCP docs tool or the directory): Workflows, Queues, Containers, Sandbox, Dynamic Workers, Workers for Platforms, Hyperdrive, Vectorize, AI Search, Browser Rendering, Secrets Store, Artifacts, Basin/K2, Tunnel, WAF/DDoS/Bot Management/API Shield/Turnstile, Images, Stream, Realtime, Email, Zaraz, Observability/Tail Workers/Analytics Engine, Terraform/Pulumi, Flagship, GraphQL Analytics API, Gateway Forward Workers, Workers Builds/Previews internals. Upstream has dedicated skills for some of these (sandbox-*, gateway-workers, turnstile-spin, web-perf, cloudflare-email-service, cloudflare-one*) — deliberately not installed; use their docs.
When products could overlap, decide on the deciding requirement: data shape, consistency (KV eventual vs D1/DO strong), coordination (Durable Objects), execution lifecycle (cron vs Workflows vs Queues), and how much infra the user wants to run. Check current limits and pricing before promising a fit — especially on the free tier.
references/workers/README.md first; it routes to configuration.md, runtime-patterns.md (streaming, waitUntil, no floating promises, no request-scoped global state, Web Crypto) and platform-apis.md (binding access, serialization boundaries).wrangler types in Wrangler projects, cf workers types in cf projects) — never hand-edit generated declarations.wrangler secret put/delete as a deploy. Rollbacks don't roll back data in bound resources.If the user reports that guidance here is wrong, outdated or missing, read references/skill-feedback.md.
LICENSE.txt (opens in a new tab)agents/openai.yaml (opens in a new tab)assets/icon.svg (opens in a new tab)references/agents-sdk/README.md (opens in a new tab)references/agents-sdk/browse-the-web.md (opens in a new tab)references/agents-sdk/callable.md (opens in a new tab)references/agents-sdk/client-sdk.md (opens in a new tab)references/agents-sdk/codemode.md (opens in a new tab)references/agents-sdk/configuration.md (opens in a new tab)references/agents-sdk/durable-execution.md (opens in a new tab)references/agents-sdk/email.md (opens in a new tab)references/agents-sdk/human-in-the-loop.md (opens in a new tab)references/agents-sdk/mcp.md (opens in a new tab)references/agents-sdk/observability.md (opens in a new tab)references/agents-sdk/queue-retries.md (opens in a new tab)references/agents-sdk/routing.md (opens in a new tab)references/agents-sdk/server-driven-messages.md (opens in a new tab)references/agents-sdk/state-scheduling.md (opens in a new tab)references/agents-sdk/streaming-chat.md (opens in a new tab)references/agents-sdk/think.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub travnie/twojstar --plugin cloudflare