cloudflare-queues:monitor

cloudflare-queues:monitor is a command for Claude Code from secondsky/claude-skills. It costs 17 tokens per session (2,208 once invoked), scanned A, original, MIT.

A command that shows current status and metrics for a Cloudflare Queue, including waiting messages and active consumers.

In plain words
What is it for?
It helps inspect backlog, consumer activity, dead-letter-queue status, and recent activity for a named queue.
Why use it?
It gives a quick view of whether a queue is healthy or building up unprocessed work.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the cloudflare-queues plugin — 1 skill, 3 commands, 2 agents shipped together

Good fit It helps inspect backlog, consumer activity, dead-letter-queue status, and recent activity for a named queue.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/secondsky/claude-skills/queue-monitor
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.

Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/queue-monitor/github.svg)](https://agentmods.dev/commands/secondsky/claude-skills/queue-monitor)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/queue-monitor"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/queue-monitor/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-queues:monitor

Your own site · 80×15
<a href="https://agentmods.dev/commands/secondsky/claude-skills/queue-monitor"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/queue-monitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 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,208 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00017 $0.02208
Opus 5 $0.00009 $0.01104
Sonnet 5 $0.00003 $0.00442
Haiku 4.5 $0.00002 $0.00221

Measured 7d ago against content hash acefeaff030a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

cloudflare-queues:monitor 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 7d 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.

plugins/cloudflare-queues/commands/queue-monitor.md · 347 lines

How it starts

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

Queue Monitor Command

Display real-time metrics and status for Cloudflare Queues.

Usage: /queue-monitor my-queue-name

Step 1: Validate Input

If queue name provided as argument ($1), use it. If not provided, list available queues:

wrangler queues list

Ask user to select from list or enter queue name manually.

Step 2: Fetch Queue Metrics

Run wrangler command to get current status:

wrangler queues info $queueName

Parse output to extract:

  • Queue name
  • Current backlog (messages waiting)
  • Consumer count (active consumers)
  • DLQ status (if configured)
  • Last activity timestamp

Step 3: Display Formatted Metrics

Present metrics in organized, readable format:

═══════════════════════════════════════════════════════════
  CLOUDFLARE QUEUES MONITOR
═══════════════════════════════════════════════════════════

Queue: order-processing-queue
Status: ✅ Active
Last Updated: 2025-12-27 10:30:45 UTC

───────────────────────────────────────────────────────────
  QUEUE METRICS
───────────────────────────────────────────────────────────

Backlog:              125 messages
├─ Status:            ⚠️ Moderate (>100)
├─ Trend:             ↗ Growing (was 80, 5 min ago)
└─ Est. Clear Time:   ~12 minutes (at current rate)

Consumer:
├─ Active:            ✅ Yes (1 consumer)
├─ Batch Size:        10 messages
├─ Concurrency:       1
├─ Max Retries:       3
└─ Processing Rate:   ~10 msg/min

Dead Letter Queue:
├─ Configured:        ✅ Yes (order-processing-dlq)
├─ Failed Messages:   5 messages
└─ Status:            ✅ Low (<10)

───────────────────────────────────────────────────────────
  HEALTH INDICATORS
───────────────────────────────────────────────────────────

Overall Health:       ⚠️ MODERATE
├─ Backlog:           ⚠️ Moderate (125 messages)
├─ Consumer:          ✅ Active
├─ DLQ:               ✅ Low failure rate (<5%)
└─ Throughput:        ⚠️ Below capacity (could process faster)

───────────────────────────────────────────────────────────
  RECOMMENDATIONS
───────────────────────────────────────────────────────────

1. Consider increasing batch size to 25 for faster processing
   → Current: 10 | Recommended: 25 | Impact: 2.5x throughput

2. Review DLQ messages to identify failure patterns
   → 5 failures detected | Check: wrangler queues info order-processing-dlq

3. Monitor backlog trend over next 15 minutes
   → If continues growing, increase concurrency to 5

═══════════════════════════════════════════════════════════

Read the full file on GitHub · 347 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. 7d ago First seen · 347 lines · 17 tokens per session scan A acefeaff030a

Subscribe to this mod's changes

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