terraform

terraform is a skill for Claude Code from nimadorostkar/Claude-Skills-collection. It costs 96 tokens per session (1,235 once invoked), scanned A, original, MIT.

A guide to managing infrastructure as code with Terraform or OpenTofu, tools that create and change cloud resources from configuration files. It covers reusable modules, state, drift, plans, and secrets.

In plain words
What is it for?
Use it to structure environments and modules, review plans, recover from state problems, detect drift, and apply changes safely.
Why use it?
It helps prevent unreviewed changes from destroying production and keeps configuration aligned with the infrastructure that actually exists.

Skill for Claude Code

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

Part of the devops plugin — 13 skills shipped together

Good fit Use it to structure environments and modules, review plans, recover from state problems, detect drift, and apply changes safely.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nimadorostkar/claude-skills-collection/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 nimadorostkar/Claude-Skills-collection --skill terraform
Clone the repo
git clone --depth 1 https://github.com/nimadorostkar/Claude-Skills-collection

Made for: Claude Code.

Or install devops, the plugin that ships this one along with the rest of its 13 skills.

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 terraform

README.md
[![agentmods](https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/terraform/github.svg)](https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/terraform)
Your own site
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/terraform"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/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 terraform

Your own site · 80×15
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/terraform"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/terraform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,235 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00096 $0.01235
Opus 5.5 $0.00038 $0.00494
Sonnet 5.5 $0.00019 $0.00247
Haiku 4.5 $0.00010 $0.00123

Measured 1mo ago against content hash 1685211d6940, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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 1mo 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.

skills/devops/terraform/SKILL.md · 109 lines

How it starts

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

Terraform

Purpose

Manage infrastructure declaratively without the two events that define bad Terraform experiences: a plan nobody read that destroyed a database, and a state file that no longer matches reality.

When to Use

  • Writing or reviewing Terraform configuration.
  • Structuring modules and environments.
  • Reviewing a plan before an apply that touches production.
  • Recovering from state drift or a corrupted state file.

Capabilities

  • Module design with clear inputs, outputs, and versioning.
  • Remote state with locking, and workspace or directory-based environment separation.
  • Plan review, including recognizing a destructive change before it runs.
  • Import and drift reconciliation.
  • Secrets handling that keeps values out of state where possible.

Inputs

  • The existing configuration and state.
  • The target environment and its blast radius.
  • The plan output — always read before an apply.

Outputs

  • Modules that are reusable and versioned.
  • Remote state, locked, encrypted, and backed up.
  • A reviewed plan with any resource replacement explicitly acknowledged.

Workflow

  1. Separate environments physically — Separate state files and separate directories or workspaces. A single state containing dev and prod is one typo away from an incident.
  2. Write modules with a narrow interface — Inputs that are actually variable, outputs that consumers need. A module with forty variables is a wrapper, not an abstraction.
  3. Plan and read the plan — Every -/+ is a destroy and recreate. On a database, a load balancer, or anything holding state, that is an outage. Never approve a plan you have not read line by line.
  4. Lock the state — Remote backend with locking (S3 + DynamoDB, or the equivalent). Two concurrent applies against unlocked state will corrupt it.
  5. Pin everything — Provider versions, module versions, and the Terraform version itself. An unpinned provider will change behavior underneath you on an unrelated day.
  6. Reconcile drift explicitly — Manual changes happen. terraform plan shows them; decide to import, adopt, or revert. Ignoring drift means the next apply reverts someone's emergency fix.

Read the full file on GitHub · 109 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. 1mo ago Changed · +60 tokens per session 1685211d6940
  2. 2mo ago First seen · 109 lines · 36 tokens per session scan A 020229b383ca

Subscribe to this mod's changes

terraform is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (41 stars, last pushed today), licensed MIT. It adds 96 tokens to every session and 1,235 once invoked, about $0.0004 per session on Opus 5.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-09-03.

Related

terraform compared with skills from other repositories

terraform next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
terraformnimadorostkar/Claude-Skills-collectionSkill41todayMITA96Claude Code
offensive-c2-frameworksSnailSploit/Claude-RedSkill12k13d agoMITA250Claude Code, Codex
offensive-crypto-attacksSnailSploit/Claude-RedSkill12k13d agoMITA261Claude Code, Codex
offensive-parameter-pollutionSnailSploit/Claude-RedSkill12k13d agoMITA57Claude Code, Codex
offensive-z-waveSnailSploit/Claude-RedSkill12k13d agoMITA113Claude Code, Codex
fiscalisteromainsimon/paperasseSkill2.6k17d agoMITA306Claude Code
feature-prioritisationmohitagw15856/pm-claude-skillsSkill1.6ktodayMITA103Claude Code, Codex