terraform-workflows

terraform-workflows is a skill for Claude Code from Goodsmileduck/claude-registry. It costs 60 tokens per session (1,552 once invoked), scanned A, original, MIT.

A workflow for reviewing Terraform and OpenTofu infrastructure changes, checking drift, editing state, upgrading providers, and diagnosing Terragrunt problems. Terraform and OpenTofu are tools that manage cloud infrastructure from configuration files; Terragrunt helps organize their use.

In plain words
What is it for?
Reviewing plans, detecting drift, moving or removing state entries, importing resources, upgrading providers, and tracing Terragrunt cache errors across cloud providers.
Why use it?
It adds checks for the target cloud account before changes are planned or applied. This helps prevent misleading results or changes made in the wrong environment.

Skill for Claude Code

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

Part of the iac-skills plugin — 3 skills shipped together

Good fit Reviewing plans, detecting drift, moving or removing state entries, importing resources, upgrading providers, and tracing Terragrunt cache errors across cloud providers.

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

Made for: Claude Code.

Or install iac-skills, the plugin that ships this one along with the rest of its 3 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-workflows

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/goodsmileduck/claude-registry/terraform-workflows"><img src="https://agentmods.dev/badge/skills/goodsmileduck/claude-registry/terraform-workflows.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,552 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00060 $0.01552
Opus 5 $0.00030 $0.00776
Sonnet 5 $0.00012 $0.00310
Haiku 4.5 $0.00006 $0.00155

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

Security

Grade A, and why

terraform-workflows scanned grade A with 1 finding 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 9d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -sf -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
plugins/iac-skills/skills/terraform-workflows/SKILL.md · 107 lines

How it starts

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

Terraform / OpenTofu / Terragrunt

This skill is the entry point for every Terraform-touching task. Cross-cutting rules below apply to all sub-procedures; the router at the bottom points to the right references/ file for the specific job.

Cross-cutting rules (apply to every Terraform operation)

These supersede any habit, default, or shortcut. If a sub-procedure in references/ ever appears to contradict one of these, the rule here wins.

1. Verify provider identity before any plan or mutation

Run this before generating any plan or executing any apply/destroy/import. A plan or apply against the wrong account is worse than no plan — it produces misleading diffs and risks destructive cross-environment writes.

# Identify providers in scope
terraform providers | grep -E 'aws|google|digitalocean|azurerm|cloudflare'
# Terragrunt: prepend `terragrunt`

# Verify identity for each provider detected
aws sts get-caller-identity              # AWS — Account, Arn
gcloud config list account project       # GCP — account + active project
doctl account get                        # DigitalOcean — email + team
az account show                          # Azure — subscription + tenant

# Cloudflare uses a scoped token, not caller identity:
curl -sf -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
  https://api.cloudflare.com/client/v4/user/tokens/verify | jq .result.status

If any provider in scope fails its identity check, or the result doesn't match the expected environment (account/project/team), STOP and surface the mismatch. Do not generate a plan; the cached state will produce a misleading diff.

2. Plan-then-apply only — never -auto-approve on shared state

Hard rules:

  • Never invoke terraform apply directly. Always terraform plan -out=<file> → review → terraform apply <file>.
  • Never combine -auto-approve with apply on shared dev, stg, or prod state. The only acceptable use is ephemeral throwaway state (your own laptop sandbox).
  • Print the blast-radius summary BEFORE any analysis: Plan summary: N to add, M to change, K to destroy.
  • If K > 0 (any destroys) outside ephemeral dev, surface the count first and require explicit "go ahead with K destroys" before continuing.

Read the full file on GitHub · 107 lines

Files

What ships with it

6 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. 9d ago First seen · 107 lines · 60 tokens per session scan A 600411ebe54e

Subscribe to this mod's changes

terraform-workflows is a skill published in the GitHub repository Goodsmileduck/claude-registry (1 stars, last pushed 1mo ago), licensed MIT. It adds 60 tokens to every session and 1,552 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.