secondsky avatar

Cloudflare Workers Migration

This walks you through porting Lambda functions, Express apps, Vercel routes, and Node.js code to Cloudflare Workers. It includes a decision tree for choosing migration strategies, a comparison table showing Workers' near-zero cold starts versus Lambda's 100-500ms, and the top 10 errors you'll hit (fs is not defined, Buffer missing, process.env undefined). The before/after code examples are straight to the point, especially for Lambda handlers and Express middleware. Most helpful is the Node.js compatibility matrix showing what works with nodejs_compat_v2 and what needs alternatives like swapping fs for R2 storage. If you're moving edge-ward and hitting compatibility walls, this is a solid reference to keep nearby.

skills.sh installs
310
GitHub stars
248
last updated
Aug 21, 2026

Install

$ npx -y skills add secondsky/claude-skills --skill cloudflare-workers-migration --agent claude-code

Installs into .claude/skills of the current project.

Files

Workers Migration Guide

Migrate existing applications to Cloudflare Workers from various platforms.

Migration Decision Tree

What are you migrating from?
├── AWS Lambda
│   └── Node.js handler? → Lambda adapter pattern
│   └── Python? → Consider Python Workers
│   └── Container/custom runtime? → May need rewrite
├── Vercel/Next.js
│   └── API routes? → Minimal changes with adapter
│   └── Full Next.js app? → Use OpenNext adapter
│   └── Middleware? → Direct Workers equivalent
├── Express/Node.js
│   └── Simple API? → Hono (similar API)
│   └── Complex middleware? → Gradual migration
│   └── Heavy node: usage? → Compatibility layer
└── Other Edge (Deno Deploy, Fastly)
    └── Standard Web APIs? → Minimal changes
    └── Platform-specific? → Targeted rewrites

Platform Comparison

Sponsors

Details

Repository
github.com/secondsky/claude-skills
Categories
Backend & APIs, Cloud & Infrastructure
First seen
Jun 3, 2026

More from secondsky/claude-skills

All 146
1patricio0312rev avatarcurl-command-generatorpatricio0312rev/skillsGenerates ready-to-run cURL commands from Express, Next.js, Fastify, or other API routes. Creates copy-paste commands with proper headers, authentication, and r308skills.sh installs
2patricio0312rev avatarpage-layout-builderpatricio0312rev/skillsGenerates complete page layouts and shells for common patterns (dashboard, authentication, settings, CRUD pages) with consistent navigation, layout components, 308skills.sh installs
3asif2bd avatarjarvis-mission-controlasif2bd/jarvis-mission-control-openclawSet up JARVIS Mission Control v2.1.0 — a free, open-source AI agent coordination hub by MissionDeck.ai. Kanban board, real-time WebSocket updates, team chat, sc305skills.sh installs
4pproenca avatarrestful-hateoaspproenca/dot-skillsRESTful API design guidelines following the Richardson Maturity Model through to Level 3 (HATEOAS) for Ruby on Rails. This skill should be used when designing, 298skills.sh installs
5jup-ag avatarjupiter-swap-migrationjup-ag/agent-skillsMigration guide from Jupiter Metis (v1) or Ultra to Swap API v2. Use when migrating existing Jupiter swap integrations, updating base URLs, or transitioning fro297skills.sh installs
6nodeops-app avatarcreateos-deploynodeops-app/skillsDeploy projects to CreateOS infrastructure via the MPP Gateway. Use when the user wants to deploy code, ship an app, or deploy to CreateOS. No auth session or O297skills.sh installs