cloudflare-queues:troubleshoot

cloudflare-queues:troubleshoot is a command for coding agents from secondsky/claude-skills. It costs 18 tokens per session (2,373 once invoked), scanned A, original, MIT.

A troubleshooting command for investigating common Cloudflare Queue problems, such as undelivered messages or a growing backlog.

In plain words
What is it for?
It helps verify that the queue exists, inspect backlog and consumers, check producer and consumer configuration, and identify likely causes of failures.
Why use it?
It replaces scattered checks with a structured review of the queue, its bindings, and its consumer settings.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/queue-troubleshoot.svg)](https://agentmods.dev/commands/secondsky/claude-skills/queue-troubleshoot)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/queue-troubleshoot"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/queue-troubleshoot.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,373 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.00018 $0.02373
Opus 5 $0.00009 $0.01187
Sonnet 5 $0.00004 $0.00475
Haiku 4.5 $0.00002 $0.00237

Measured yesterday against content hash 8cbbb5eb9b30, 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:troubleshoot 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.

await fetch(url, { signal: controller.signal });
plugins/cloudflare-queues/commands/queue-troubleshoot.md · 408 lines

How it starts

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

Queue Troubleshoot Command

Troubleshoot Cloudflare Queue issues with systematic checks.

Usage: /queue-troubleshoot my-queue-name

Step 1: Validate Input

If queue name provided as argument ($1), use it. If not provided, ask user:

  • "Which queue name do you want to troubleshoot?"
  • Store as: queueName

Step 2: Quick Status Check

Run diagnostics in parallel:

# Check if queue exists
wrangler queues list

# Get queue details
wrangler queues info $queueName

Analyze output for:

  • ✅ Queue exists and is listed
  • ⚠️ High backlog (>100 messages)
  • ⚠️ No active consumer
  • ❌ Queue not found (doesn't exist)

Output Example:

Queue Status: my-queue
├── Exists: ✅ Yes
├── Backlog: ⚠️ 250 messages (high)
├── Consumers: ⚠️ 0 active (no consumer configured)
└── Last Activity: 5 minutes ago

Step 3: Configuration Check

Read wrangler.jsonc/wrangler.toml and verify:

Producer Check:

  • Search for queues.producers array
  • Check if any binding references $queueName
  • Verify binding name is valid JavaScript identifier

Consumer Check:

  • Search for queues.consumers array
  • Check if any consumer references $queueName
  • Verify settings are reasonable:
    • max_batch_size: 1-100
    • max_retries: 1-10 (3 is typical)
    • max_concurrency: 1-20 (1-5 is typical)
  • Check if dead_letter_queue configured

Output Example:

Configuration Check:
Producer:
  ✅ Binding: MY_QUEUE → my-queue

Consumer:
  ❌ NOT CONFIGURED
  → Recommendation: Add consumer configuration:
    ```jsonc
    {
      "queues": {
        "consumers": [{
          "queue": "my-queue",
          "max_batch_size": 10,
          "max_retries": 3
        }]
      }
    }
    ```

DLQ:
  ⚠️ Not configured (recommended for production)

Step 4: Common Issues Check

For each common issue, check and provide fix:

Issue 1: Messages Not Being Consumed

Symptom: Backlog growing, no consumer errors Check:

  • Is consumer configured in wrangler.jsonc?
  • Is Worker deployed with queue handler?
  • Is queue() export present in Worker?

Read the full file on GitHub · 408 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 · 408 lines · 18 tokens per session scan A 8cbbb5eb9b30

Subscribe to this mod's changes

cloudflare-queues:troubleshoot is a command published in the GitHub repository secondsky/claude-skills (214 stars, last pushed yesterday), licensed MIT. It adds 18 tokens to every session and 2,373 once invoked, about $0.0001 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.