ia-terraform

ia-terraform is a skill for Claude Code from iliaal/whetstone. It costs 51 tokens per session (1,942 once invoked), scanned A, a copy of terraform, MIT.

A guide to Terraform and OpenTofu configuration, modules, state, testing, and HCL review. Terraform and OpenTofu are tools for defining and managing infrastructure with configuration files.

In plain words
What is it for?
Use it when creating or reviewing infrastructure modules, provider settings, variables, resources, tests, or state migrations.
Why use it?
It provides consistent structure and naming for infrastructure code and helps avoid configuration and state-management mistakes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the whetstone plugin — 29 skills, 18 commands, 18 agents shipped together

Good fit Use it when creating or reviewing infrastructure modules, provider settings, variables, resources, tests, or state migrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iliaal/whetstone/ia-terraform
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add iliaal/whetstone --skill ia-terraform
Clone the repo
git clone --depth 1 https://github.com/iliaal/whetstone

Made for: Claude Code.

Or install whetstone, the plugin that ships this one along with the rest of its 29 skills, 18 commands, 18 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ia-terraform

README.md
[![agentmods](https://agentmods.dev/badge/skills/iliaal/whetstone/ia-terraform/github.svg)](https://agentmods.dev/skills/iliaal/whetstone/ia-terraform)
Your own site
<a href="https://agentmods.dev/skills/iliaal/whetstone/ia-terraform"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/ia-terraform/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ia-terraform

Your own site · 80×15
<a href="https://agentmods.dev/skills/iliaal/whetstone/ia-terraform"><img src="https://agentmods.dev/badge/skills/iliaal/whetstone/ia-terraform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,942 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.01942
Opus 5.5 $0.00020 $0.00777
Sonnet 5.5 $0.00010 $0.00388
Haiku 4.5 $0.00005 $0.00194

Measured yesterday against content hash f4ac9ba8673d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ia-terraform scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to terraform — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

claude-directory/whetstone/skills/ia-terraform/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Terraform & OpenTofu

Working rules

  • Preserve state and resource addresses during refactoring; inspect the plan for unintended replacement.
  • Apply only a saved, reviewed plan; get approval before apply or destroy. Before applying, deleting a resource block, or adding ignore_changes or prevent_destroy, read plan-and-state-safety.md.
  • Separate tests with verified local or mocked effects from tests that access real services or create billable infrastructure. Plan mode can still read real data sources; mocked apply can run without infrastructure creation.

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
Infrastructure Module Collection of resource modules Networking + compute for one region
Composition Complete infrastructure Spans regions/accounts
module-name/
├── main.tf, variables.tf, outputs.tf, versions.tf
├── examples/
│   ├── minimal/
│   └── complete/
└── tests/
    └── defaults.tftest.hcl

Read the full file on GitHub · 139 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed · -7 lines f4ac9ba8673d
  2. 8d ago Changed 9d94ccf6ad3b
  3. 15d ago Changed · +1 lines 5e7d592ad33b
  4. 1mo ago Changed · +2 lines 8915f30bd2a3
  5. 1mo ago Changed 1cb681086f68
  6. 2mo ago Changed 316d80148a0c
  7. 2mo ago Changed · +1 lines ca57e98ab9bc
  8. 2mo ago Changed · -15 lines e1d5c2d6c241
  9. 2mo ago First seen · 157 lines · 51 tokens per session scan A 50fecc595fea

Subscribe to this mod's changes

ia-terraform is a skill published in the GitHub repository iliaal/whetstone (37 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 1,942 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to terraform, differing in 11 lines, and is treated as a copy.

Related

ia-terraform compared with skills from other repositories

ia-terraform next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ia-terraformiliaal/whetstoneSkill37todayMITA51Claude Code
pr-reviewnitinjain999/platform-skillsSkill73todayApache-2.0A81Claude Code
code-reviewnitinjain999/platform-skillsSkill73todayApache-2.0A88Claude Code
rubber-duckyharnessprotocol/harness-kitSkill13yesterdayApache-2.0A189Claude Code
pr-sweepharnessprotocol/harness-kitSkill13yesterdayApache-2.0A115Claude Code
reviewharnessprotocol/harness-kitSkill13yesterdayApache-2.0A103Claude Code
open-prharnessprotocol/harness-kitSkill13yesterdayApache-2.0A111Claude Code