better-auth-add-plugin
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Platform migration assistant for moving applications from AWS Lambda, Vercel, Netlify, or Cloudflare Pages to Cloudflare Workers.
$ npx -y skills add secondsky/claude-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/workers-migrateContext preview
What this command does when you run it.
Platform migration assistant for moving applications from AWS Lambda, Vercel, Netlify, or Cloudflare Pages to Cloudflare Workers.
name: cloudflare-workers:migrate description: Platform migration assistant for moving applications from AWS Lambda, Vercel, Netlify, or Cloudflare Pages to Cloudflare Workers. allowed-tools: - Read - Write - AskUserQuestion - Grep - Glob - Bash argument-hint: "--from <lambda|vercel|netlify|pages> (source platform)"
Guided migration assistant for moving applications to Cloudflare Workers from other platforms.
**If --from argument provided**:
**If no --from argument**: Use AskUserQuestion:
**Question**: "Which platform are you migrating from?"
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
Analyze what can be migrated automatically vs. manually:
**Compatible Features** (auto-migrate):
**Requires Adaptation**:
**Incompatible** (needs redesign):
Generate compatibility report:
## Migration Compatibility Report **Source Platform**: [Platform] **Project Type**: [Type] **Runtime**: [Runtime] ### ✅ Compatible (Auto-Migrate) - HTTP handlers: X files found - Environment variables: X found - Static assets: X files ### ⚠️ Requires Adaptation - AWS S3 usage → Migrate to R2 - DynamoDB → Migrate to D1 or KV - File uploads → Use R2 with multipart - Scheduled tasks → Convert to Cron Triggers ### ❌ Incompatible (Manual Redesign) - Lambda Layers → Install as npm packages - VPC endpoints → Use Hyperdrive for database access ### Estimated Effort - Auto-migration: ~30 minutes - Manual adaptation: ~2-4 hours - Testing & validation: ~1 hour
Ask user about migration approach:
**Question**: "How do you want to migrate?"
Based on selected strategy, transform code:
**Handler transformation**:
**Lambda format**:
exports.handler = async (event, context) => {
return {
statusCode: 200,
body: JSON.stringify({ message: 'Hello' })
};
};**Workers format**:
export default {
async fetch(request: Request, env: Env): Promise<Response> {
return new Response(JSON.stringify({ message: 'Hello' }), {
status: 200,
headers: { 'Content-Type': 'application/json' }
});
}
};**AWS SDK replacements**:
**Edge Function transformation**:
**Vercel format**:
import type { NextRequest } from 'next/server';
export default function middleware(request: NextRequest) {
return new Response('Hello');
}**Workers format**:
export default {
async fetch(request: Request): Promise<Response> {
return new Response('Hello');
}
};**Vercel-specific features**:
**Function transformation**:
**Netlify format**:
exports.handler = async (event) => {
return {
statusCode: 200,
body: JSON.stringify({ msg: 'Hello' })
};
};**Workers format**: (Same as Lambda transformation)
**Netlify-specific**:
Create wrangler.jsonc configuration:
{
"name": "[project-name]",
"main": "src/index.ts",
"compatibility_date": "2025-01-27",
// Environment variables (add secrets with: wrangler secret put)
"vars": {
"ENVIRONMENT": "production"
},
// Bindings (configure as needed)
{{BINDING145 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).
Repo: secondsky/claude-skills
Add a better-auth plugin to an existing project. Configures server and client plugins with proper imports.
Interactive setup wizard for better-auth authentication. Guides through database, framework, OAuth providers, and plugin configuration.
Explain Better Auth error codes and provide solutions with code examples
Display Better Auth available authentication providers and their configuration