super-review:terraform

Detect dangerous Terraform and OpenTofu IaC anti-patterns in pull requests.

Updated May 15, 2026
One-click install
npx skills add https://github.com/mattnowdev/super-review --skill super-review-terraform
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: super-review:terraform
Source: https://github.com/mattnowdev/super-review/tree/main/skills/terraform
Command: npx skills add https://github.com/mattnowdev/super-review --skill super-review-terraform

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents costly and irreversible infrastructure mistakes in Terraform/OpenTofu pull requests by surfacing risky IaC anti-patterns that automated linters often miss.

Core Features & Use Cases

  • State-file safety: Flags committed or mismanaged state artifacts that leak secrets or corrupt environments.
  • Change-management guardrails: Detects missing backend locking, unsafe destroy risks, and workflow practices that cause drift.
  • Security and correctness patterns: Reviews sensitive outputs, provider pinning, count vs for_each stability, lifecycle protections, and IAM policy discipline.
  • PR-diff scoped guidance: Supplies actionable checklist items only when the diff indicates IaC is affected (Terraform/OpenTofu files, Terragrunt, or CDKTF).

Quick Start

Use the orchestrator to review your Terraform/OpenTofu PR by asking: “Run super-review on this pull request and prioritize Terraform anti-patterns around state safety, locking, sensitive outputs, and IAM policy authoring.”

Frequently Asked Questions about super-review:terraform

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect dangerous Terraform anti-patterns in a pull request?

To detect Terraform anti-patterns in a pull request, review PR diffs modifying .tf or .tfvars files for risks like leaked secrets, lost state, and broken apply workflows using evidence-led checks. This surfaces issues automated linters often miss.

What is state-file safety in Terraform and why does it matter?

State-file safety in Terraform prevents committed or mismanaged state artifacts from leaking secrets or corrupting environments. It ensures backend state configurations remain secure during infrastructure changes, avoiding costly and irreversible infrastructure mistakes.

Can I review OpenTofu and Terragrunt configurations for IAM policy issues?

Yes, you can review OpenTofu and Terragrunt configurations for IAM policy discipline. Reviews target sensitive output handling, provider version pinning, and IAM authoring to ensure security and correctness across your IaC tooling.

What's the best way to prevent Terraform destroy risks and apply workflow drift?

The best way to prevent Terraform destroy risks and workflow drift is applying change-management guardrails. Detect missing backend locking, unsafe destroy risks, and enforce apply-from-plan discipline alongside lifecycle prevent_destroy protections.

Does PR-diff scoped review work with CDKTF directories?

Yes, PR-diff scoped review works with CDKTF directories, Terragrunt configurations, and standard Terraform files. It supplies actionable checklist items only when the diff indicates infrastructure as code is affected, focusing on count vs for_each stability.