- How you use it
- You ask for it
- What it can do
- writes files
- What's inside
The option
| Option | 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.jsoncorcloudflare.config.tslives, if either exists), then run/plugin marketplace add cloudflare/skillsand/plugin install cloudflare@cloudflare. The page says the plugin installs about 20 skills (includingwrangler,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 optionalcfCLI is beta. - The cloudflare/skills repo on GitHub (Apache-2.0, last pushed 24 November 2026) is the source. Its
wranglerskill (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 (thewrangler loginOAuth 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; treatwrangler secret putandsecret deleteas deployments that go live immediately (usewrangler versions secretto stage); check rollback limits (data is not rolled back); and validate withwrangler deploy --dry-run, which checks packaging but not remote resources. - Its
workers-best-practicesskill flags anti-patterns (unbounded buffering, hardcoded secrets, un-awaited async work,passThroughOnExceptionas 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. Runwrangler deploy --dry-runfirst and show the diff of config changes. Never runwrangler secret putwithout 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
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.