tf-plan-review

tf-plan-review is a skill for Claude Code, Codex from cacheforge-ai/cacheforge-skills. It costs 51 tokens per session (2,704 once invoked), scanned A, original, MIT.

A read-only reviewer for Terraform plans, which describe proposed infrastructure changes, that labels risks such as resource deletion, permission changes, and possible data loss.

In plain words
What is it for?
Running Terraform plan and validation checks, reviewing state drift, detecting destroys and IAM or security-group changes, and assessing the blast radius without applying anything.
Why use it?
It shows what applying a plan could change and how widely those changes may spread before infrastructure is modified.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/cacheforge-ai/cacheforge-skills/tf-plan-review
Any agent
npx skills add cacheforge-ai/cacheforge-skills --skill tf-plan-review
Clone the repo
git clone --depth 1 https://github.com/cacheforge-ai/cacheforge-skills

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 tf-plan-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/cacheforge-ai/cacheforge-skills/tf-plan-review.svg)](https://agentmods.dev/skills/cacheforge-ai/cacheforge-skills/tf-plan-review)
Your own site
<a href="https://agentmods.dev/skills/cacheforge-ai/cacheforge-skills/tf-plan-review"><img src="https://agentmods.dev/badge/skills/cacheforge-ai/cacheforge-skills/tf-plan-review.svg" alt="Measured on agentmods" 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 2,704 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00051 $0.02704
Opus 5 $0.00026 $0.01352
Sonnet 5 $0.00010 $0.00541
Haiku 4.5 $0.00005 $0.00270

Measured 4d ago against content hash 372388d96f55, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

tf-plan-review 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/tf-plan-review.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/tf-plan-review/SKILL.md · 268 lines

How it starts

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

Terraform Plan Analyzer & Risk Assessor

Analyze terraform plan output and produce an AI-powered risk assessment of every infrastructure change — before you press apply.

This skill is STRICTLY READ-ONLY. It runs terraform plan and terraform validate to analyze changes, but it NEVER runs terraform apply, terraform destroy, terraform import, terraform taint, or any command that modifies infrastructure or state.

Activation

This skill activates when the user mentions:

  • "terraform plan", "tf plan", "review plan", "plan review"
  • "is this plan safe", "safe to apply", "risk assessment"
  • "what will be destroyed", "what changes", "terraform changes"
  • "terraform state", "state drift", "drift detection"
  • "terraform validate", "validate config", "tf validate"
  • "IAM changes", "security group changes", "infrastructure changes"
  • "blast radius", "cascade effects", "dependencies"
  • "tofu plan", "opentofu" (same workflow, different binary)

Example Prompts

  1. "Review this terraform plan before I apply"
  2. "What will be destroyed in this plan?"
  3. "Is this plan safe to apply?"
  4. "Show me the state drift"
  5. "What IAM changes are in this plan?"
  6. "Validate my terraform config in ~/infra/prod"
  7. "Run a risk assessment on the terraform plan in /deployments/staging"
  8. "What's the blast radius if I apply this plan?"

Permissions

permissions:
  exec: true          # Required to run terraform/tofu CLI
  read: true          # Read .tf files and plan output
  write: false        # NEVER writes — strictly read-only analysis
  network: true       # terraform plan needs provider API access

Terraform Change Types — What the Agent Must Know

Understanding Terraform change types is critical for accurate risk assessment:

Action Types (from plan JSON)

Action Meaning Risk Profile
create New resource being added Generally safe (unless IAM/security)
update Existing resource modified in-place Moderate (depends on what's changing)
delete Resource being permanently destroyed DANGEROUS — data loss risk
replace (delete + create) Resource must be destroyed and recreated DANGEROUS — downtime + data loss
read Data source being refreshed Safe (read-only)
no-op No changes needed Safe

Read the full file on GitHub · 268 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. 4d ago First seen · 268 lines · 51 tokens per session scan A 372388d96f55

Subscribe to this mod's changes

tf-plan-review is a skill published in the GitHub repository cacheforge-ai/cacheforge-skills (10 stars, last pushed 6mo ago), licensed MIT. It adds 51 tokens to every session and 2,704 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-31.