Infrastructure As Code Patterns

Codify infrastructure with Terraform, CloudFormation, or Pulumi. Design IaC architecture, versioning, testing, and drift detection. Use when automating infrastructure or establishing IaC practices.

48 stars 10 forksDevOps & Cloud Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add sethdford/claude-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add sethdford/claude-skills --skill infrastructure-as-code-patterns
Manual install
git clone --depth 1 https://github.com/sethdford/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/architect/infrastructure-design/skills/infrastructure-as-code-patterns ~/.claude/skills/infrastructure-as-code-patterns

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the 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

1. **Choose Tool**: Terraform (multi-cloud, popular, large ecosystem). CloudFormation (AWS-native, less learning). Pulumi (programming language, more flexible).

2. **Design Module Structure**: Root modules per environment (dev, staging, prod). Shared modules for common patterns (VPC, RDS cluster, service). Versioned modules in registry.
Read the full skill on GitHub

Details

Skill name
infrastructure-as-code-patterns
Path
architect/infrastructure-design/skills/infrastructure-as-code-patterns/SKILL.md
License
MIT
Repo updated
11 March 2026

FAQ

What does the Infrastructure As Code Patterns skill do?

Codify infrastructure with Terraform, CloudFormation, or Pulumi. Design IaC architecture, versioning, testing, and drift detection. Use when automating infrastructure or establishing IaC practices.

How do I install the Infrastructure As Code Patterns skill?

Claude Code plugin: /plugin marketplace add sethdford/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Infrastructure As Code Patterns popular?

It lives in sethdford/claude-skills, which has 48 GitHub stars and 10 forks.

Related skills

Browse the most popular Claude skills, all devops & cloud skills, or write your own with the skills generator.