cloudflare-durable-objects:migrate

cloudflare-durable-objects:migrate is a command for coding agents from secondsky/claude-skills. It costs 32 tokens per session (3,807 once invoked), scanned A, original, MIT.

An interactive assistant for managing Cloudflare Durable Objects migrations, which are configuration changes used when object classes or storage setups evolve. It handles creating, renaming, deleting, and transferring classes.

In plain words
What is it for?
Use it when adding new Durable Object classes, renaming or removing classes, transferring objects, or updating a project’s migration history.
Why use it?
It reduces the risk of invalid migration configuration and accidental loss of project settings. It checks existing configuration, creates migration entries, and provides rollback guidance.

Command

Part of the cloudflare-durable-objects plugin — 1 skill, 5 commands, 3 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/do-migrate
Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/do-migrate.svg)](https://agentmods.dev/commands/secondsky/claude-skills/do-migrate)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/do-migrate"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/do-migrate.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 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,807 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.00032 $0.03807
Opus 5 $0.00016 $0.01903
Sonnet 5 $0.00006 $0.00761
Haiku 4.5 $0.00003 $0.00381

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

Security

Grade A, and why

cloudflare-durable-objects:migrate 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 https://your-worker.workers.dev?id=test
plugins/cloudflare-durable-objects/commands/do-migrate.md · 734 lines

How it starts

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

Durable Objects Migration Command

Interactive command to safely create and manage Durable Objects migrations. Handles new classes, renaming, deletion, and transfers with automatic validation and backup.

Overview

This command simplifies DO migration management by:

  • Generating correct migration syntax for all migration types
  • Validating migration configuration before committing
  • Auto-incrementing migration tags (v1, v2, v3...)
  • Backing up wrangler.jsonc before changes
  • Checking for common migration errors
  • Providing rollback instructions

Step 1: Analyze Current Configuration

Before prompting user, analyze the current project state:

Read wrangler.jsonc

cat wrangler.jsonc

Parse configuration to extract:

  • Existing Durable Object bindings
  • Current migrations array
  • Last migration tag (for auto-increment)
  • Class names currently in use

Identify Migration Context

Determine project state:

Case 1: No Existing Migrations

  • First-time migration setup
  • Recommend new_sqlite_classes for all DOs
  • Suggest v1 as initial tag

Case 2: Existing Migrations

  • Extract last migration tag
  • Suggest next sequential tag (v2, v3, etc.)
  • Show migration history for context

Case 3: No DO Bindings

  • No DOs configured yet
  • Recommend running /do-setup first
  • Offer to continue anyway (for planning)

Display Current State

Show user the current configuration:

Current Durable Objects Configuration:

Bindings:
  - MY_DO → MyDurableObject
  - CHAT_ROOM → ChatRoom

Migrations:
  - v1: new_sqlite_classes [MyDurableObject]
  - v2: new_sqlite_classes [ChatRoom]

Next migration tag: v3

Step 2: Gather Migration Requirements

Use AskUserQuestion tool to determine migration type and details:

Question 1: Migration Type

Question: "What type of migration do you need to perform?" Header: "Migration Type" Options:

  • New Class - Add a new Durable Object class
    • Description: "Create migration for newly added DO class (new_sqlite_classes)"
  • Rename Class - Rename existing Durable Object class
    • Description: "Migrate DO instances to renamed class (renamed_classes)"
  • Delete Class - Remove Durable Object class
    • Description: "Delete all DO instances and remove class (deleted_classes)"
  • Transfer Class - Move DO class to different Worker script
    • Description: "Transfer DO instances to another script (transferred_classes)"

Read the full file on GitHub · 734 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 · 734 lines · 32 tokens per session scan A 6cf595dcc2b1

Subscribe to this mod's changes

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