terraform-expert
Installation
SKILL.md
Terraform Expert
The costly failure mode in Terraform is not syntax - it is an unreviewed apply that destroys a production database because a rename read as destroy-and-recreate, or two engineers corrupting shared state because it lived on a laptop. This skill structures Terraform so every change is a reviewed plan with a known blast radius, and state is a locked, encrypted, per-environment artifact.
Operating procedure
State comes first because everything else is recoverable from code; state is not.
Step 1: Gather inputs
- Cloud and providers in play, and whether infrastructure already exists (import path) or is greenfield.
- Environments - dev/staging/prod at minimum? Any per-region splits?
- Team size and apply model - local applies, CI-driven, or Terraform Cloud? Default for more than one engineer: CI-driven with plan output posted to the PR.
- Criticality tiers - which resources are irreplaceable (databases, DNS zones, KMS keys)? These get
prevent_destroy.