cloudflare-queues:setup

cloudflare-queues:setup is a command for coding agents from secondsky/claude-skills. It costs 47 tokens per session (3,694 once invoked), scanned A, original, MIT.

An interactive wizard for setting up a Cloudflare Queue and connecting it to a Worker.

In plain words
What is it for?
It helps create a queue, configure producer and consumer bindings, set up a dead-letter queue, and provide example code.
Why use it?
It reduces setup errors when creating the queue and configuring the code that sends or receives messages.

Command

Part of the cloudflare-queues plugin — 1 skill, 3 commands, 2 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/queue-setup
Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Or install cloudflare-queues, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 2 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-queues:setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/queue-setup.svg)](https://agentmods.dev/commands/secondsky/claude-skills/queue-setup)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/queue-setup"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/queue-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,694 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.00047 $0.03694
Opus 5 $0.00023 $0.01847
Sonnet 5 $0.00009 $0.00739
Haiku 4.5 $0.00005 $0.00369

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

Security

Grade A, and why

cloudflare-queues:setup 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 -X POST https://your-worker.workers.dev/send \
plugins/cloudflare-queues/commands/queue-setup.md · 635 lines

How it starts

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

Queue Setup Wizard

Overview

Interactive wizard for complete Cloudflare Queues setup: create queue, configure producer/consumer bindings, set up DLQ, and provide example code.

Prerequisites

Check before starting:

  • Cloudflare account with wrangler authenticated (wrangler whoami)
  • Existing Worker project or willingness to create one
  • Write access to wrangler.jsonc/wrangler.toml

Steps

Step 1: Gather Requirements

Use AskUserQuestion to collect setup preferences.

Question 1: Queue Name

  • Header: "Queue Name"
  • Question: "What should the queue be named?"
  • multiSelect: false
  • Options:
    • Label: "Descriptive name (e.g., order-processing)" Description: "Describes what the queue processes"
    • Label: "Environment-specific (e.g., prod-notifications)" Description: "Includes environment in the name"
  • Store user response as: queueName
  • If user provides custom text, validate: alphanumeric + hyphens only

Question 2: Queue Purpose

  • Header: "Purpose"
  • Question: "What will this queue be used for?"
  • multiSelect: false
  • Options:
    • Label: "Producer only (send messages from Worker)" Description: "Worker will send messages to queue, consumed elsewhere"
    • Label: "Consumer only (process messages in Worker)" Description: "Worker will process messages from queue"
    • Label: "Both producer and consumer (Recommended)" Description: "Worker will both send and process messages"
  • Store as: queuePurpose

Question 3: Consumer Settings (if purpose includes consumer)

  • Header: "Consumer"
  • Question: "Which consumer settings?"
  • multiSelect: false
  • Options:
    • Label: "Standard (batch: 10, retries: 3, concurrency: 1) (Recommended)" Description: "Balanced settings for most use cases"
    • Label: "High throughput (batch: 50, retries: 1, concurrency: 5)" Description: "Fast processing for high-volume queues"
    • Label: "Low latency (batch: 1, retries: 3, concurrency: 1)" Description: "Minimal delay for time-sensitive messages"
    • Label: "Custom (I'll specify)" Description: "Provide your own batch size, retries, concurrency"
  • Store as: consumerSettings
  • If "Custom" selected, ask follow-up for batch_size, max_retries, max_concurrency

Read the full file on GitHub · 635 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 · 635 lines · 47 tokens per session scan A e93394e9e6bd

Subscribe to this mod's changes

cloudflare-queues:setup is a command published in the GitHub repository secondsky/claude-skills (214 stars, last pushed yesterday), licensed MIT. It adds 47 tokens to every session and 3,694 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.