aceternity-ui
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or…
Migrate to Cloudflare Workers from AWS Lambda, Vercel, Express, and Node.js. Use when porting existing applications to the edge, adapting serverless functions, or resolving Node.js API compatibility issues.
Claude Code
$ npx -y skills add secondsky/claude-skills --skill cloudflare-workers-migration --agent claude-code
Codex
$ npx skills add secondsky/claude-skills --skill cloudflare-workers-migration -a codex -y
Cursor
$ npx skills add secondsky/claude-skills --skill cloudflare-workers-migration -a cursor -y
Gemini CLI
$ npx skills add secondsky/claude-skills --skill cloudflare-workers-migration -a gemini-cli -y
GitHub Copilot
$ npx skills add secondsky/claude-skills --skill cloudflare-workers-migration -a github-copilot -y
OpenCode
$ npx skills add secondsky/claude-skills --skill cloudflare-workers-migration -a opencode -y
Windsurf
$ npx skills add secondsky/claude-skills --skill cloudflare-workers-migration -a windsurf -y
name: cloudflare-workers-migration description: Migrate to Cloudflare Workers from AWS Lambda, Vercel, Express, and Node.js. Use when porting existing applications to the edge, adapting serverless functions, or resolving Node.js API compatibility issues. metadata: version: "1.0.0" license: MIT
Migrate existing applications to Cloudflare Workers from various platforms.
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| Feature | Workers | Lambda | Vercel | Express | |---------|---------|--------|--------|---------| | **Cold Start** | ~0ms | 100-500ms | 10-100ms | N/A | | **CPU Limit** | 50ms/10ms | 15 min | 10s | None | | **Memory** | 128MB | 10GB | 1GB | System | | **Max Response** | 6MB (stream unlimited) | 6MB | 4.5MB | None | | **Global Edge** | 300+ PoPs | Regional | ~20 PoPs | Manual | | **Node.js APIs** | Partial | Full | Full | Full |
| Error | From | Cause | Solution | |-------|------|-------|----------| | `fs is not defined` | Lambda/Express | File system access | Use KV/R2 for storage | | `Buffer is not defined` | Node.js | Node.js globals | Import from `node:buffer` | | `process.env undefined` | All | Env access pattern | Use `env` parameter | | `setTimeout not returning` | Lambda | Async patterns | Use `ctx.waitUntil()` | | `require() not found` | Express | CommonJS | Convert to ESM imports | | `Exceeded CPU time` | All | Long computation | Chunk or use DO | | `body already consumed` | Express | Request body | Clone before read | | `Headers not iterable` | Lambda | Headers API | Use Headers constructor | | `crypto.randomBytes` | Node.js | Node crypto | Use `crypto.getRandomValues` | | `Cannot find module` | All | Missing polyfill | Check Workers compatibility |
// Before: AWS Lambda
export const handler = async (event, context) => {
const body = JSON.parse(event.body);
return {
statusCode: 200,
body: JSON.stringify({ message: 'Hello' }),
};
};
// After: Cloudflare Workers
export default {
async fetch(request: Request, env: Env): Promise<Response> {
const body = await request.json();
return Response.json({ message: 'Hello' });
},
};// Before: Express
app.use((req, res, next) => {
if (!req.headers.authorization) {
return res.status(401).json({ error: 'Unauthorized' });
}
next();
});
// After: Hono Middleware
app.use('*', async (c, next) => {
if (!c.req.header('Authorization')) {
return c.json({ error: 'Unauthorized' }, 401);
}
await next();
});// Before: Node.js
const apiKey = process.env.API_KEY;
// After: Workers
export default {
async fetch(request: Request, env: Env): Promise<Response> {
const apiKey = env.API_KEY;
// ...
},
};Workers support many Node.js APIs via compatibility flags:
// wrangler.jsonc
{
"compatibility_flags": ["nodejs_compat_v2"],
"compatibility_date": "2024-12-01"
}**Supported with nodejs_compat_v2:**
**Not Supported (need alternatives):**
| Reference | Load When | |-----------|-----------| | `references/lambda-migration.md` | Migrating AWS Lambda functions | | `references/vercel-migration.md` | Migrating from Vercel/Next.js | | `references/express-migration.md` | Migrating Express/Node.js apps | | `references/node-compatibility.md` | Node.js API compatibility issues |
1. **Analyze Dependencies**: Check for unsupported Node.js APIs 2. **Convert to ESM**: Replace require() with import 3. **Update Env Access**: Use env parameter instead of process.env 4. **Replace File System**: Use R2/KV for storage 5. **Handle Async**: Use ctx.waitUntil() for background tasks 6. **Test Locally**: Verify with wrangler dev 7. **Performance Test**: Ensure CPU limits aren't exceeded
145 production-ready skills for Claude Code CLI 🔌 Platform / Harness Support These plugins ship as Claude Code marketplace plugins (.claude-plugin/ manifests) and Codex CLI plugins (.codex-plugin/ manifests).
100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or…
Secure API authentication with JWT, OAuth 2.0, API keys. Use for authentication systems, third-party integrations,…
Creates comprehensive API changelogs documenting breaking changes, deprecations, and migration strategies for API consumers. Use…
Verifies API contracts between services using consumer-driven contracts, schema validation, and tools like Pact. Use when testing…
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use…
Implements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.