cloudflare-workers-author

cloudflare-workers-author is a skill for Claude Code, Codex from d-padmanabhan/agent-engineering-handbook. It costs 95 tokens per session (2,990 once invoked), scanned A, original, MIT.

A guide to building Cloudflare Workers, which are small programs that run on Cloudflare's network instead of a traditional server. It covers TypeScript services, routes, storage bindings, testing, and deployment.

In plain words
What is it for?
Use it when creating or extending Workers, Durable Objects, Queues, scheduled jobs, email handlers, Pages Functions, or their deployment and test setup.
Why use it?
It helps avoid runtime mistakes and poor choices around storage, secrets, state, routing, testing, and gradual releases.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when creating or extending Workers, Durable Objects, Queues, scheduled jobs, email handlers, Pages Functions, or their deployment and test setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/d-padmanabhan/agent-engineering-handbook/cloudflare-workers-author
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 d-padmanabhan/agent-engineering-handbook --skill cloudflare-workers-author
Clone the repo
git clone --depth 1 https://github.com/d-padmanabhan/agent-engineering-handbook

Made for: Claude Code, Codex.

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-author

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-padmanabhan/agent-engineering-handbook/cloudflare-workers-author/github.svg)](https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/cloudflare-workers-author)
Your own site
<a href="https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/cloudflare-workers-author"><img src="https://agentmods.dev/badge/skills/d-padmanabhan/agent-engineering-handbook/cloudflare-workers-author/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-author

Your own site · 80×15
<a href="https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/cloudflare-workers-author"><img src="https://agentmods.dev/badge/skills/d-padmanabhan/agent-engineering-handbook/cloudflare-workers-author.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,990 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00095 $0.02990
Opus 5.5 $0.00038 $0.01196
Sonnet 5.5 $0.00019 $0.00598
Haiku 4.5 $0.00010 $0.00299

Measured 2mo ago against content hash 956a0398068b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloudflare-workers-author 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 2mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (evals/fixtures/stateful-worker.ts), 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.

| **Default-export HTTP Worker** | `export default { async fetch(req, env, ctx) {...} } satisfies ExportedHandler<Env>` | KV, D1, R2, AI, Service Bindings |
skills/cloudflare-workers-author/SKILL.md · 181 lines

How it starts

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

Cloudflare Workers Author

Companion rule: 401-cloudflare-workers.mdc (file-scoped to wrangler.{jsonc,toml,json} and common Worker entry-point names). The rule is the gate (non-negotiables); this skill is the workflow (how to actually build the Worker).

Voice: opinionated. Cloudflare Workers is a small, fast platform with a specific runtime model. Most production incidents come from treating it like a generic Node.js server (top-level await, mutable module state, unbounded loops, secrets in logs, public-URL Worker-to-Worker calls). The workflow below prevents those.


When to invoke this skill

Invoke when:

  • The user asks to build a new Cloudflare Worker, Durable Object, Workflow, Queue consumer, Cron Trigger, Email Worker, or Pages Function.
  • The user is adding routes / endpoints to an existing Worker.
  • The user asks "should I use KV / D1 / R2 / DO / Hyperdrive for this?" (the bindings-and-storage decision matrix is the answer).
  • The user is setting up testing for a Worker.
  • The user is configuring deployment (gradual rollouts, OIDC for GitHub Actions, secret rotation).
  • A PR review touches wrangler.jsonc, a Worker entry-point file, or a binding configuration.

Do NOT invoke for:

  • Cloudflare Pages static-site work (not Worker authoring). See cloud-platforms/references/cloudflare.md § Pages.
  • WAF rule authoring (use cloudflare-waf-author skill instead).
  • Generic JavaScript / TypeScript code that happens to be imported by a Worker - delegate to the typescript-javascript skill.

Pre-step: classify what you're building

Each Worker type has a different entry-point shape and different bindings emphasis. Ask the user which one if unclear - the wrong entry-point shape is a wrong-handler-signature bug that won't surface until deploy time.

Type Entry point Most common bindings
Default-export HTTP Worker export default { async fetch(req, env, ctx) {...} } satisfies ExportedHandler<Env> KV, D1, R2, AI, Service Bindings
Named-entrypoint (RPC target) export default class extends WorkerEntrypoint { async myMethod() {...} } Same, called via Service Binding from another Worker
Durable Object export class Room extends DurableObject {...} + a default fetch handler that routes to DO DO storage + KV / R2 for cold data
Workflow export class MyWorkflow extends WorkflowEntrypoint { async run(event, step) {...} } KV, D1, R2, Service Bindings, AI
Queue consumer export default { async queue(batch, env, ctx) {...} } D1, R2, Service Bindings, AI
Cron Trigger export default { async scheduled(event, env, ctx) {...} } KV, D1, R2, Service Bindings
Email Worker export default { async email(message, env, ctx) {...} } R2 for attachments, D1 for logs
Pages Function export const onRequest: PagesFunction<Env> = async (ctx) => {...} (in functions/[[path]].ts) KV, D1, R2 (subset of full Worker bindings)

Read the full file on GitHub · 181 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 2mo ago Changed · -2 tokens per session 956a0398068b
  2. 3mo ago First seen · 181 lines · 97 tokens per session scan A f8daccba15ea

Subscribe to this mod's changes

cloudflare-workers-author is a skill published in the GitHub repository d-padmanabhan/agent-engineering-handbook (21 stars, last pushed 9d ago), licensed MIT. It adds 95 tokens to every session and 2,990 once invoked, about $0.0004 per session on Opus 5.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-09-03.

Related

cloudflare-workers-author compared with skills from other repositories

cloudflare-workers-author next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cloudflare-workers-authord-padmanabhan/agent-engineering-handbookSkill219d agoMITA95Claude Code, Codex
alchemy-providerpingdotgg/t3codeSkill90ktodayMITA153Claude Code, Codex
stripe-projectsNousResearch/hermes-agentSkill269ktodayMITA15Claude Code, Codex
django-storages-s3Jeffallan/claude-skillsSkill13ktodayMITA138Claude Code
websocket-engineerJeffallan/claude-skillsSkill13ktodayMITA36Claude Code
azure-eventhub-dotnetmicrosoft/skillsSkill3.3k2d agoMITA94Claude Code
azure-mgmt-botservice-dotnetmicrosoft/skillsSkill3.3k2d agoMITA78Claude Code