What problem does it solve? Writing and maintaining Terraform/OpenTofu infrastructure code involves recurring failure modes — identity churn from list-indexed resources, secrets leaking into state, CI plans diverging from local plans, and state corruption — that are hard to diagnose and risky to fix without version-aware guidance. ## Core Features & Use Cases - Failure-mode diagnosis: Routes symptoms to nine risk categories (identity churn, secret exposure, blast radius, CI drift, compliance gaps, testing blind spots, state corruption, provider upgrades, bootstrap misuse) before proposing fixes. - Version-aware remediation: Guards every recommendation against the runtime floor (e.g., moved blocks 1.1+, native tests 1.6+, mock providers 1.7+, write_only args 1.11+) for both Terraform and OpenTofu. - Structured response contract: Every answer states assumptions, risk category, remediation tradeoffs, exact validation commands (fmt -check, validate, plan -out), and rollback notes for state-mutating changes. - Use Case: A terraform plan shows dozens of resources being destroyed and recreated after reordering a list; the skill identifies identity churn, recommends converting count to for_each with moved blocks, and provides the validation and rollback procedure. ## Quick Start Ask the assistant to review your Terraform module for state, security, and CI risks and propose fixes with validation commands.