terraform

terraform is a command for Claude Code from nitinjain999/platform-skills. It costs 38 tokens per session (862 once invoked), scanned A, original, Apache-2.0.

A review process for Terraform, a tool that defines infrastructure such as cloud resources in configuration files.

In plain words
What is it for?
Use it to review Terraform modules or plans, check IAM permissions, assess which resources may be replaced or destroyed, and evaluate state and downstream effects.
Why use it?
It catches formatting, validation, linting, security, permission, state, and change-impact problems before infrastructure is applied.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the platform-skills plugin — 1 skill, 43 commands shipped together

Good fit Use it to review Terraform modules or plans, check IAM permissions, assess which resources may be replaced or destroyed, and evaluate state and downstream effects.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/nitinjain999/platform-skills/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.

Clone the repo
git clone --depth 1 https://github.com/nitinjain999/platform-skills

Made for: Claude Code.

Or install platform-skills, the plugin that ships this one along with the rest of its 1 skill, 43 commands.

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/commands/nitinjain999/platform-skills/terraform/github.svg)](https://agentmods.dev/commands/nitinjain999/platform-skills/terraform)
Your own site
<a href="https://agentmods.dev/commands/nitinjain999/platform-skills/terraform"><img src="https://agentmods.dev/badge/commands/nitinjain999/platform-skills/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/commands/nitinjain999/platform-skills/terraform"><img src="https://agentmods.dev/badge/commands/nitinjain999/platform-skills/terraform.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 862 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.00038 $0.00862
Opus 5 $0.00019 $0.00431
Sonnet 5 $0.00008 $0.00172
Haiku 4.5 $0.00004 $0.00086

Measured 10d ago against content hash fd43f54da65c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 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.

commands/terraform.md · 94 lines

How it starts

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


Interactive Wizard (fires when $ARGUMENTS is empty)

When invoked with no arguments, ask before reviewing:

Q1 — What to review?

Paste the Terraform code or plan output, or describe the change
(e.g. "adding an aws_rds_instance", "plan shows 3 resources destroyed", "here's my EKS module"):

Q2 — Focus area? (ask after Q1)

Any specific focus, or full review?
  1. Full review     — validation pipeline + blast radius + IAM + state impact
  2. IAM / security  — least privilege, wildcard actions, sensitive vars
  3. Blast radius    — what gets replaced vs updated, downstream impact
  4. Module design   — variable validation, output types, provider config

Enter 1–4 [default: 1]:

Then proceed with the review framework below.


You are a senior platform engineer reviewing Terraform.

The input is: $ARGUMENTS

1. Validation Pipeline

Walk through each gate in order. For each, state whether it would pass or fail based on the provided code, and why:

  1. terraform fmt -check -recursive — formatting and style

  2. terraform validate — syntax, type correctness, reference integrity (note: use -backend=false in CI)

  3. tflint --recursive — provider-specific rules (invalid instance types, deprecated arguments, missing required_version)

  4. tfsec . --minimum-severity HIGH or checkov -d . --framework terraform --compact — security misconfigurations

    Checkov deep scan: For full static and plan-level Checkov scanning with bootstrap, multi-cloud provider detection, private module auth, pre-commit generation, and fix mode — use /platform-skills:checkov.

    tfsec version note: Flag syntax changed in v1.0+. Check with tfsec --version.

    • < v1.0: use --minimum-severity HIGH
    • >= v1.0: use --severity HIGH
    • Drop-in alternative: trivy config . --severity HIGH

2. Blast Radius

  • What cloud resources does this create, modify, or destroy?
  • Which resources will be replaced (destroyed and recreated) vs updated in-place?
  • What downstream systems depend on these resources?
  • What is the impact if this apply fails halfway?

Read the full file on GitHub · 94 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 · 94 lines · 38 tokens per session scan A fd43f54da65c

Subscribe to this mod's changes

terraform is a command published in the GitHub repository nitinjain999/platform-skills (41 stars, last pushed today), licensed Apache-2.0. It adds 38 tokens to every session and 862 once invoked, about $0.0002 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.