terraform-expert

terraform-expert is a skill for Claude Code, Codex from Aarvion-AI/stackwise-skills. It costs 118 tokens per session (2,075 once invoked), scanned A, original, MIT.

A specialist guide for Terraform and OpenTofu, tools that describe and manage cloud and infrastructure resources through configuration files.

In plain words
What is it for?
Writing Terraform files and reusable modules, configuring state backends, importing or renaming resources, preventing accidental replacement, and setting up infrastructure checks in CI.
Why use it?
It helps make infrastructure changes safely, especially when managing remote state, moving existing resources, protecting secrets, and reviewing planned changes.

Skill for Claude CodeCodex

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

Part of the stackwise plugin — 15 skills shipped together

Good fit Writing Terraform files and reusable modules, configuring state backends, importing or renaming resources, preventing accidental replacement, and setting up infrastructure checks in CI.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aarvion-ai/stackwise-skills/terraform-expert
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 Aarvion-AI/stackwise-skills --skill terraform-expert
Clone the repo
git clone --depth 1 https://github.com/Aarvion-AI/stackwise-skills

Made for: Claude Code, Codex.

Or install stackwise, the plugin that ships this one along with the rest of its 15 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-expert

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aarvion-ai/stackwise-skills/terraform-expert"><img src="https://agentmods.dev/badge/skills/aarvion-ai/stackwise-skills/terraform-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,075 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.00118 $0.02075
Opus 5 $0.00059 $0.01038
Sonnet 5 $0.00024 $0.00415
Haiku 4.5 $0.00012 $0.00208

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

Security

Grade A, and why

terraform-expert 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.

skills/terraform-expert/SKILL.md · 130 lines

How it starts

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

Terraform Expert

Turns Claude into a senior platform engineer who ships Terraform 1.9+/OpenTofu-compatible HCL with safe state management, contract-driven modules, and plan-gated delivery.

When to Use This Skill

  • Author or refactor resources, data sources, and variables in .tf files
  • Design reusable modules with typed variable/output contracts and version pinning
  • Configure or migrate remote state backends (S3 with native lockfile, HTTP, cloud)
  • Rename/move/import resources without destroying them (moved, import, removed blocks)
  • Convert count to for_each or restructure collections without replacement
  • Keep secrets out of state and plaintext (sensitive/ephemeral values, external stores)
  • Set up CI: fmt/validate/tflint gates, plan-on-PR, apply-on-merge, drift detection

Core Workflow

  1. Analyze - read versions.tf/terraform blocks (required_version, provider constraints), the backend config, existing module structure, and naming/tagging conventions. Run terraform providers and terraform state list (read-only) to understand what exists. Determine whether the project uses Terraform or OpenTofu (tofu CLI, .tofu files) and match it.
  2. Implement - write HCL matching the project's layout. Prefer for_each keyed on stable strings, pin provider versions with ~> constraints, express refactors as moved/import/removed blocks instead of CLI state commands, and mark secret inputs sensitive = true (never literal secrets in .tf or .tfvars).
  3. Verify format - run terraform fmt -check -recursive (or tofu fmt); if it reports files, run terraform fmt -recursive, fix all reported issues, and re-run until clean.
  4. Verify configuration - run terraform validate (after terraform init -backend=false if init hasn't run); fix all reported errors and re-run until clean.
  5. Lint - run tflint --recursive (init rulesets with tflint --init if needed); fix all reported issues and re-run until clean. Do not blanket-disable rules to silence findings.
  6. Plan - mandatory gate before any apply - run terraform plan -out=tfplan and read the full plan output. Confirm every create/update is intended, and treat any destroy or replace (-/+, "must be replaced", "forced replacement") line as a stop: apply is blocked until a human explicitly reviews and approves those lines. If the plan shows unintended destroys/replacements, fix the config (usually a moved block, lifecycle argument, or restored for_each key) and re-plan until the plan contains only intended actions.
  7. Apply and prove it works - only after the plan gate passes, run terraform apply tfplan (the saved plan, never a fresh auto-approved plan). Then verify reality: check outputs, query the created infrastructure, and run terraform plan again - a clean follow-up plan ("No changes") proves convergence; if it still shows diffs, fix the drift or config and re-run until clean.

Read the full file on GitHub · 130 lines

Files

What ships with it

5 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. 10d ago First seen · 130 lines · 118 tokens per session scan A e698aa5f35ff

Subscribe to this mod's changes

terraform-expert is a skill published in the GitHub repository Aarvion-AI/stackwise-skills (5 stars, last pushed today), licensed MIT. It adds 118 tokens to every session and 2,075 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

sre-bot

Answer questions about production health and investigate incidents using live Kubernetes and observability data. Invoke whenever someone asks whether something is broken, slow, erroring, or down; asks what happened during an outage or time window; asks about alerts, logs, metrics, traces, or error rates; asks why a…

curie-eng/curie · 209 tokens

ccc-deploy

CC Commander actual deployment workflow. Detects Vercel, Fly.io, Cloudflare, GitHub Pages, or npm deploy targets, asks for the deploy destination, runs the platform…

KevinZai/commander · 41 tokens

ship

Ship (optional) — deploy the CLOSED build and prove it in prod — deploy via the repo's own path, re-run reconciliation on prod data, confirm the observability signal emits. Skipped if the contract marks deploy out of scope. Trigger after compass:review-build closes, or on "ship it", "deploy", "compass ship".

Rishi4792/compass · 72 tokens

ccc-pro-observability

OpenTelemetry, Honeycomb, Datadog, and structured logging wiring · Pro tier only.

KevinZai/commander · 24 tokens

id-architect

The read-only forward-design ENTRY mode (infra-delivery step 2) — for "the app runs locally, there is NO deployment yet — design where it should run." Design a target infra topology from requirements (archetype × load projection × cost/ops/compliance → selected stack-profile(s)), then run the adversarial DESIGN-AUDIT…

lukasrepublic/agentic-foundry · 186 tokens

id-implement

The infra-delivery change-authoring craft (step 5) — author/edit the IaC for the intended change ON A BRANCH, kept in sync with the frozen intended-change manifest (the tofu-plan checkpoint's operator-frozen intended set in the acceptance-contract). A PROCEDURE skill the generic agent runs: it WRITES files…

lukasrepublic/agentic-foundry · 264 tokens