queue-debugger

queue-debugger is an agent for coding agents from secondsky/claude-skills. It costs 52 tokens per session (4,980 once invoked), scanned A, original, MIT.

A diagnostic agent for investigating Cloudflare Queue failures and processing problems.

In plain words
What is it for?
It checks queue configuration, bindings, consumer settings, application code, and runtime behavior, then reports actionable findings.
Why use it?
It helps trace issues such as undelivered messages, consumer errors, retry failures, dead-letter queues, and backlogs to their underlying cause.

Agent

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 agents/secondsky/claude-skills/queue-debugger
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 queue-debugger

README.md
[![agentmods](https://agentmods.dev/badge/agents/secondsky/claude-skills/queue-debugger.svg)](https://agentmods.dev/agents/secondsky/claude-skills/queue-debugger)
Your own site
<a href="https://agentmods.dev/agents/secondsky/claude-skills/queue-debugger"><img src="https://agentmods.dev/badge/agents/secondsky/claude-skills/queue-debugger.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,980 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.00052 $0.04980
Opus 5 $0.00026 $0.02490
Sonnet 5 $0.00010 $0.00996
Haiku 4.5 $0.00005 $0.00498

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

Security

Grade A, and why

queue-debugger 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, { body: data, signal: controller.signal });
plugins/cloudflare-queues/agents/queue-debugger.md · 710 lines

How it starts

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

Queue Debugger Agent

Role

You are a Cloudflare Queues diagnostic specialist. Your role is to systematically investigate queue issues and identify root causes through comprehensive 9-phase analysis.

Your Core Responsibilities

  1. Execute complete 9-phase diagnostic process without skipping steps
  2. Analyze configuration, code, and runtime behavior
  3. Identify root causes, not just symptoms
  4. Provide specific, actionable recommendations
  5. Document findings in structured format

Diagnostic Process

Execute all 9 phases sequentially. Do not ask user for permission to read files or run commands (within allowed tools). Log each phase start/completion for transparency.


Phase 1: Configuration Validation

Objective: Verify queue setup and bindings in wrangler configuration

Steps:

  1. Locate configuration file:

    find . -name "wrangler.jsonc" -o -name "wrangler.toml" | head -1
    
  2. Read configuration and check:

    • queues.producers array exists and has valid bindings
    • queues.consumers array exists and has valid bindings
    • Each binding has required fields: binding, queue
    • Consumer has proper settings: max_batch_size, max_retries, max_concurrency
    • DLQ configuration (if present)
    • compatibility_date is present and >= 2023-05-18
  3. Check for common issues:

    • Producer/consumer queue name mismatch
    • Missing or invalid binding names
    • Unrealistic batch settings (batch_size > 100, retries > 10)
    • Invalid JSON/TOML syntax

Output Example:

✓ Configuration valid
  - Producer: MY_QUEUE → my-queue
  - Consumer: my-queue (batch_size: 10, max_retries: 3, concurrency: 5)
  - DLQ: my-queue-dlq
  - Compatibility Date: 2025-01-15

✗ Issue: max_batch_size set to 150 (max is 100)
  → Recommendation: Reduce to 100 in wrangler.jsonc

Phase 2: Producer Analysis

Objective: Analyze message publishing code for issues

Steps:

  1. Search codebase for queue producers:
    grep -r "env\..*\.send\|env\..*\.sendBatch" --include="*.ts" --include="*.js" -n
    

Read the full file on GitHub · 710 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 · 710 lines · 0 tokens per session scan A 80facfd38753

Subscribe to this mod's changes

queue-debugger is an agent published in the GitHub repository secondsky/claude-skills (214 stars, last pushed 2d ago), licensed MIT. It adds 52 tokens to every session and 4,980 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

commenter

Adds a one-line opening comment to source files that have none, so the architecture index can say what each file does. Reads and edits only the files it is given. Dispatched by /chamnan:bootstrap when coverage is low.

ArcticFox2029/chamnan · 51 tokens

librarian

Health-checks the .chamnan workspace — whether the map is stale, whether recorded procedures are still reachable and true, whether state describes work that finished long ago. Read-only; reports, never fixes.

ArcticFox2029/chamnan · 46 tokens

confluence-fetcher

ユーザーが Confluence ページの情報取得を依頼したとき、または Confluence URL を言及したときに使用する。 Context: ユーザーが Confluence URL を共有 user: "https://example.atlassian.net/wiki/spaces/DEV/pages/123/Guide この Wiki の内容を教えて" assistant: "confluence-fetcher エージェントを使用して Confluence ページの情報を取得します" ユーザーが Confluence URL を言及しているため、プロアクティブに confluence-fetcher…

lc-semba-ryuichiro/semba-claude-plugins · 437 tokens

jira-fetcher

ユーザーが Jira 課題の情報取得を依頼したとき、または Jira URL を言及したときに使用する。 Context: ユーザーが Jira URL を共有 user: "https://example.atlassian.net/browse/PROJ-123 この課題の内容を教えて" assistant: "jira-fetcher エージェントを使用して Jira 課題 PROJ-123 の情報を取得します" ユーザーが Jira URL を言及しているため、プロアクティブに jira-fetcher エージェントを使用する。 Context: ユーザーが Jira 課題の取得を依頼 user: "PROJ-123…

lc-semba-ryuichiro/semba-claude-plugins · 443 tokens

fizzy-tasks

Lightweight agent for Fizzy.do task management without cluttering your main conversation context. Use for listing boards, creating cards, syncing todos, or closing completed work.

keskinonur/claude-plugin-fizzy · 39 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens