cloudflare_ship_worker

A deployment procedure for Cloudflare Workers, which are programs hosted on Cloudflare's network. It covers configuration, storage and service connections, secrets, a dry run, deployment, verification, and rollback preparation.

In plain words
What is it for?
Use it to inspect Wrangler configuration, configure Worker connections to Cloudflare services, validate a build, deploy to the intended environment, and verify the result.
Why use it?
It helps catch missing bindings, incorrect settings, and exposed secrets before a Worker is published.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/tarekkharsa/agentstack/ship-worker
Any agent
npx skills add Tarekkharsa/agentstack --skill ship-worker
Clone the repo
git clone --depth 1 https://github.com/Tarekkharsa/agentstack

Made for: Claude Code, Codex.

Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 634 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00031 $0.00634
Opus 5 $0.00015 $0.00317
Sonnet 5 $0.00006 $0.00127
Haiku 4.5 $0.00003 $0.00063

Measured 2d ago against content hash 976296205de7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cloudflare_ship_worker scanned grade A with 0 findings 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 2d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

crates/cli/catalog/skills/cloudflare/ship-worker/SKILL.md · 54 lines

How it starts

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

Ship a Cloudflare Worker

Unofficial, agentstack-authored. Not affiliated with or endorsed by Cloudflare.

Use this skill when deploying a Cloudflare Worker (new or existing) and you want the deploy to be repeatable, reviewable, and safe to roll back.

Workflow

  1. Read wrangler.toml (or wrangler.jsonc) end to end. Confirm name, main (the entry script), and compatibility_date are set. A missing or stale compatibility_date is the most common cause of surprising runtime behavior — set it to the day you are shipping unless the project pins one deliberately.
  2. Inventory every binding the Worker needs and confirm it exists in config: KV namespaces, R2 buckets, D1 databases, Queues, Durable Objects, service bindings, and vars. A binding referenced in code but absent from config fails at runtime, not at build.
  3. Set secrets out of band with wrangler secret put <NAME> — never commit them to wrangler.toml or vars. Verify with wrangler secret list.
  4. Validate before shipping: wrangler deploy --dry-run --outdir dist builds the bundle without publishing. Read the binding summary it prints and confirm it matches step 2.
  5. Deploy to the intended environment explicitly: wrangler deploy for the default, or wrangler deploy --env staging / --env production. Do not let ambiguity decide which environment ships.
  6. Verify the live deploy: hit the route or workers.dev URL, then tail logs with wrangler tail to confirm requests land and bindings resolve.
  7. If anything looks wrong, roll back with wrangler rollback (or wrangler deployments list then wrangler rollback <id>) rather than hot-patching.

Conventions

  • Use named environments ([env.staging], [env.production]) instead of editing one shared config per deploy. Promote the same code across environments.
  • Keep compatibility_date and compatibility_flags under version control so a deploy is reproducible from a clean checkout.
  • Prefer --dry-run in CI as a fast build/config check on every PR.

Read the full file on GitHub · 54 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. 2d ago First seen · 54 lines · 31 tokens per session scan A 976296205de7

Subscribe to this mod's changes

cloudflare_ship_worker is a skill published in the GitHub repository Tarekkharsa/agentstack (3 stars, last pushed 19d ago), licensed Apache-2.0. It adds 31 tokens to every session and 634 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.