terraform-validator

Automate Terraform configuration validation and security scanning with CLI tools.

1|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/devkeni/Skills --skill terraform-validator-devkeni
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terraform-validator
Source: https://github.com/devkeni/Skills/tree/main/backend-devops/terraform-validator
Command: npx skills add https://github.com/devkeni/Skills --skill terraform-validator-devkeni

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python-hcl2, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Terraform configurations frequently suffer from misconfigurations, insecure defaults, and drift between code and state, which this tool helps address by providing automated validation, linting, and security checks.

Core Features & Use Cases

  • Validate syntax and structure with terraform fmt, terraform init, and terraform validate.
  • Enforce security and quality with Checkov and TFLint, surfacing policy violations and misconfigurations.
  • Analyze providers and modules to surface implicit dependencies and ensure governance across monorepos and multi-environment setups.

Quick Start

Run the validator on your Terraform project to perform formatting, initialization, validation, and security checks.

Frequently Asked Questions about terraform-validator

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

FAQPage Schema
How do I automate Terraform validation and security scanning across a repository?

Automate Terraform validation by running wrapper scripts that execute terraform fmt, init, validate, and TFLint alongside Checkov policy checks across .tf files and modules to surface misconfigurations and security violations.

What does end-to-end Terraform config validation include?

End-to-end Terraform config validation includes syntax formatting, linting, provider validation, and policy checks. It applies terraform fmt, init, validate, and security scanning tools like Checkov to detect drift and enforce governance across monorepos and multi-environment setups.

Do I need the Terraform CLI installed to run validation and linting checks?

Yes, Terraform CLI tools are required. The validation process requires terraform fmt, terraform init, terraform validate, and TFLint, plus security tooling like Checkov, wired together via wrapper scripts to execute properly.

How do I check Terraform modules for insecure defaults and policy violations?

Check Terraform modules for insecure defaults and policy violations by applying Checkov and TFLint security scanning across directories. This surfaces implicit dependencies, enforces quality, and ensures governance across multi-environment monorepos.

Can I use this to enforce security and quality checks in a Terraform monorepo?

Yes, you can enforce security and quality checks in a Terraform monorepo. The validation scripts analyze providers and modules across directories to surface implicit dependencies and ensure governance in multi-environment setups using Checkov and TFLint.