"Terraform infrastructure-as-code workflow patterns: state and environments, module design, safe plan/apply, drift control, and CI guardrails"
Install
npx skillscat add bobmatnyc/claude-mpm-skills/terraform Install via the SkillsCat registry.
About this skill
This skill provides guidance for using Terraform to manage infrastructure as code, covering state management, environment separation, module design, and safe deployment practices. It helps prevent common infrastructure risks such as state corruption, configuration drift, and unreviewed changes by establishing standardized workflows and CI guardrails. Developers and agents should use it when provisioning cloud resources, standardizing environments, or implementing controlled IaC pipelines.
SKILL.md
Terraform
Quick Start (workflow)
terraform init
terraform plan -out=tfplan
terraform apply tfplanSafety Checklist
- State: remote backend + locking; separate state per environment
- Reviews: plan in CI; apply from a trusted runner with approvals
- Guardrails:
prevent_destroyand policy checks for prod
Load Next (References)
references/state-and-environments.md— backends, locking, workspaces vs separate state, driftreferences/modules-and-composition.md— module interfaces, versioning, composition patternsreferences/workflows-and-guardrails.md— CI plan/apply, policy-as-code, safe migrations