$npx -y skills add awslabs/agent-plugins --skill aws-lambdaDesign, build, deploy, test, and debug serverless applications with AWS Lambda. Triggers on phrases like: Lambda function, event source, serverless application, API Gateway, EventBridge, Step Functions, serverless API, event-driven architecture, Lambda trigger. For deploying non-
| 1 | # AWS Lambda Serverless Development |
| 2 | |
| 3 | Design, build, deploy, and debug serverless applications with AWS serverless services. This skill provides access to serverless development guidance through the AWS Serverless MCP Server, helping you to build production-ready serverless applications with best practices built-in. |
| 4 | |
| 5 | Use SAM CLI for project initialization and deployment, Lambda Web Adapter for web applications, or Event Source Mappings for event-driven architectures. AWS handles infrastructure provisioning, scaling, and monitoring automatically. |
| 6 | |
| 7 | **Key capabilities:** |
| 8 | |
| 9 | - **SAM CLI Integration**: Initialize, build, deploy, and test serverless applications |
| 10 | - **Web Application Deployment**: Deploy full-stack applications with Lambda Web Adapter |
| 11 | - **Event Source Mappings**: Configure Lambda triggers for DynamoDB, Kinesis, SQS, Kafka |
| 12 | - **Lambda durable functions**: Resilient multi-step applications with checkpointing — see the [durable-functions skill](../aws-lambda-durable-functions/) for guidance |
| 13 | - **Lambda Managed Instances**: Run Lambda on dedicated EC2 instances with managed lifecycle — see the [managed-instances skill](../aws-lambda-managed-instances/) for evaluation, configuration, and migration guidance |
| 14 | - **Schema Management**: Type-safe EventBridge integration with schema registry |
| 15 | - **Observability**: CloudWatch logs, metrics, and X-Ray tracing |
| 16 | - **Performance Optimization**: Right-sizing, cost optimization, and troubleshooting |
| 17 | |
| 18 | ## When to Load Reference Files |
| 19 | |
| 20 | Load the appropriate reference file based on what the user is working on: |
| 21 | |
| 22 | - **Getting started**, **what to build**, **project type decision**, or **working with existing projects** -> see [references/getting-started.md](references/getting-started.md) |
| 23 | - **SAM**, **CDK**, **deployment**, **IaC templates**, **CDK constructs**, or **CI/CD pipelines** -> see the [aws-serverless-deployment skill](../aws-serverless-deployment/) (separate skill in this plugin) |
| 24 | - **Web app deployment**, **Lambda Web Adapter**, **API endpoints**, **CORS**, **authentication**, **custom domains**, or **sam local start-api** -> see [references/web-app-deployment.md](references/web-app-deployment.md) |
| 25 | - **Event sources**, **DynamoDB Streams**, **Kinesis**, **SQS**, **Kafka**, **S3 notifications**, or **SNS** -> see [references/event-sources.md](references/event-sources.md) |
| 26 | - **EventBridge**, **event bus**, **event patterns**, **event design**, **Pipes**, or **schema registry** -> see [references/event-driven-architecture.md](references/event-driven-architecture.md) |
| 27 | - **Durable functions**, **checkpointing**, **replay model**, **saga pattern**, or **long-running Lambda workflows** -> see the [durable-functions skill](../aws-lambda-durable-functions/) (separate skill in this plugin with full SDK reference, testing, and deployment guides) |
| 28 | - **Lambda Managed Instances**, **LMI**, **capacity providers**, **multi-concurrency**, **EC2-backed Lambda**, **cold start elimination**, or **Lambda cost optimization with Reserved Instances** -> see the [managed-instances skill](../aws-lambda-managed-instances/) (separate skill in this plugin for evaluation, configuration, and migration) |
| 29 | - **Orchestration**, **workflows**, or **Durable Functions vs Step Functions** -> see [references/orchestration-and-workflows.md](references/orchestration-and-workflows.md) |
| 30 | - **Step Functions**, **ASL**, **state machines**, **JSONata**, **Distributed Map**, **SDK integrations**, **TestState API**, **mocking service integrations**, or **state machine unit tests** -> see the [aws-step-functions skill](../aws-step-functions/) for comprehensive guidance |
| 31 | - **Observability**, **logging**, **tracing**, **metrics**, **alarms**, or **dashboards** -> see [references/observability.md](references/observability.md) |
| 32 | - **Optimization**, **cold starts**, **memory tuning**, **cost**, or **streaming** -> see [references/optimization.md](references/optimization.md) |
| 33 | - **Powertools**, **idempotency**, **feature flags**, **parameters**, **parser**, **batch processing**, or **data masking** -> see [references/powertools.md](references/powertools.md) |
| 34 | - **Troubleshooting**, **errors**, **debugging**, or **deployment failures** -> see [references/troubleshooting.md](references/troubleshooting.md) |
| 35 | |
| 36 | ## Best Practices |
| 37 | |
| 38 | ### Project Setup |
| 39 | |
| 40 | - Do: Use `sam_init` or `cdk init` with an appropriate template for your use case |
| 41 | - Do: Set global defaults for timeout, memory, runtime, and tracing (`Globals` in SAM, construct props in CDK) |
| 42 | - Do: Use AWS Lambda Powertools for structured logging, tracing, metrics (EMF), idempotency, and bat |