/engsys-terraform:iac-terraformfrom engsys-terraform
Terraform & OpenTofu discipline and HCL code conventions — modules, remote state, workspaces, backends, plan/apply gates, drift detection, state surgery, security defaults, style, and .tftest.hcl testing. Activate when working on *.tf / *.tfvars files, terraform/tofu plan/apply/state operations, backend or workspace config, provider versioning, or diagnosing drift and partial applies.
Ships in engsys-terraform. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Operational discipline and HCL coding conventions for Terraform and OpenTofu (*.tf, *.tfvars, *.tftest.hcl) — cloud-independent. Service-level resource detail comes from the active cloud-architecture-<cloud> pack; project file layout and backend config come from CLAUDE.md.
apply without reading the plan. Treat a surprising plan as a bug to investigate, not a step to skip.terraform.required_version, declare provider version constraints in required_providers, and commit .terraform.lock.hcl to lock provider selections..tfstate files.dev vs. prod never share state) to minimize blast radius and lock contention.terraform or tofu):
<terraform|tofu> state list — inspect tracked resources<terraform|tofu> import <addr> <id> (or import {} blocks) — adopt existing resourcesmoved { from = ... to = ... } or <terraform|tofu> state mv — refactor without destroy+recreate<terraform|tofu> state rm — stop tracking without deleting the underlying cloud resourceplan immediately after state surgery to confirm zero unintended diffs..tf, .tfvars, or state where avoidable. Reference secrets from AWS Secrets Manager / SSM, Azure Key Vault, or GCP Secret Manager, and mark sensitive variables/outputs with sensitive = true.trivy, checkov, or tflint) in CI.lifecycle { prevent_destroy = true }.variable and output contracts. Never wrap a single resource in a thin pass-through module.providers.tf, variables.tf, main.tf, network.tf, outputs.tf). Within a resource block, order: depends_on → for_each/count → required attributes → optional attributes → lifecycle. Prefer for_each (keyed by stable string ID) over positional count.<terraform|tofu> fmt -check, <terraform|tofu> validate, and tflint before every commit using the active IaC executable..tftest.hcl test suites covering both nominal and invalid variable inputs.fmt → validate → plan (posted on PR) → operator approval gate → apply on merge.-/+ replacements: Never rubber-stamp a replacement on a stateful resource.plan -refresh-only checks; reconcile any out-of-band click-ops back into .tf immediately.*-deployment-preflight skill before applying.azurerm + mongodbatlas in one root module) so a single plan/apply wires both sides of the boundary deterministically.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub eric-sabe/engsys --plugin engsys-terraform