From sam-cloudformation
Use when AWS SAM templates, CloudFormation stacks, or SAM deploys fail on YAML, transforms, resource wiring, or rollback state — not when the Lambda binary itself or IAM OIDC auth is the primary blocker.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sam-cloudformation:sam-cloudformationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when the failure lives in the SAM template, CloudFormation stack lifecycle, or deployment-role/resource wiring and you need a deployment-oriented fix path that stays specific to SAM and CloudFormation.
Use this skill when the failure lives in the SAM template, CloudFormation stack lifecycle, or deployment-role/resource wiring and you need a deployment-oriented fix path that stays specific to SAM and CloudFormation.
| Situation | Use this skill? | Route instead |
|---|---|---|
| SAM template authoring, validation, deploy, or CloudFormation stack-state issues | Yes | - |
| Lambda binary, runtime, bootstrap, or handler issue | No | aws-lambda-go-deployment |
| OIDC or AssumeRole AccessDenied during deployment auth | No | iam-oidc-triage |
| Infrastructure is owned by Terraform instead of SAM/CloudFormation | No | terraform-skill |
| Generic workflow-run diagnosis before the SAM deploy step is understood | No | github-actions-failure-triage |
Required before editing
Helpful if present
sam validate --lint output.sam deploy.Only investigate if encountered
AWSTemplateFormatVersion plus Transform: AWS::Serverless-2016-10-31.sam validate --lint before changing deployment flow.sam validate --lint before sam deploy; fix schema and property errors there first.!Sub plus AWS::AccountId and AWS::RegionUPDATE_ROLLBACK_FAILED, inspect resource drift before retrying. When the drifted resource is stable and understood, use aws cloudformation continue-update-rollback to recover the stack.FunctionResponseTypes intentionally instead of assuming the default behavior is sufficient.aws-lambda-go-deployment, iam-oidc-triage, terraform-skill, or github-actions-failure-triage when another skill owns the blocker.sam validate --lint and jump straight to repeated sam deploy retries.!Sub, AWS::AccountId, and AWS::Region should be used.UPDATE_ROLLBACK_FAILED as a retry-only problem; inspect drift and recovery options first.AWSTemplateFormatVersion and Transform: AWS::Serverless-2016-10-31 when SAM resources are present.sam validate --lint and fix reported schema or property issues before considering the change complete.FunctionResponseTypes is set when partial batch failure handling is required.bootstrap binary and fails before the template is the problem." (→ aws-lambda-go-deployment)references/deploy-checklist.md - quick checks for SAM transforms, linting, stack rollback recovery, event-source handling, and route-away cues.Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub matt-riley/lucky-hat --plugin sam-cloudformation