From website-deployment
Converts Express routes into Lambda functions behind API Gateway. Use when creating a serverless API, Lambda functions, or API Gateway.
npx claudepluginhub schuettc/website-deployment-plugin --plugin website-deploymentThis skill uses the workspace's default tool permissions.
You are converting Express routes into individual Lambda functions behind API Gateway.
Builds, manages, operates Amazon API Gateway REST, HTTP, WebSocket APIs. Troubleshoots errors, configures authorizers/domains/throttling/CORS, provides SAM/CloudFormation IaC templates.
Builds production-ready AWS serverless applications with Lambda functions, API Gateway, DynamoDB, SQS/SNS event patterns, SAM/CDK deployment, and cold start optimization.
Provides AWS Lambda integration patterns for TypeScript functions with cold start optimization using NestJS or raw TypeScript approaches, API Gateway/ALB configuration.
Share bugs, ideas, or general feedback.
You are converting Express routes into individual Lambda functions behind API Gateway.
.migration/plan.md exists with route mappinginfrastructure/ directory exists with CDK projectRead .migration/plan.md and show the user:
Route mapping table:
Express Route → Lambda Handler → API Gateway Route
GET /api/items → get-items.ts → GET /items
POST /api/items → create-item.ts → POST /items
GET /api/items/:id → get-item.ts → GET /items/{id}
PUT /api/items/:id → update-item.ts → PUT /items/{id}
DELETE /api/items/:id → delete-item.ts → DELETE /items/{id}
Express vs Lambda comparison for the simplest route:
// Before (Express):
app.get('/api/items', (req, res) => {
res.json(items);
});
// After (Lambda):
export const handler = async (event: APIGatewayProxyEvent) => {
return {
statusCode: 200,
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(items),
};
};
Ask the user:
Create handler files at infrastructure/lambda/handlers/[name].ts
aws-lambda (APIGatewayProxyEvent, APIGatewayProxyResult)statusCode, headers, body)Create shared utilities at infrastructure/lambda/shared/
response.ts — consistent API response helpererrors.ts — error types and error response helperUpdate CDK stack at infrastructure/lib/api-stack.ts
cd infrastructure && npx cdk synth to verify compilation.migration/plan.md to mark create-api as completeAction: '*' or Resource: '*'*) — use a placeholder replaced at deploy time