Infrastructure As Code

Terraform, CloudFormation, reproducible infrastructure, version control, and IaC best 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
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/engineer/devops-practices/skills/infrastructure-as-code ~/.claude/skills/infrastructure-as-code

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

Managing infrastructure through code; version controlled, auditable, reproducible.

## Context

You are writing infrastructure as code. Treat it like software; test, review, version.

## Domain Context

- **Declarative**: Describe desired state; tool figures out changes
- **Version Control**: Infrastructure changes tracked like code
- **Review**: Infrastructure changes go through pull requests
- **Reproducible**: Same code → same infrastructure
- **Idempotent**: Running twice is same as running once

## Instructions

1. **Use IaC**: Terraform, CloudFormation, Pulumi; pick one
2. **Version Control**: Commit infrastructure code
3. **Code Review**: Pull requests for all changes
4. **Modules**: Reusable components; DRY principle
5. **Secrets**: Never commit secrets; use secrets manager
6. **State**: Manage state file carefully; backup, lock
7. **Testing**: Test infrastructure like code

## Anti-Patterns

- Manual changes outside IaC; infrastructure drifts
- Secrets in code; instant compromise
- Massive monolithic infrastructure files; hard to review
- No version control; can't audit changes, can't rollback
- Testing infrastructure only in prod; catch errors early

## Further Reading

- Terraform documentation
- AWS CloudFormation best practices
- IaC best practices (O'Reilly)
Read the full skill on GitHub

Details

Skill name
infrastructure-as-code
Path
engineer/devops-practices/skills/infrastructure-as-code/SKILL.md
License
MIT
Repo updated
11 March 2026

FAQ

What does the Infrastructure As Code skill do?

Terraform, CloudFormation, reproducible infrastructure, version control, and IaC best practices.

How do I install the Infrastructure As Code 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 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.