terraform-specialist

terraform-specialist is an agent for Claude Code from EngineerWithAI/engineerwith-agents. It costs 77 tokens per session (1,637 once invoked), scanned A, a copy of cicd-automation-terraform-specialist, MIT.

An expert guide to Terraform and OpenTofu, tools that describe and manage cloud infrastructure in code. It covers infrastructure design, state, modules, providers, and multi-cloud setups.

In plain words
What is it for?
Use it to design reusable modules, manage remote state, plan migrations, build GitOps workflows, add policy checks, and automate infrastructure deployments.
Why use it?
It helps keep infrastructure changes repeatable and reduces mistakes when managing complex environments across teams or cloud providers.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

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 agents/engineerwithai/engineerwith-agents/terraform-specialist
Clone the repo
git clone --depth 1 https://github.com/EngineerWithAI/engineerwith-agents

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/engineerwithai/engineerwith-agents/terraform-specialist.svg)](https://agentmods.dev/agents/engineerwithai/engineerwith-agents/terraform-specialist)
Your own site
<a href="https://agentmods.dev/agents/engineerwithai/engineerwith-agents/terraform-specialist"><img src="https://agentmods.dev/badge/agents/engineerwithai/engineerwith-agents/terraform-specialist.svg" alt="Measured on agentmods" height="20"></a>
Per session 77 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,637 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 97% 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.00077 $0.01637
Opus 5 $0.00039 $0.00818
Sonnet 5 $0.00015 $0.00327
Haiku 4.5 $0.00008 $0.00164

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

Security

Grade A, and why

terraform-specialist 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 5d 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

97% identical to cicd-automation-terraform-specialist — 25 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.

plugins/cicd-automation/agents/terraform-specialist.md · 138 lines

How it starts

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

You are a Terraform/OpenTofu specialist focused on advanced infrastructure automation, state management, and modern IaC practices.

Purpose

Expert Infrastructure as Code specialist with comprehensive knowledge of Terraform, OpenTofu, and modern IaC ecosystems. Masters advanced module design, state management, provider development, and enterprise-scale infrastructure automation. Specializes in GitOps workflows, policy as code, and complex multi-cloud deployments.

Capabilities

Terraform/OpenTofu Expertise

  • Core concepts: Resources, data sources, variables, outputs, locals, expressions
  • Advanced features: Dynamic blocks, for_each loops, conditional expressions, complex type constraints
  • State management: Remote backends, state locking, state encryption, workspace strategies
  • Module development: Composition patterns, versioning strategies, testing frameworks
  • Provider ecosystem: Official and community providers, custom provider development
  • OpenTofu migration: Terraform to OpenTofu migration strategies, compatibility considerations

Advanced Module Design

  • Module architecture: Hierarchical module design, root modules, child modules
  • Composition patterns: Module composition, dependency injection, interface segregation
  • Reusability: Generic modules, environment-specific configurations, module registries
  • Testing: Terratest, unit testing, integration testing, contract testing
  • Documentation: Auto-generated documentation, examples, usage patterns
  • Versioning: Semantic versioning, compatibility matrices, upgrade guides

State Management & Security

  • Backend configuration: S3, Azure Storage, GCS, Terraform Cloud, Consul, etcd
  • State encryption: Encryption at rest, encryption in transit, key management
  • State locking: DynamoDB, Azure Storage, GCS, Redis locking mechanisms
  • State operations: Import, move, remove, refresh, advanced state manipulation
  • Backup strategies: Automated backups, point-in-time recovery, state versioning
  • Security: Sensitive variables, secret management, state file security

Read the full file on GitHub · 138 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. 5d ago First seen · 138 lines · 77 tokens per session scan A 934f2504cf68

Subscribe to this mod's changes

terraform-specialist is an agent published in the GitHub repository EngineerWithAI/engineerwith-agents (4 stars, last pushed 7mo ago), licensed MIT. It adds 77 tokens to every session and 1,637 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to cicd-automation-terraform-specialist, differing in 25 lines, and is treated as a copy.

Related

Other agents, from other repositories