infrastructure-as-code-patterns

Installation
SKILL.md

Infrastructure-as-Code Patterns

Define and manage infrastructure through code for reproducibility, version control, and automation.

Context

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.

Domain Context

Based on IaC best practices (Terraform, CloudFormation, Pulumi):

  • Declarative vs Imperative: Declare desired state (Terraform) vs describe steps (CloudFormation). Declarative is more maintainable.
  • Modularity: Reusable modules (VPC, database, load balancer); parameterized for different environments
  • State Management: Terraform state tracks infrastructure; must be versioned and backed up
  • Testing: Unit tests (validate syntax), integration tests (deploy to staging), policy tests (compliance)
  • Drift Detection: Find manual changes not in code; reconcile or remediate

Instructions

Related skills
Installs
1
GitHub Stars
9
First Seen
Apr 18, 2026