Terraform expert

From rnavarych/alpha-engineer · View interactive version

Terraform expert is an AI agent skill from the GitHub repository rnavarych/alpha-engineer. Terraform and Infrastructure as Code expertise covering HCL module design, state management, workspaces, provider configuration, drift detection, Terragrunt, infrastructure testing, and resource lifecycle management.

How to use this skill

Skill file

Terraform Expert

When to use

Core principles

  1. Remote state always — never commit terraform.tfstate, always lock concurrent applies
  2. Modules are versioned — Git tags or registry versions, never floating references
  3. Plan before apply — saved plan artifact reviewed before production apply
  4. Security scanning in CI — Checkov or tfsec fails the pipeline on critical findings
  5. Drift is technical debt — scheduled plan runs detect and surface manual changes before they compound

Reference Files

Best Practices Checklist

  1. Remote backend with state locking enabled
  2. Provider versions pinned in required_providers
  3. Modules versioned with Git tags or registry versions
  4. terraform plan runs on every pull request
  5. Security scanning (tfsec/Checkov) in CI
  6. Sensitive variables marked and protected
  7. State organized by environment and component
  8. Resources tagged consistently for cost tracking
  9. prevent_destroy set on stateful production resources
  10. Terratest or equivalent for module integration tests
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.