terragrunt-validator
БесплатноЗапускает вложенные скриптыНе проверенValidate, lint, audit, or check Terragrunt .hcl/terragrunt.hcl files, stacks, modules, compliance.
от akin-ozer★ 346 звёзд на GitHubОб этом скилле
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:
bash scripts/validate_terragrunt.sh [TARGET_DIR]
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:
# Full validation
bash scripts/validate_terragrunt.sh ./infrastructure/prod
# Skip plan generation (faster)
SKIP_PLAN=true bash scripts/validate_terragrunt.sh ./infrastructure
# Only validate, skip linting and security
SKIP_LINT=true SKIP_SECURITY=true bash scripts/validate_terragrunt.sh
2. Custom Provider and Module Detection
Use the detection script to identify custom providers and modules that may require documentation lookup:
python3 scripts/detect_custom_resources.py [DIRECTORY] [--format text|json]
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"
- Query format:
- 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"
- Step 1: Resolve library ID:
- Option A - WebSearch: Search for provider documentation
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://reg
- Use Context7:
- Terraform Registry modules:
Установить terragrunt-validator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл terragrunt-validator?
Validate, lint, audit, or check Terragrunt .hcl/terragrunt.hcl files, stacks, modules, compliance.
Как установить скилл terragrunt-validator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл terragrunt-validator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub