home / skills / shotaiuchi / dotclaude / aws-sam
/dotclaude/skills/aws-sam
This skill helps you design, test, and deploy AWS SAM serverless apps with best practices for templates, functions, and local debugging.
npx playbooks add skill shotaiuchi/dotclaude --skill aws-samReview the files below or copy the command above to add this skill to your agents.
---
name: AWS SAM
description: Skill for AWS SAM serverless application development, Lambda function implementation, template design, local testing, and deployment.
references:
- path: ../../references/services/aws/conventions.md
- path: ../../references/services/aws/sam-architecture-patterns.md
external:
- id: aws-sam-docs
url: https://docs.aws.amazon.com/serverless-application-model/
- id: aws-lambda-docs
url: https://docs.aws.amazon.com/lambda/
- id: aws-api-gateway
url: https://docs.aws.amazon.com/apigateway/
- id: lambda-powertools-python
url: https://docs.powertools.aws.dev/lambda/python/
---
**Always respond in Japanese.**
# AWS SAM (Serverless Application Model)
AWS SAM is an IaC framework for building serverless applications.
Read and apply the patterns from the referenced documents to the user's implementation task.
## Reference Documents
- [AWS SAM Project Conventions](../../references/services/aws/conventions.md)
- [Architecture Patterns](../../references/services/aws/sam-architecture-patterns.md)
This skill provides hands-on guidance for AWS SAM serverless application development, focusing on Lambda function implementation, SAM template design, local testing, and deployment automation. It helps you structure projects, create reusable templates, and streamline CI/CD for serverless workloads using shell-based workflows. The goal is to accelerate reliable, production-ready serverless deployments with clear conventions.
The skill inspects your project layout and SAM templates to validate resource definitions, runtime settings, and packaging configuration. It suggests improvements for function handlers, IAM least-privilege, environment configuration, and event sources. It also outlines local testing steps with sam local, build and package commands, and deployment patterns for repeatable, automated releases.
Do I need Docker to test locally?
Yes—use Docker so sam local can emulate Lambda runtimes accurately for invoke and API testing.
How should I manage secrets and environment variables?
Keep secrets out of templates; use Parameter Store, Secrets Manager, or encrypted deployment artifacts and reference them via secure parameters.
Can I deploy multiple environments from one template?
Yes—use Parameters or separate parameter files and distinct S3 buckets/stacks per environment to avoid cross-environment interference.