cloudflare-workers:deploy

cloudflare-workers:deploy is a command for coding agents from secondsky/claude-skills. It costs 34 tokens per session (1,611 once invoked), scanned A, original, MIT.

A guided deployment command for sending Cloudflare Workers to the cloud. It lets you choose environments such as staging or production and checks the project before deployment.

In plain words
What is it for?
Use it to validate Wrangler configuration, select a deployment environment, inspect Git status, and deploy a Worker safely.
Why use it?
It reduces mistakes caused by deploying to the wrong environment, missing configuration, or having uncommitted code changes.

Command

Part of the cloudflare-workers plugin — 10 skills, 5 commands, 3 agents shipped together

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 commands/secondsky/claude-skills/workers-deploy
Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Or install cloudflare-workers, the plugin that ships this one along with the rest of its 10 skills, 5 commands, 3 agents.

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:deploy

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/workers-deploy.svg)](https://agentmods.dev/commands/secondsky/claude-skills/workers-deploy)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/workers-deploy"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/workers-deploy.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,611 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00034 $0.01611
Opus 5 $0.00017 $0.00805
Sonnet 5 $0.00007 $0.00322
Haiku 4.5 $0.00003 $0.00161

Measured yesterday against content hash a7067867b35a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cloudflare-workers:deploy 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 yesterday.

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.

curl -I [deployment-url]
plugins/cloudflare-workers/commands/workers-deploy.md · 279 lines

How it starts

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

Workers Deploy Command

Safe, guided deployment workflow for Cloudflare Workers with environment management and pre-deploy validation.

Execution Workflow

Phase 1: Environment Detection

Read and analyze the project configuration:

  1. Check for wrangler config:

    • Look for wrangler.jsonc or wrangler.toml
    • If neither exists, abort: "No wrangler configuration found. Run bunx wrangler init first."
  2. Parse environments:

    • Extract environment configurations from wrangler config
    • Identify: name, routes, vars, bindings for each environment
    • Common environments: production, staging, dev, preview
  3. Check current git status:

    git status --porcelain
    
    • Warn if uncommitted changes exist
    • Suggest committing before deploy
  4. Check if wrangler is installed:

    bunx wrangler --version
    
    • If fails, install will happen via bunx

Phase 2: Environment Selection

If --env argument provided:

  • Use that environment
  • Validate it exists in wrangler config
  • If not found, abort with available environments list

If no --env argument: Use AskUserQuestion to select environment:

Question: "Which environment do you want to deploy to?"

  • Options (dynamically generated from config):
    • production - Live environment (requires extra confirmation)
    • staging - Pre-production testing
    • dev - Development environment
    • [Any other envs found in config]

Phase 3: Pre-Deploy Validation

Ask user about pre-deploy checks:

Question: "Run pre-deploy validations?"

  • Options:
    • Run all checks (tests + types + build) (Recommended)
    • Run tests only
    • Run types only
    • Skip validations (deploy immediately)

Based on selection, run:

Tests (if package.json has test script):

npm run test || bun test
  • If tests fail, abort: "Tests failed. Fix issues before deploying."
  • Allow user to override with confirmation

Type checking (if TypeScript project):

bunx tsc --noEmit
  • If type errors, abort: "Type errors found. Fix before deploying."
  • Allow user to override with confirmation

Read the full file on GitHub · 279 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. yesterday First seen · 279 lines · 34 tokens per session scan A a7067867b35a

Subscribe to this mod's changes

cloudflare-workers:deploy is a command published in the GitHub repository secondsky/claude-skills (214 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 1,611 once invoked, about $0.0002 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-09-03.