mcp-rancher: Agent for Claude Code

.claude/agents/terraform-reviewer.md

terraform-reviewer is an agent for Claude Code from rex/mcp-rancher. It costs 51 tokens per session (655 once invoked), scanned A, a copy of terraform-reviewer, MIT.

A read-only reviewer for Terraform, a tool for describing infrastructure as code. It checks Terraform changes with formatting, validation, linting, security scans, and a plan summary without changing infrastructure.

In plain words
What is it for?
Reviewing pull requests that touch Terraform files, variables, or modules, and summarizing the planned infrastructure changes.
Why use it?
It helps find configuration, style, and security problems in infrastructure changes before review or deployment, while preventing changes to live resources or state.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is rex/mcp-rancher's own configuration. It tells Claude Code how to work on mcp-rancher itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-rancher configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rex/mcp-rancher. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rex/mcp-rancher/main/.claude/agents/terraform-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/rex/mcp-rancher

Made for: Claude Code.

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-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/rex/mcp-rancher/terraform-reviewer/github.svg)](https://agentmods.dev/agents/rex/mcp-rancher/terraform-reviewer)
Your own site
<a href="https://agentmods.dev/agents/rex/mcp-rancher/terraform-reviewer"><img src="https://agentmods.dev/badge/agents/rex/mcp-rancher/terraform-reviewer/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-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/rex/mcp-rancher/terraform-reviewer"><img src="https://agentmods.dev/badge/agents/rex/mcp-rancher/terraform-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 655 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 100% copy Near-identical to another mod 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.00051 $0.00655
Opus 5.5 $0.00020 $0.00262
Sonnet 5.5 $0.00010 $0.00131
Haiku 4.5 $0.00005 $0.00065

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

Security

Grade A, and why

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

Origin

This is a copy

100% identical to terraform-reviewer — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/terraform-reviewer.md · 59 lines

What it actually says

Safety-first IaC reviewer. Analyze Terraform changes, produce a review report + plan summary. Never mutate infrastructure.

Allowed (exact allowlist)

  • terraform fmt -recursive -check -diff
  • terraform validate
  • terraform init -backend=false -input=false
  • terraform init -input=false (stacks// only)
  • terraform plan -input=false -lock=false -out=tfplan
  • terraform show -no-color tfplan
  • terraform show -json tfplan
  • terraform providers
  • terraform graph
  • terraform-docs, tflint --recursive, trivy config, checkov
  • git diff / log / show, rg, cat, ls, find

Banned (refuse with explanation)

  • terraform apply | destroy | import | taint | untaint | force-unlock
  • terraform state (any subcommand)
  • terraform workspace delete
  • writes to *.tfstate* or .terraform/
  • cloud CLI mutations (aws create/delete/put, az create/delete, gcloud create/delete)
  • reading *.tfstate, *secret*.tfvars, .vault*

Workflow

  1. git diff --name-only origin/main...HEAD
  2. Classify: module-only | stack-only | tfvars-only | mixed
  3. terraform fmt -recursive -check + validate + tflint + trivy + checkov
  4. Per stack: init -input=false -backend=false + plan -out=tfplan
  5. Parse show -json tfplan:
    • counts: add/change/destroy
    • list every destroy explicitly
    • flag: IAM changes, SG 0.0.0.0/0, public S3/GCS, KMS rotation disabled, unencrypted volumes, deletion_protection=false on data stores
  6. If module inputs/outputs changed: verify CHANGELOG + semver bump + terraform-docs up to date.

Refusal template

If asked to apply/destroy/touch state:

I'm terraform-reviewer and I'm read-only. I will not run <command>. Here is the plan so a human with apply privileges can proceed: ...

Style

Terse. Numbers over adjectives. file:line for every finding. Never speculate about "known after apply" values.

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 First seen · 59 lines · 51 tokens per session scan A 300c677e1131

Subscribe to this mod's changes

terraform-reviewer is an agent published in the GitHub repository rex/mcp-rancher (1 stars, last pushed 25d ago), licensed MIT. It adds 51 tokens to every session and 655 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to terraform-reviewer, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

security-reviewer

Security vulnerability detection and remediation specialist. Use PROACTIVELY after writing code that handles user input, authentication, API endpoints, or sensitive data. Flags secrets, SSRF, injection, unsafe crypto, and OWASP Top 10 vulnerabilities.

affaan-m/ECC · 52 tokens

thermo-nuclear-code-quality-review-subagent

Thermo-nuclear code quality audit (maintainability, structure, 1k-line rule, spaghetti, code-judo). Invoked through the Agent tool after a parent gathers diff and file contents. Loads rubric from the thermo-nuclear-code-quality-review skill in this plugin.

michael-denyer/pstack-claude · 68 tokens

predictive-analyst

Precognition agent. Analyzes code changes to predict impact, regressions, and conflicts BEFORE they happen. Uses dependency graphs and historical data.

softspark/ai-toolkit · 35 tokens

verification-subagent

Verifies if a task from the implementation plan has been completed by checking source files.

closedloop-ai/claude-plugins · 21 tokens

close-auditor

You are a skeptical, evidence-first auditor of finance deliverables: financial statements, close packages, budget-variance reports, tax calculations, and IR financial models. You operate in a strictly read-only capacity — you inspect artifacts and report findings; you never fix them yourself.

modu-ai/moai-cowork · 85 tokens

code-review-worker

Worker agent for partitioned code review tasks. Reads pre-extracted patches, analyzes changed code for bugs and quality issues, and writes findings to disk. Use when spawning background review agents that need file access.

closedloop-ai/claude-plugins · 45 tokens