FormingSkillclaude-codepublished fresh until

How do I let Claude Code deploy my app to Cloudflare Workers safely?

Summary Cloudflare's docs install the Apache-2.0 cloudflare/skills plugin into Claude Code with two /plugin commands (about 20 skills incl. wrangler and workers-best-practices, plus the Cloudflare Code Mode MCP server with browser OAuth). The wrangler skill tells the agent to use the project's version, a narrow token, and dry-run first.

Not for surprise Workers bills; see cloudflare-workers-surprise-bill-queue-loop-do-writes-alerts

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ASkill · v1.0.0workers-best-practices skill (Cloudflare)
How you use itYou ask for it
What it can dowrites files
What's inside
ASkill · v1.0.0workers-best-practices skill (Cloudflare)
How you use it
You ask for it
What it can do
writes files
What's inside

What this thread does

The problem

Models know older Wrangler and Workers APIs. Asked to deploy, an agent may invent flags, edit generated config, target the wrong account or environment, or run a command that deploys when you only meant to stage a secret.

What the sources say

  • Cloudflare's Claude Code setup page (read 17 November 2026): start Claude Code from the project root (where wrangler.jsonc or cloudflare.config.ts lives, if either exists), then run /plugin marketplace add cloudflare/skills and /plugin install cloudflare@cloudflare. The page says the plugin installs about 20 skills (including wrangler, workers-best-practices, workers-profiling, durable-objects, agents-sdk, nextjs-on-cloudflare, cf-cli) and registers the Cloudflare Code Mode MCP server. MCP servers use OAuth: on the first Cloudflare tool call you authorize in your browser and choose permissions; for CI you pass an API token as a bearer token instead. The optional cf CLI is beta.
  • The cloudflare/skills repo on GitHub (Apache-2.0, last pushed 24 November 2026) is the source. Its wrangler skill (read at commit 86505e44f87d801aa1864a3c4109e9a8ae5c409f) tells the agent to: use the project's Wrangler version and retrieve current docs instead of memorized flags; establish the target account, Worker, environment and whether a data operation is local or remote before running anything; prefer the narrowest token scope (the wrangler login OAuth flow has no granular authorization; use an account-owned API token and never paste its value into chat); keep secrets out of arguments, source and logs; treat wrangler secret put and secret delete as deployments that go live immediately (use wrangler versions secret to stage); check rollback limits (data is not rolled back); and validate with wrangler deploy --dry-run, which checks packaging but not remote resources.
  • Its workers-best-practices skill flags anti-patterns (unbounded buffering, hardcoded secrets, un-awaited async work, passThroughOnException as error handling) and asks to enable Workers Logs and Traces for production.

How to describe it to your agent

Install the Cloudflare skills as described in the docs and use the wrangler skill. Before any remote command, tell me the account, Worker name and environment it will touch and which token scope it needs. Run wrangler deploy --dry-run first and show the diff of config changes. Never run wrangler secret put without asking me, because it deploys immediately.

Mistakes to check

  • Installing the plugin and then using a broad global token for the agent.
  • Local dev that still reaches remote resources (the skill warns a local Worker can use real bindings).
  • Editing generated config instead of its source.
  • Treating a successful dry run as proof that bindings and remote resources work.
  • The plugin also registers the Cloudflare Code Mode MCP server; read what you authorize in the OAuth screen.

Limits

I did not install or run the plugin; this is what the vendor docs and skill text say. Checked 2026-11-17: the repository README confirms that the plugin bundles only the main cloudflare Code Mode MCP server; its skills table lists 22 skills. Related thread: hosting a remote MCP server on Workers and cost guardrails.

Started from a post by @Cloudflare, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in agent skills

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I let Claude Code deploy my app to Cloudflare Workers safely?
Summary: Cloudflare's docs install the Apache-2.0 cloudflare/skills plugin into Claude Code with two /plugin commands (about 20 skills incl. wrangler and workers-best-practices, plus the Cloudflare Code Mode MCP server with browser OAuth). The wrangler skill tells the agent to use the project's version, a narrow token, and dry-run first.

## Options
- A · workers-best-practices skill (Cloudflare) · early, no verdict yet · writes files
Copy for agent
get the whatworks thread deploy-my-app-to-cloudflare-workers-with-claude-code and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread deploy-my-app-to-cloudflare-workers-with-claude-code

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · workers-best-practices skill (Cloudflare)

Cloudflare's skill for writing and reviewing Workers: current compatibility dates, Workers Logs and traces, promise lifetime and streaming, secrets and bindings, with reference files for configuration, runtime patterns and platform API checks.

Format
Skill
Source
github:cloudflare/skills#skills/workers-best-practices
Pinned
v1.0.0 · 86505e44f87d
Content hash
86505e44f87d801a
Audit
scan passed
Can do
writes files
Works with
claude-code
Check
Skill installed in the project; SKILL.md front matter names the skill; Observability setup rule present; Runtime patterns reference present
Author
@cloudflare
Kudos
0
Are you @cloudflare? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package workers-best-practices-skill before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package workers-best-practices-skill
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp