akin-ozer/cc-devops-skills/terragrunt-validator
Claude Code and agent skill by akin-ozer/cc-devops-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"},{"type":"config","description":"Configuration overrides"}]
Checking that the SKILL.md file is still in the repository.
Validate, lint, audit, or check Terragrunt .hcl/terragrunt.hcl files, stacks, modules, compliance.
Install
npx vskill@latest install akin-ozer/cc-devops-skills/terragrunt-validatorSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
Terragrunt Validator
Overview
This skill provides comprehensive validation, linting, and testing capabilities for Terragrunt configurations. Terragrunt is a thin wrapper for Terraform/OpenTofu that provides extra tools for keeping configurations DRY (Don't Repeat Yourself), working with multiple modules, and managing remote state.
Use this skill when:
- Validating Terragrunt HCL files (*.hcl, terragrunt.hcl, terragrunt.stack.hcl)
- Working with Terragrunt Stacks (unit/stack blocks,
terragrunt stack generate/run) - Performing dry-run testing with
terragrunt plan - Linting Terragrunt/Terraform code for best practices
- Detecting and researching custom providers or modules
- Debugging Terragrunt configuration issues
- Checking dependency graphs
- Formatting HCL files
- Running security scans on infrastructure code (Trivy, Checkov)
- Generating run reports and summaries
Terragrunt Version Compatibility
This skill is designed for Terragrunt 0.93+ which includes the new CLI redesign.
CLI Command Migration Reference
| Deprecated Command | New Command | |
|---|---|---|
run-all | run --all | |
hclfmt | hcl fmt | |
hclvalidate | hcl validate | |
validate-inputs | hcl validate --inputs | |
graph-dependencies | dag graph | |
render-json | render --json -w | |
terragrunt-info | info print | |
plan-all, apply-all | run --all plan, run --all apply |
Key Changes in 0.93+:
terragrunt run --allreplacesterragrunt run-allfor multi-module operationsterragrunt dag graphreplacesterragrunt graph-dependenciesfor dependency visualizationterragrunt hcl validate --inputsreplacesvalidate-inputsfor input validation- HCL syntax validation via
terragrunt hcl fmt --checkorterragrunt hcl validate - Full validation requires
terragrunt init && terragrunt validate
If using an older Terragrunt version, some commands may need adjustment.
Core Capabilities
1. Comprehensive Validation Suite
Run the comprehensive validation script to perform all checks at once:
What it validates:
- HCL formatting (
terragrunt hcl fmt --check) - HCL input validation (
terragrunt hcl validate --inputs) - Terragrunt configuration syntax
- Terraform configuration validation
- Linting with tflint
- Security scanning with Trivy (or legacy tfsec)
- Dependency graph validation
- Dry-run planning
Environment variables:
SKIP_PLAN=true- Skip terragrunt plan stepSKIP_SECURITY=true- Skip security scanning (Trivy/tfsec)SKIP_LINT=true- Skip tflint lintingSKIP_INIT=true- Skipterragrunt initbefore validationSKIP_BACKEND_INIT=true- Run init with-backend=false(useful in CI/offline)SOFT_FAIL_SECURITY=true- Report security findings without failingTG_STRICT_MODE=true- Enable strict mode (errors on deprecated features)
Example usage:
2. Custom Provider and Module Detection
Use the detection script to identify custom providers and modules that may require documentation lookup:
What it detects:
- Custom Terraform providers (non-HashiCorp)
- Remote modules (Git, Terraform Registry, HTTP)
- Provider versions
- Module versions and sources
Output formats:
text- Human-readable report with search recommendationsjson- Machine-readable format for automation
When custom resources are detected:
CRITICAL: You MUST look up documentation for EVERY detected custom resource (both providers AND modules). Do NOT skip any. This is mandatory, not optional.
- For custom providers:
- Option A - WebSearch: Search for provider documentation
- Query format:
"{provider_source} terraform provider documentation version {version}" - Example:
"mongodb/mongodbatlas terraform provider documentation version 1.14.0" - Option B - Context7 MCP (Preferred): Use Context7 for structured documentation lookup
- Step 1: Resolve library ID:
mcp__context7__resolve-library-idwith provider name (e.g., "datadog terraform provider") - Step 2: REQUIRED - Fetch docs via
mcp__context7__query-docswith the resolved library ID - Use queries like
"authentication requirements"and"configuration examples"
- For custom modules (EQUALLY IMPORTANT - DO NOT SKIP):
- Terraform Registry modules:
- Use Context7:
mcp__context7__resolve-library-idwith module name (e.g., "terraform-aws-modules vpc") - Then fetch docs with
mcp__context7__query-docs - Or visit
https://registry.terraform.io/modules/{source}/{version} - Git modules: Use WebSearch with the repository URL to find README or documentation
- HTTP modules: Investigate the source URL for documentation
- Pay attention to version compatibility with your Terraform/Terragrunt version
- Documentation lookup workflow (MANDATORY for ALL detected resources):
``` a) Run detect_custom_resources.py b) For EACH custom provider/module:
- Note the exact version
- Use Context7 MCP:
- mcp__context7__resolve-library-id with libraryName: "{provider/module name}"
- mcp__context7__query-docs with:
- libraryId: "{resolved ID}"
- query: "authentication requirements" (for auth requirements)
- mcp__context7__query-docs with:
- libraryId: "{resolved ID}"
- query: "configuration examples" (for setup requirements)
- OR use WebSearch with version-specific queries
- Review documentation for:
- Required configuration blocks
- Authentication requirements (API keys, credentials)
- Available resources/data sources
- Known issues or breaking changes in the version
c) Apply learnings to validation/troubleshooting d) Document findings if issues are encountered ```
Example using Context7 MCP:
Example using WebSearch:
3. Step-by-Step Validation
For manual or granular validation, use these individual commands:
Format Validation
Configuration Validation
Terraform Validation
Linting with tflint
Security Scanning with Trivy (Recommended)
Note: tfsec has been merged into Trivy and is no longer actively maintained.Use Trivy for all new projects.
Alternative: Security Scanning with Checkov
Dependency Graph Validation
Dry-Run Planning
4. Multi-Module Operations
For projects with multiple Terragrunt modules, use run --all (replaces deprecated run-all):
5. HCL Input Validation (New in 0.93+)
Validate that all required inputs are set and no unused inputs exist:
6. Strict Mode
Enable strict mode to catch deprecated features early:
Specific Strict Controls:
For finer-grained control, use --strict-control to enable specific controls:
7. New CLI Commands (0.93+)
Render Configuration
Info Print (replaces terragrunt-info)
Find and List Units
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdevops-skills-plugin/skills/terragrunt-validator/SKILL.md
Popularity
- Repository stars
- 294
- Repository forks
- 32
- 7-day trend score
- 28
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 Mar 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooksconfigConfiguration overrides
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/akin-ozer/cc-devops-skills/terragrunt-validator)