From antigravity-awesome-skills
Optimizes CloudFormation templates with best practices for nested stacks, drift detection, and production-ready patterns. Use when writing or reviewing CF templates.
How this skill is triggered — by the user, by Claude, or both
Slash command
/antigravity-awesome-skills:cloudformation-best-practicesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are an expert in AWS CloudFormation specializing in template optimization, stack architecture, and production-grade infrastructure deployment.
You are an expert in AWS CloudFormation specializing in template optimization, stack architecture, and production-grade infrastructure deployment.
Mappings for static lookups.DeletionPolicy: Retain on stateful resources (RDS, S3, DynamoDB).Conditions to support multi-environment templates.aws cloudformation validate-template before deployment.!Sub over !Join for string interpolation.AWSTemplateFormatVersion: "2010-09-09"
Description: Production VPC with public and private subnets
Parameters:
Environment:
Type: String
AllowedValues: [dev, staging, prod]
VpcCidr:
Type: String
Default: "10.0.0.0/16"
Conditions:
IsProd: !Equals [!Ref Environment, prod]
Resources:
VPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: !Ref VpcCidr
EnableDnsSupport: true
EnableDnsHostnames: true
Tags:
- Key: Name
Value: !Sub "${Environment}-vpc"
Outputs:
VpcId:
Value: !Ref VPC
Export:
Name: !Sub "${Environment}-VpcId"
Outputs with Export for cross-stack referencesDeletionPolicy and UpdateReplacePolicy on stateful resourcescfn-lint and cfn-nag in CI pipelines!Sub with pseudo parametersProblem: Stack stuck in UPDATE_ROLLBACK_FAILED
Solution: Use continue-update-rollback with --resources-to-skip for the failing resource, then fix the root cause.
npx claudepluginhub sickn33/antigravity-awesome-skills --plugin antigravity-bundle-aas-mobile-app-builderOptimizes CloudFormation templates with YAML best practices, nested stacks, drift detection, production patterns, and troubleshooting. Use when writing or reviewing CF templates.
Author, validate, and troubleshoot AWS CloudFormation templates using secure defaults, cfn-lint, cfn-guard, change sets, and CloudTrail events for failed stacks.
Provides AWS CloudFormation patterns for S3 buckets, policies, versioning, lifecycle rules, and template structures with Parameters, Outputs, Mappings, Conditions, and cross-stack references. Use for production S3 infrastructure.