Provides AWS Serverless Application Model (SAM) bootstrap patterns for new and existing projects. Use when initializing SAM projects with `sam init`, migrating existing Lambda/CloudFormation projects to SAM, generating `template.yaml` and `samconfig.toml`, preparing local test events, and configuring build/package/deploy workflows with `sam build`, `sam package`, `sam deploy --guided`, and `sam local invoke`.
71
89%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
The canonical home for this skill is giuseppe-trisciuoglio/developer-kit
Bootstrap AWS SAM projects end-to-end for both greenfield and migration scenarios. Generate the minimum required artifacts for reliable sam build and sam deploy workflows while following AWS SAM conventions.
Use this skill when:
template.yaml and samconfig.toml to standardize deploymentssam local invoke and sample event payloadsdefault and prod)Trigger phrases:
Identify one path before writing files:
Select runtime and package mode first, then keep all generated files consistent.
Supported runtime families:
python3.10 to python3.14 (avoid 3.8/3.9, deprecated)nodejs20.x, nodejs22.x, nodejs24.x (avoid 18.x, deprecated)java8.al2, java11, java17, java21, java25provided.al2, provided.al2023dotnet8, dotnet9, dotnet10 (avoid dotnet6, deprecated)ruby3.2, ruby3.3, ruby3.4Package type:
For new projects:
sam init with explicit runtime, architecture, and package type.samconfig.toml with environment-specific deploy settings.events/ payloads for local test commands.Recommended command sequence:
sam init
sam build
sam local invoke <LogicalFunctionId> -e events/event.json
sam deploy --guidedFor existing projects:
template.yaml with Transform: AWS::Serverless-2016-10-31.AWS::Serverless::Function and related SAM resources.samconfig.toml with deploy defaults and environment overrides.events/ payload samples for local invocation.sam validate and sam build before deploy.Migration sequence:
sam validate
sam build
sam local invoke <LogicalFunctionId> -e events/event.json
sam deploy --guidedAlways produce and verify these artifacts:
.
├── template.yaml
├── samconfig.toml
└── events/
└── event.jsonUse reference templates from:
At minimum:
stack_namecapabilities (typically CAPABILITY_IAM)resolve_s3 = truedefault, optional prod)cached = true, parallel = true)Baseline example:
version = 0.1
[default.global.parameters]
stack_name = "my-sam-app"
[default.build.parameters]
cached = true
parallel = true
[default.deploy.parameters]
capabilities = "CAPABILITY_IAM"
confirm_changeset = true
resolve_s3 = true
[prod.deploy.parameters]
confirm_changeset = falseUse these commands according to task phase:
sam init for new projectssam build to compile/package artifactssam deploy --guided for first deployment configurationsam package when explicit packaging step is requiredsam local invoke for local function execution with event payloadsRun this verification checklist:
sam validate succeedssam build succeedstemplate.yaml has correct logical IDs and handlerssamconfig.toml contains deploy parameters for target environmentsevents/event.json matches handler input expectationsUser request: "Create a new SAM project for a Python Lambda API"
Response approach:
sam init and Python runtime.Zip by default).samconfig.toml with default and prod deploy parameters.events/event.json.sam build and sam local invoke.Input:
Create a new SAM project for a Python Lambda API with a /hello endpoint.Output:
Generated files:
- template.yaml (AWS::Serverless::Function + API event)
- samconfig.toml (default/prod deploy settings)
- events/event.json
Commands to run:
sam build
sam local invoke HelloFunction -e events/event.json
sam deploy --guidedUser request: "Configure AWS SAM for this existing Lambda project"
Response approach:
template.yaml with SAM transform and function definition.samconfig.toml including stack_name, capabilities, and resolve_s3.Input:
Configure AWS SAM for this existing Lambda project and prepare deployment artifacts.Output:
Migration result:
- Added template.yaml with Transform AWS::Serverless-2016-10-31
- Added samconfig.toml with deployment parameters
- Added events/event.json for local testing
- Validation workflow prepared:
sam validate
sam build
sam deploy --guidedsamconfig.toml committed for deterministic deploymentsCAPABILITY_IAM is required when IAM resources are createdsam deploy --guided writes local configuration; review before committingfernandezbaptiste/developer-kit
810297c
Canonical home
since Mar 15, 2026
Also appears in
since Oct 1, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.