terraform-review-agent: Instructions file for Claude Code

CLAUDE.md

terraform-review-agent CLAUDE.md is an instructions file for Claude Code from infiniumtek/terraform-review-agent. It costs 1,739 tokens per session, scanned A, a copy of terraform-review-agent AGENTS.md, MIT.

A contributor guide for the same Terraform pull-request review workflow, written for Claude Code, an AI coding assistant. It defines the project goal, fixed technology choices, layout, setup, and required environment variables.

In plain words
What is it for?
Use it when Claude Code is developing, testing, configuring, or rerunning the Terraform review workflow.
Why use it?
It keeps automated changes aligned with the project’s approved tools and operating rules instead of relying on guesswork.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is infiniumtek/terraform-review-agent's own configuration. It tells Claude Code how to work on terraform-review-agent 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 terraform-review-agent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to infiniumtek/terraform-review-agent. 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/infiniumtek/terraform-review-agent/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/infiniumtek/terraform-review-agent

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-review-agent CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/infiniumtek/terraform-review-agent/claude-md/github.svg)](https://agentmods.dev/instructions/infiniumtek/terraform-review-agent/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/infiniumtek/terraform-review-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/infiniumtek/terraform-review-agent/claude-md/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-review-agent CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/infiniumtek/terraform-review-agent/claude-md"><img src="https://agentmods.dev/badge/instructions/infiniumtek/terraform-review-agent/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,739 This file is loaded in full into every session.
When invoked 1,739 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% 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.01739 $0.01739
Opus 5 $0.00870 $0.00870
Sonnet 5 $0.00348 $0.00348
Haiku 4.5 $0.00174 $0.00174

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

Security

Grade A, and why

terraform-review-agent CLAUDE.md 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 11d 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

95% identical to terraform-review-agent AGENTS.md — 8 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.md · 176 lines

How it starts

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

CLAUDE.md

Project contract for Claude Code / AI coding assistants. Replace [PLACEHOLDERS] per project; everything else is fixed standard.


1. Project

  • Name: terraform-review-agent
  • Goal: A reusable GitHub Actions workflow that uses a LangGraph multi-agent system to review Terraform pull requests for security, cost, and style issues, posting a single severity-ranked comment.
  • Trigger: GitHub pull_request events (opened, synchronize, reopened, ready_for_review) on Terraform-file changes, via a reusable workflow consumed by other repos. Users: PR authors and reviewers. Secondary: workflow_dispatch for manual re-runs.
  • Framework: LangGraph

2. Stack (fixed — do not change without explicit instruction)

  • Python 3.13 · uv package manager · .venv only (never system Python)
  • Pydantic v2 for all state, tool I/O, and config schemas
  • LangGraph or LangChain
  • SQLite checkpointer (langgraph-checkpoint-sqlite) if keeping state is required
  • LLM providers: OpenAI, Anthropic, Google only — selectable via config
  • Docker (compose) for reproducibility · structlog logging · pytest · ruff · mypy --strict

3. Layout

Standard LangGraph src-layout (https://docs.langchain.com/oss/python/langgraph/application-structure):

[project]/
├── CLAUDE.md, README.md, .env.example, .gitignore, .python-version
├── pyproject.toml, uv.lock, langgraph.json
├── Dockerfile, docker-compose.yml, Makefile
├── src/[package_name]/
│   ├── agent.py              # exposes compiled `agent` for langgraph.json
│   ├── config.py             # Pydantic Settings (env-driven)
│   ├── llm.py                # provider factory (OpenAI/Anthropic/Google)
│   ├── utils/{state,nodes,tools,prompts}.py
│   └── persistence/checkpointer.py
├── tests/{unit,integration}/
├── data/                     # SQLite, fixtures (gitignored if dynamic)
└── scripts/                  # thin wrappers only — no business logic

Read the full file on GitHub · 176 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. 11d ago First seen · 176 lines · 1,739 tokens per session scan A 5de061870216

Subscribe to this mod's changes

terraform-review-agent CLAUDE.md is an instructions file published in the GitHub repository infiniumtek/terraform-review-agent (102 stars, last pushed 3mo ago), licensed MIT. It adds 1,739 tokens to every session, about $0.0087 per session on Opus 5. A static security scan graded it A with 0 findings. It is 95% identical to terraform-review-agent AGENTS.md, differing in 8 lines, and is treated as a copy.

Related

Other instructions, from other repositories