cloudflare-durable-objects:debug

cloudflare-durable-objects:debug is a command for Claude Code from secondsky/claude-skills. It costs 33 tokens per session (4,775 once invoked), scanned A, original, MIT.

An interactive troubleshooting command for Cloudflare Durable Objects, stateful server-side components used for coordination and real-time applications. It checks configuration and code, suggests fixes, tests solutions, and can monitor deployed behaviour.

In plain words
What is it for?
Use it to diagnose migration, binding, export, constructor, storage, WebSocket, hibernation, memory, timeout, and deployment issues.
Why use it?
It turns vague reports such as “the Durable Object is not working” into a step-by-step investigation. This helps separate deployment, runtime, performance, and data-persistence problems.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/validate-do-config.sh.

Part of the cloudflare-durable-objects plugin — 1 skill, 5 commands, 3 agents shipped together

Good fit Use it to diagnose migration, binding, export, constructor, storage, WebSocket, hibernation, memory, timeout, and deployment issues.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills
agentmods
npx agentmods add commands/secondsky/claude-skills/do-debug

Made for: Claude Code.

Or install cloudflare-durable-objects, the plugin that ships this one along with the rest of its 1 skill, 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-durable-objects:debug

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/secondsky/claude-skills/do-debug"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/do-debug.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 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,775 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00033 $0.04775
Opus 5.5 $0.00013 $0.01910
Sonnet 5.5 $0.00007 $0.00955
Haiku 4.5 $0.00003 $0.00477

Measured 1mo ago against content hash 1cd5e0d2bbcf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloudflare-durable-objects:debug 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl https://your-worker.workers.dev?id=test
plugins/cloudflare-durable-objects/commands/do-debug.md · 834 lines

How it starts

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

Durable Objects Debug Command

Interactive command to diagnose and fix common Durable Objects issues. Provides step-by-step troubleshooting for configuration errors, runtime failures, and performance problems.

Overview

This command helps debug DO issues by:

  • Detecting common error patterns from error messages
  • Running diagnostic checks on configuration and code
  • Providing specific fixes for identified issues
  • Testing solutions before deployment
  • Monitoring DO behavior with wrangler tail

Step 1: Gather Error Context

Use AskUserQuestion tool to understand the problem:

Question 1: Error Category

Question: "What type of issue are you experiencing with Durable Objects?" Header: "Issue Type" Options:

  • Deployment Error - wrangler deploy fails with DO-related error
    • Description: "Migration errors, binding issues, class export problems"
  • Runtime Error - DO throws error during execution
    • Description: "Constructor failures, storage errors, WebSocket issues"
  • Performance Issue - DO is slow or timing out
    • Description: "Slow queries, hibernation problems, memory issues"
  • Data Loss - DO state not persisting correctly
    • Description: "Data disappearing, inconsistent state, sync issues"
  • WebSocket Problem - WebSocket connections failing or not hibernating
    • Description: "Connection drops, hibernation failures, message loss"
  • Alarm Not Firing - Scheduled alarms not executing
    • Description: "Alarms not triggering, retry loops, timing issues"
  • Other/Unknown - Not sure or different issue
    • Description: "General debugging assistance needed"

Question 2: Error Message (If Applicable)

If user selected error-based category (Deployment, Runtime):

Prompt: "Please paste the full error message:"

Enter error message (or 'none' if no specific error):
_____________________________________________
_____________________________________________
_____________________________________________

Parse error message for known patterns:

Read the full file on GitHub · 834 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. 1mo ago First seen · 834 lines · 33 tokens per session scan A 1cd5e0d2bbcf

Subscribe to this mod's changes

cloudflare-durable-objects:debug is a command published in the GitHub repository secondsky/claude-skills (231 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 4,775 once invoked, about $0.0001 per session on Opus 5.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.