$npx -y skills add aws/agent-toolkit-for-aws --skill aws-serverlessBuilds, deploys, manages, debugs, configures, and optimizes serverless applications on AWS using Lambda, API Gateway, Step Functions, EventBridge, and SAM/CDK. Covers cold starts, CORS debugging, event source mappings, troubleshooting, concurrency, SnapStart, Powertools, function
| 1 | # AWS Serverless |
| 2 | |
| 3 | Domain expertise for building serverless applications on AWS: Lambda, API Gateway, Step Functions, EventBridge, event source mappings, concurrency, cold starts, deployment, and troubleshooting. |
| 4 | |
| 5 | **Works best with** the [AWS MCP server](https://docs.aws.amazon.com/aws-mcp/) — run CLI commands, query CloudWatch, validate configs directly. All guidance also works with standard AWS CLI access. |
| 6 | |
| 7 | ## Specialized skills — check these first |
| 8 | |
| 9 | These cover capabilities and procedures the general references below do **not**. Several are specialized features or step-by-step tested procedures you would otherwise miss. Route to the matching skill before falling back to the references. |
| 10 | |
| 11 | ### Advanced Lambda compute (easy to overlook) |
| 12 | |
| 13 | | Use this skill | When the workload involves | |
| 14 | |---|---| |
| 15 | | **aws-lambda-microvms** | Strong tenant isolation, sandboxed/untrusted code execution (AI agent code sandboxes, REPLs, notebooks, CI runners), long-lived sessions, suspend/resume with preserved state, port-listening servers (gRPC, WebSocket, custom TCP), Firecracker microVMs, snapshot-resumable compute, up to 8-hour lifetimes | |
| 16 | | **aws-lambda-durable-functions** | Durable execution, checkpoint-and-replay, long-running multi-step workflows written as plain code (TS/Python/Java), automatic state persistence, saga pattern in code, human-in-the-loop callbacks, executions up to 1 year, `context.step`/`context.wait`/`context.invoke`, `withDurableExecution`, `durable-execution-sdk` | |
| 17 | | **aws-lambda-managed-instances** | Lambda Managed Instances (LMI), capacity providers, EC2-backed Lambda, steady high-volume traffic (50M+ req/mo) wanting Savings Plans / Reserved Instance pricing, `PerExecutionEnvironmentMaxConcurrency`, `CapacityProviderConfig`, multi-concurrent execution environments | |
| 18 | |
| 19 | ### Step-by-step task procedures (tested CLI SOPs) |
| 20 | |
| 21 | | Use this skill | For the task | |
| 22 | |---|---| |
| 23 | | **connecting-lambda-to-api-gateway** | Wire an existing Lambda to a new REST/HTTP API: proxy integration, permissions, CORS, throttling, access logging, deployment | |
| 24 | | **connecting-lambda-to-dynamodb** | Connect Lambda to DynamoDB: IAM execution role, read/write permissions, stream event source mapping | |
| 25 | | **creating-api-gateway-stage** | Create an API Gateway stage with CloudWatch logging, X-Ray tracing, throttling, WAF association, and authorization | |
| 26 | | **deploying-custom-domain-rest-api** | Deploy a Regional REST API with custom domain: ACM cert, Lambda backend, request authorizer, base path mapping, Route 53 DNS | |
| 27 | | **debugging-lambda-timeouts** | Systematically diagnose a timing-out Lambda: config, CloudWatch logs/metrics, VPC, cold starts, memory, downstream calls | |
| 28 | | **processing-s3-uploads-with-step-functions** | Deploy an event-driven workflow: S3 upload → EventBridge → Step Functions → Lambda (small files) or Fargate (large files), with VPC/ECR/ECS/IAM | |
| 29 | |
| 30 | ## Routing (general references in this skill) |
| 31 | |
| 32 | | User need | Read | |
| 33 | |-----------|------| |
| 34 | | Building a new serverless app — pattern selection | [architecture.md](references/architecture.md) | |
| 35 | | Lambda config, cold starts, SnapStart, memory, VPC, layers, Function URLs | [lambda.md](references/lambda.md) | |
| 36 | | Concurrency (reserved, provisioned, ESM controls) | [concurrency.md](references/concurrency.md) | |
| 37 | | Event sources (SQS, DynamoDB Streams, SNS, Kinesis), filtering, batch failures | [event-sources.md](references/event-sources.md) | |
| 38 | | Step Functions, EventBridge rules/pipes/scheduler | [orchestration.md](references/orchestration.md) | |
| 39 | | API Gateway quotas, authorizers, WebSocket | [api-gateway.md](references/api-gateway.md) | |
| 40 | | SAM/CDK resource types and fast iteration | [deployment.md](references/deployment.md) | |
| 41 | | Production readiness, observability, anti-patterns | [production.md](references/production.md) | |
| 42 | | Debugging an error (exact string → cause → fix) | [troubleshooting.md](references/troubleshooting.md) | |
| 43 | | Powertools handler template | [powertools-handler.py](assets/powertools-handler.py) | |
| 44 | |
| 45 | **Note:** Reference files contain specific runtime versions, quotas, and feature matrices that change. When precision matters (production, runtime choice, quotas), confirm against current AWS documentation. The references focus |