Help us improve
Share bugs, ideas, or general feedback.
Codify infrastructure with Terraform, CloudFormation, or Pulumi. Design IaC architecture, versioning, testing, and drift detection. Use when automating infrastructure or establishing IaC practices.
npx claudepluginhub sethdford/claude-skills --plugin architect-infrastructure-designHow this skill is triggered — by the user, by Claude, or both
Slash command
/infrastructure-design:infrastructure-as-code-patternsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Define and manage infrastructure through code for reproducibility, version control, and automation.
Terraform, CloudFormation, reproducible infrastructure, version control, and IaC best practices.
Analyzes Terraform, CloudFormation, and Pulumi configurations for module structure, state management, drift prevention, and security posture.
Provides Terraform IaC patterns, modules, best practices for core concepts, variables, state management, AWS/Azure/GCP resources, and CI/CD. Activates on *.tf files or terraform.tfvars.
Share bugs, ideas, or general feedback.
Define and manage infrastructure through code for reproducibility, version control, and automation.
You are building infrastructure-as-code practices. Choose tools, design module structure, plan testing and validation, implement drift detection. Read current infrastructure, team programming skills, and cloud platform.
Based on IaC best practices (Terraform, CloudFormation, Pulumi):
Choose Tool: Terraform (multi-cloud, popular, large ecosystem). CloudFormation (AWS-native, less learning). Pulumi (programming language, more flexible).
Design Module Structure: Root modules per environment (dev, staging, prod). Shared modules for common patterns (VPC, RDS cluster, service). Versioned modules in registry.
Plan State Management: Store state in remote backend (S3 + DynamoDB for Terraform). Enable versioning and locking. Restrict access (IAM for AWS state). Never commit state to Git.
Implement Testing: Validate syntax (terraform fmt). Unit tests (mock resources). Integration tests (deploy to ephemeral environment, test behavior). Destroy after test.
Detect and Handle Drift: Use terraform plan to detect changes not in code. Use policy as code (Sentinel, OPA) to enforce compliance. Periodically reconcile drift.