cloudflare-workers:migrate

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

A guided migration command for moving applications from AWS Lambda, Vercel, Netlify, or Cloudflare Pages to Cloudflare Workers. These are services that run server-side code or web applications without managing your own servers.

In plain words
What is it for?
Use it to inspect an existing project, identify its source platform, review its runtime and integrations, and plan the conversion to Workers.
Why use it?
It helps uncover platform-specific configuration, handlers, dependencies, environment variables, and triggers that may need changing during the move.

Command

Part of the cloudflare-workers plugin — 10 skills, 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/workers-migrate
Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Or install cloudflare-workers, the plugin that ships this one along with the rest of its 10 skills, 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-workers:migrate

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/workers-migrate.svg)](https://agentmods.dev/commands/secondsky/claude-skills/workers-migrate)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/workers-migrate"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/workers-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,611 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.03611
Opus 5 $0.00016 $0.01806
Sonnet 5 $0.00006 $0.00722
Haiku 4.5 $0.00003 $0.00361

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

Security

Grade A, and why

cloudflare-workers: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.

async fetch(request: Request, env: Env): Promise<Response> {
plugins/cloudflare-workers/commands/workers-migrate.md · 622 lines

How it starts

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

Workers Migrate Command

Guided migration assistant for moving applications to Cloudflare Workers from other platforms.

Execution Workflow

Phase 1: Source Platform Detection

If --from argument provided:

  • Use specified platform (lambda, vercel, netlify, pages)
  • Skip detection step

If no --from argument: Use AskUserQuestion:

Question: "Which platform are you migrating from?"

  • Options:
    • AWS Lambda (serverless functions)
    • Vercel (Edge Functions, Serverless Functions)
    • Netlify (Functions, Edge Functions)
    • Cloudflare Pages (Functions)
    • Other (custom platform)

Phase 2: Project Analysis

Scan the project to understand its structure:

For AWS Lambda:

  1. Look for serverless.yml or template.yaml (SAM)
  2. Find Lambda handler files (usually index.js or handler.js)
  3. Check for AWS SDK usage:
    grep -r "aws-sdk" .
    grep -r "@aws-sdk" .
    
  4. Identify runtime (Node.js, Python, etc.)
  5. Check for environment variables in config
  6. Identify triggers (API Gateway, S3, etc.)

For Vercel:

  1. Look for vercel.json configuration
  2. Find Edge Functions (middleware.ts) and Serverless Functions (api/)
  3. Check framework (Next.js, SvelteKit, etc.)
  4. Identify environment variables in .env or dashboard
  5. Check for Vercel-specific features (ISR, Edge Config)

For Netlify:

  1. Look for netlify.toml
  2. Find Functions in netlify/functions/ or functions/
  3. Check for Edge Functions in netlify/edge-functions/
  4. Identify redirects and rewrites
  5. Check for Netlify-specific features (Forms, Identity)

For Cloudflare Pages:

  1. Look for _worker.js or functions/ directory
  2. Check wrangler.toml for Pages configuration
  3. Identify framework (if any)
  4. Note bindings already configured

Phase 3: Compatibility Analysis

Analyze what can be migrated automatically vs. manually:

Compatible Features (auto-migrate):

  • HTTP request/response handling
  • Environment variables → Workers env
  • Basic routing
  • JSON APIs
  • Static file serving → Workers Static Assets

Read the full file on GitHub · 622 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 · 622 lines · 32 tokens per session scan A 9eba140de473

Subscribe to this mod's changes

cloudflare-workers: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,611 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.