Terraform Validator
Validates Terraform configuration files against best practices and schema to prevent errors before deployment.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add terraform-validator npx -- -y @trustedskills/terraform-validator
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"terraform-validator": {
"command": "npx",
"args": [
"-y",
"@trustedskills/terraform-validator"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
The terraform-validator skill validates Terraform configuration files. It checks for syntax errors, missing required attributes, and adherence to best practices, ensuring configurations are ready for deployment. This helps prevent costly mistakes during infrastructure provisioning and management.
When to use it
- Pre-deployment Checks: Validate Terraform code before applying changes to your infrastructure.
- CI/CD Pipelines: Integrate validation into automated pipelines to enforce configuration quality.
- Code Reviews: Use the skill to automatically check Terraform files during code review processes.
- Configuration Audits: Regularly audit existing Terraform configurations for potential issues and compliance.
Key capabilities
- Syntax Validation: Identifies syntax errors in Terraform files.
- Attribute Checks: Ensures all required attributes are present.
- Best Practices Enforcement: Validates against recommended Terraform coding standards (details not specified).
Example prompts
- "Validate this Terraform file and report any errors."
- "Check the
main.tffile for missing attributes." - "Run a configuration audit on all Terraform files in the
/environments/stagingdirectory."
Tips & gotchas
- Requires Terraform to be installed and configured within the environment where the skill is executed.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.