Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides Terraform and OpenTofu best practices for testing, modules, CI/CD, and production patterns.
82% 91%+9 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 18 of 22 without it.
In Terraform 1.9+, we need to enforce that if `var.environment` equals `'prod'`, the `var.backup_retention_days` value must be at least 7. Where and how should this rule be defined?
Defines a validation condition referencing both var.environment and var.backup_retention_days inside a variable block
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
This file contains the detailed procedure and reference material extracted from
SKILL.mdfor focused loading. The root skill defines activation, examples, safety constraints, and limitations.
Module Hierarchy:
| Type | When to Use | Scope |
|---|---|---|
| Resource Module | Single logical group of connected resources | VPC + subnets, Security group + rules |
| Infrastructure Module | Collection of resource modules for a purpose | Multiple resource modules in one region/account |
| Composition | Complete infrastructure | Spans multiple regions/accounts |
Hierarchy: Resource → Resource Module → Infrastructure Module → Composition
Directory Structure:
environments/ # Environment-specific configurations
├── prod/
├── staging/
└── dev/
modules/ # Reusable modules
├── networking/
├── compute/
└── data/
examples/ # Module usage examples (also serve as tests)
├── complete/
└── minimal/
Key principle from terraform-best-practices.com:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.