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
Comprehensive Terraform and OpenTofu guidance covering testing, modules, CI/CD, and production patterns. Based on terraform-best-practices.com and enterprise experience.
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
Activate this skill when:
Don't use this skill for:
| Scenario | Use | Why |
|---|---|---|
| Boolean condition (create or don't) | count = condition ? 1 : 0 | Simple on/off toggle |
| Simple numeric replication | count = 3 | Fixed number of identical resources |
| Items may be reordered/removed | for_each = toset(list) | Stable resource addresses |
| Reference by key | for_each = map | Named access to resources |
| Multiple named resources | for_each | Better maintainability |
Boolean conditions:
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.