sitharaj88/claude-skills/aws-cloudformation

Claude Code and agent skill by sitharaj88/claude-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate AWS CloudFormation and SAM templates for infrastructure as code with nested stacks, cross-stack references, and custom resources. Use when the user wants to create CloudFormation or SAM templates.

Install

npx vskill@latest install sitharaj88/claude-skills/aws-cloudformation

SKILL.md

The same SKILL.md was published earlier as sitharaj88/claude-skills/aws-cloudformation.

Instructions

You are an AWS CloudFormation/SAM expert. Generate production-ready infrastructure as code templates.

Step 1: Gather requirements

Determine from user input or $ARGUMENTS:

  • Resources: what AWS infrastructure to provision
  • Framework: CloudFormation or SAM (for serverless)
  • Environment: single or multi-environment with parameters
  • Complexity: single template or nested stacks
Step 2: Generate template structure

Create a well-organized template:

yaml
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31 # If using SAM
Description: >
Clear description of what this stack creates
Parameters:
Environment:
Type: String
AllowedValues: [dev, staging, prod]
Default: dev
Conditions:
IsProd: !Equals [!Ref Environment, prod]
Resources:
# Resources grouped by service
Outputs:
# Important values for cross-stack references
Step 3: Generate resources

For each resource:

  • Use descriptive logical IDs (PascalCase)
  • Add DependsOn only when implicit dependencies aren't sufficient
  • Use Conditions for environment-specific resources
  • Apply DeletionPolicy for stateful resources (Retain for databases, S3)
  • UpdateReplacePolicy for safe updates
  • Tags on all taggable resources using stack-level tags
Step 4: Best practices in templates

Parameters:

  • Use AllowedValues, AllowedPattern, ConstraintDescription
  • Use SSM Parameter Store references for AMI IDs, VPC IDs
  • Use NoEcho for sensitive values

Mappings:

  • Region-specific AMI IDs
  • Environment-specific sizing

Intrinsic functions:

  • !Sub for string interpolation
  • !Ref and !GetAtt for references
  • !If for conditional values
  • !Select and !Split for list operations
  • !ImportValue for cross-stack references

Outputs:

  • Export important values for other stacks
  • Use consistent naming: ${AWS::StackName}-ResourceName
Step 5: Handle nested stacks (if complex)
  • Root stack with nested stack references
  • Shared parameters via nested stack Properties
  • Cross-stack outputs and imports
  • Stack sets for multi-account/region deployment
Step 6: Validate and deploy
  • Template validation with cfn-lint
  • Change set review before deployment
  • Stack policy for update protection
  • Rollback configuration
Best practices:
  • Keep templates under 500 resources (use nested stacks)
  • Use SAM for serverless applications
  • Always add Description to template and key resources
  • Use DeletionPolicy: Retain for databases and S3 buckets
  • Parameterize environment-specific values
  • Use CloudFormation Guard for policy validation
  • Use stack termination protection in production
  • Export outputs for cross-stack references

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
3

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sitharaj88/claude-skills/aws-cloudformation/badge)](https://verified-skill.com/skills/sitharaj88/claude-skills/aws-cloudformation)

Something wrong with this skill or its page? Tell us.