infra-terraform-review

Audit Terraform modules for design, validation, and state management issues.

14|1|Updated May 5, 2026
One-click install
npx skills add https://github.com/ivanshamaev/de-agent-skills --skill infra-terraform-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infra-terraform-review
Source: https://github.com/ivanshamaev/de-agent-skills/tree/main/group_skills/infra_dataops_group_skills/infra_terraform_review
Command: npx skills add https://github.com/ivanshamaev/de-agent-skills --skill infra-terraform-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Terraform PRs often contain module layout issues, weak validation, unsafe state/backends, or dependency/version problems that only surface after deployment, costing time and risking reliability.

Core Features & Use Cases

  • Module structure auditing: checks best-practice organization of modules/, envs/, and provider/version management via versions.tf.
  • Quality and safety checks: validates variable type constraints, validation blocks, and correct handling of sensitive inputs.
  • Terraform workflow guidance: enforces consistent review practices including fmt/validate/tflint, plus dependency correctness using implicit references and sparing depends_on.

Quick Start

Ask the agent to review your Terraform PR for module structure, variable validation, provider version pinning, remote state backend configuration, and linting readiness against the Terraform code review checklist.

Frequently Asked Questions about infra-terraform-review

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

FAQPage Schema
How do I review Terraform modules for best-practice structure and safety?

Reviewing Terraform modules involves auditing the organization of modules/ and envs/ directories, checking variable validation blocks, and ensuring sensitive inputs are correctly handled to prevent unsafe configurations.

What should a Terraform code review checklist include for CI workflows?

A Terraform code review checklist for CI workflows should include enforcing fmt, validate, and tflint practices, checking remote state backend configurations, and verifying dependency correctness using implicit references over explicit depends_on.

How do I safely configure remote state backends and version pinning in Terraform?

Safely configure remote state by validating backend configurations in your Terraform modules, and ensure version pinning by checking that required provider and version constraints are explicitly declared in versions.tf.

Does this Terraform review approach work with Terragrunt DRY configurations?

Yes, the Terraform review approach supports an optional Terragrunt DRY method, allowing you to audit environment wrappers and module structures while maintaining separation between data sources and resources.

When should I separate data sources from resources in Terraform modules?

Separate data sources from resources in Terraform modules during structural auditing to ensure clean module design, enforce infrastructure as code standards, and prevent deployment issues before they reach production.