cloudflare-workers

cloudflare-workers is a skill for Claude Code from Goodsmileduck/claude-registry. It costs 163 tokens per session (2,327 once invoked), scanned A, original, MIT.

A guide for creating and reviewing Cloudflare Workers projects. Cloudflare Workers run code at Cloudflare’s edge, and this guide covers their configuration, connected services, deployments, and durable data objects.

In plain words
What is it for?
Use it when configuring or debugging Workers, KV, R2, D1, Queues, Durable Objects, service bindings, Vectorize, Workers AI, custom domains, and deployments.
Why use it?
It helps explain production-only failures caused by environment settings, service bindings, routing, migrations, secrets, or compatibility changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cloud-platform-skills plugin — 7 skills shipped together

Good fit Use it when configuring or debugging Workers, KV, R2, D1, Queues, Durable Objects, service bindings, Vectorize, Workers AI, custom domains, and deployments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goodsmileduck/claude-registry/cloudflare-workers
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Goodsmileduck/claude-registry --skill cloudflare-workers
Clone the repo
git clone --depth 1 https://github.com/Goodsmileduck/claude-registry

Made for: Claude Code.

Or install cloud-platform-skills, the plugin that ships this one along with the rest of its 7 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cloudflare-workers

README.md
[![agentmods](https://agentmods.dev/badge/skills/goodsmileduck/claude-registry/cloudflare-workers/github.svg)](https://agentmods.dev/skills/goodsmileduck/claude-registry/cloudflare-workers)
Your own site
<a href="https://agentmods.dev/skills/goodsmileduck/claude-registry/cloudflare-workers"><img src="https://agentmods.dev/badge/skills/goodsmileduck/claude-registry/cloudflare-workers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cloudflare-workers

Your own site · 80×15
<a href="https://agentmods.dev/skills/goodsmileduck/claude-registry/cloudflare-workers"><img src="https://agentmods.dev/badge/skills/goodsmileduck/claude-registry/cloudflare-workers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 163 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,327 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00163 $0.02327
Opus 5 $0.00081 $0.01163
Sonnet 5 $0.00033 $0.00465
Haiku 4.5 $0.00016 $0.00233

Measured 8d ago against content hash 5cf1e1b4ef0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

cloudflare-workers scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/validate_wrangler.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

6. **Module syntax only.** Service Worker syntax (`addEventListener('fetch', ...)`) is deprecated. New `compatibility_date` values can refuse it. Use `export default { fetch(req, env, ctx) { ... } }`.
plugins/cloud-platform-skills/skills/cloudflare-workers/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloudflare Workers

When to invoke

Symptoms:

  • A binding works in wrangler dev but is undefined in production.
  • wrangler deploy fails with Cannot apply new-class migration to class 'X' that is already depended on by existing Durable Objects or Class 'X' cannot be used as a Durable Object after a code rename.
  • A secret value is visible in the Cloudflare dashboard under "Variables" — or worse, committed in wrangler.toml.
  • Same hostname has both a Custom Domain and a route pattern, and routing is non-deterministic.
  • New Pages project — should it actually be a Worker?
  • Two Workers in the same account need to talk; engineer is about to wire it through a public URL.
  • compatibility_date was bumped and something started 500-ing.
  • wrangler tail shows the deploy succeeded but the new code isn't running.

The trap this prevents: treating wrangler.toml/wrangler.jsonc as docstring-like config. Several keys are non-inheritable across envs, several have implicit ordering, and the Durable Object migrations array is append-only with strict semantics. Most "it broke in prod" Workers incidents trace to one of these.

Inputs to collect first

Input Why Example
Account ID All Workers are account-scoped dashboard sidebar
Worker name Becomes <name>.<subdomain>.workers.dev and route target checkout-api
Routes vs Custom Domain Decide before deploying — they conflict on the same hostname api.example.com/* (route) or api.example.com (custom domain)
Bindings list KV / R2 / D1 / Queues / DOs / services / AI / Vectorize [{type: kv, id: ...}, {type: do, class: Counter}]
Environments staging, production, ephemeral PR envs dictates env block structure
compatibility_date Behavior pin; not metadata 2025-05-01, recent but not future
Static assets Yes/no; SPA vs MPA; needs Worker handler? ./dist, SPA, no

API token scopes for deploy: see references/recipes/ci-deploy.md for the full per-resource list.

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 120 lines · 163 tokens per session scan A 5cf1e1b4ef0f

Subscribe to this mod's changes

cloudflare-workers is a skill published in the GitHub repository Goodsmileduck/claude-registry (1 stars, last pushed 1mo ago), licensed MIT. It adds 163 tokens to every session and 2,327 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.