infrastructure-as-code-terraform

infrastructure-as-code-terraform is a skill for Claude Code, Codex from ibm-self-serve-assets/building-blocks. It costs 55 tokens per session (805 once invoked), scanned A, original, Apache-2.0.

Guidance for writing, reviewing, and debugging Terraform or OpenTofu infrastructure configurations. These tools describe servers and cloud resources in files and track the resources they manage in a state file.

In plain words
What is it for?
Working on modules, tests, CI/CD checks, state operations, security practices, backend migrations, refactoring, and validation or rollback plans.
Why use it?
It helps detect issues such as unexpected resource replacement, configuration drift, exposed secrets, unsafe changes, and damaged state before they affect infrastructure.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Working on modules, tests, CI/CD checks, state operations, security practices, backend migrations, refactoring, and validation or rollback plans.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ibm-self-serve-assets/building-blocks/infrastructure-as-code-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 ibm-self-serve-assets/building-blocks --skill infrastructure-as-code-terraform
Clone the repo
git clone --depth 1 https://github.com/ibm-self-serve-assets/building-blocks

Made for: Claude Code, Codex.

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 infrastructure-as-code-terraform

README.md
[![agentmods](https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/infrastructure-as-code-terraform/github.svg)](https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/infrastructure-as-code-terraform)
Your own site
<a href="https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/infrastructure-as-code-terraform"><img src="https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/infrastructure-as-code-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 infrastructure-as-code-terraform

Your own site · 80×15
<a href="https://agentmods.dev/skills/ibm-self-serve-assets/building-blocks/infrastructure-as-code-terraform"><img src="https://agentmods.dev/badge/skills/ibm-self-serve-assets/building-blocks/infrastructure-as-code-terraform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 805 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 original No closer match found 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.00055 $0.00805
Opus 5 $0.00028 $0.00402
Sonnet 5 $0.00011 $0.00161
Haiku 4.5 $0.00006 $0.00081

Measured 10d ago against content hash f9167adbe269, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

infrastructure-as-code-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 10d ago.

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.

ibm-bob/skills/infrastructure-as-code-terraform/SKILL.md · 96 lines

How it starts

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

Terraform/OpenTofu IaC Skill

Diagnose-first guidance for Infrastructure as Code. This skill helps you write, review, and debug Terraform/OpenTofu configurations by identifying failure modes before generating solutions.

When to Use This Skill

Activate this skill when you need to:

  • Write or review Terraform/OpenTofu configurations
  • Debug state issues or resource drift
  • Set up testing frameworks or CI/CD pipelines
  • Implement security best practices
  • Migrate between backends or versions
  • Refactor modules or resource addressing

Core Workflow

Response Contract

Every response must include:

  1. Assumptions & version floor - Runtime, exact version, providers, backend, execution path, environment criticality
  2. Risk category addressed - Which failure mode(s) being solved
  3. Chosen remediation & tradeoffs - What was chosen, what was traded off, why
  4. Validation plan - Exact commands (fmt -check, validate, plan -out, policy check)
  5. Rollback notes - For destructive changes: how to undo, what evidence to keep

Read the full file on GitHub · 96 lines

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. 10d ago First seen · 96 lines · 55 tokens per session scan A f9167adbe269

Subscribe to this mod's changes

infrastructure-as-code-terraform is a skill published in the GitHub repository ibm-self-serve-assets/building-blocks (24 stars, last pushed yesterday), licensed Apache-2.0. It adds 55 tokens to every session and 805 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.