terragrunt-validator

Validate, lint, and security-scan Terragrunt configurations with tflint and Trivy.

7|3|Updated May 4, 2026
One-click install
npx skills add https://github.com/nopperabbo/codebuddy2api --skill terragrunt-validator-nopperabbo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: terragrunt-validator
Source: https://github.com/nopperabbo/codebuddy2api/tree/main/opencode-config/skills/_archived/terragrunt-validator
Command: npx skills add https://github.com/nopperabbo/codebuddy2api --skill terragrunt-validator-nopperabbo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Terragrunt configurations can be complex and error-prone; this skill provides comprehensive validation, linting, security scanning, and dependency checks to ensure Terragrunt setups are correct and secure.

Core Features & Use Cases

  • Validates Terragrunt HCL syntax and structure across single units, multi-unit directories, and root-only layouts.
  • Performs HCL formatting checks, input validation, Terraform/Terragrunt validation, linting with tflint, and security scans with Trivy or alternatives.
  • Useful for teams shipping infrastructure as code to catch configuration issues early and enforce best practices.

Quick Start

Use this skill by running the validator against your Terragrunt directory to perform formatting, validation, linting, and security checks.

Frequently Asked Questions about terragrunt-validator

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

FAQPage Schema
How do I validate Terragrunt configurations for syntax and security in CI?

You can validate Terragrunt configurations by running automated checks for HCL formatting, syntax, Terraform validation, linting via tflint, and security scanning with Trivy in a deterministic CI workflow.

What does end-to-end Terragrunt validation include?

End-to-end Terragrunt validation includes HCL format checking, input validation, Terragrunt syntax verification, Terraform validation, tflint linting, security scanning, and dependency graph checks across your project layouts.

Can I run Terragrunt linting and security scans on multi-unit directories?

Yes, you can run Terragrunt linting and security scans on multi-unit directories, single units, and root-only layouts, executing checks across all applicable configuration files simultaneously.

What's the best way to automate Terraform and Terragrunt formatting checks?

The best way to automate formatting checks is using a deterministic workflow that runs terragrunt hcl fmt and terragrunt hcl validate to enforce consistent HCL structure across your infrastructure code.

Does this Terragrunt validation workflow support Trivy for security scanning?

Yes, the Terragrunt validation workflow supports security scanning with Trivy or alternative security scanners to identify vulnerabilities and enforce infrastructure security best practices.

Why do I need dependency graph checks in Terragrunt projects?

Dependency graph checks in Terragrunt projects ensure that module dependencies are correctly defined and ordered, preventing deployment failures caused by missing or misconfigured infrastructure dependencies.