Terraform and OpenTofu configuration, modules, testing, state management, and HCL review. Use for "terraform module", "terraform test", "infrastructure as code", "IaC", "HCL", "tfvars", "terraform plan", "terraform apply", "OpenTofu", "tftest", or multi-environment patterns.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Terraform & OpenTofu
## File Organization & Naming
| File | Purpose |
|------|---------|
| `terraform.tf` | Terraform + provider version requirements |
| `providers.tf` | Provider configurations |
| `main.tf` | Primary resources and data sources |
| `variables.tf` | Input variables (alphabetical) |
| `outputs.tf` | Output values (alphabetical) |
| `locals.tf` | Local values |
- Lowercase with underscores: `web_api`, not `webAPI` or `web-api`
- Descriptive nouns excluding resource type: `aws_instance.web_api` not `aws_instance.web_api_instance`
- Singular, not plural
- `this` for singleton resources (one of that type per module)
- Contextual variable prefixes: `vpc_cidr_block` not `cidr`
## Block Ordering
**Resources:** `count`/`for_each` (blank line after) → arguments → nested blocks → `tags` → `depends_on` → `lifecycle` (last)
**Variables:** `description` → `type` → `default` → `validation` → `nullable`
Every variable needs `type` + `description`. Every output needs `description`. Mark secrets `sensitive = true`.
## Module Structure
| Type | Scope | Example |
|------|-------|---------|
| Resource Module | Single logical group | VPC + subnets, SG + rules |
…
The line at the top of this page pins the label git:20260227.215f429, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_zvzycn7nzg4hptwx
GET https://markdownregistry.com/api/v1/resolve?ref=iliaal/whetstone/terraform
GET https://markdownregistry.com/api/v1/blob/6595599b53f112fdf2395555a9ad86fb236ad7be96fae5d1e67f7b5795d4fbf0
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
iliaal/whetstone · .agents/skills/audit-plugin/SKILL.md · Audit Whetstone skills, agents, and commands when asked for a plugin quality or consistency audit.
iliaal/whetstone · .agents/skills/diagnose-negatives/SKILL.md · Investigate negative session feedback for a Whetstone skill when asked to diagnose its failures.
iliaal/whetstone · .agents/skills/eval-skills/SKILL.md · Evaluate Whetstone skills from session evidence when asked to compare procedure-following results or optimization…
iliaal/whetstone · .agents/skills/skillopt/SKILL.md · Prepare or run Whetstone SkillOpt optimization when asked to optimize a process skill using SkillOpt.
iliaal/whetstone · .agents/skills/sync-from-repos/SKILL.md · Compare Whetstone with reference repositories when asked to sync cross-repository improvements.
iliaal/whetstone · .agents/skills/write-skill/SKILL.md · Author a new Whetstone plugin skill when asked to write a skill without upstream skills.sh sources.
magnus919/agent-skills · terraform/SKILL.md · Operate Terraform and OpenTofu across the whole infrastructure lifecycle: module structure, state backends and locking…
nitinjain999/platform-skills · plugins/platform-skills/skills/terraform/SKILL.md · Runs through the full Terraform validation pipeline — fmt, validate, tflint, security scan — and reviews a module or…
nitinjain999/platform-skills · skills/terraform/SKILL.md · Runs through the full Terraform validation pipeline — fmt, validate, tflint, security scan — and reviews a module or…
iliaal/ai-skills · skills/terraform/SKILL.md · Terraform and OpenTofu configuration, modules, testing, state management, and HCL review. Use when working with…
jnpiyush/agentx · .github/skills/infrastructure/terraform/SKILL.md · Provision cloud infrastructure safely and consistently using Terraform and Infrastructure as Code patterns. Use when…
bendrucker/claude · plugins/terraform/skills/terraform/SKILL.md · Terraform Cloud workspace management, run monitoring, and log retrieval. Use when listing workspaces, checking run…
iuliandita/skills · skills/terraform/SKILL.md · Terraform and OpenTofu: HCL, modules, providers, state moves, imports, backends, drift, policy. Use for a plan that…