On June 28, 2026, a "skill" that injects Terraform/OpenTofu best practices into AI coding agents was published on GitHub . It supports multiple tools including Claude Code, Cursor, Copilot, Gemini CLI and Codex, aiming to guide the generation of production-grade infrastructure code.
Infrastructure as Code · Agent Skills
Teaching AI Agents to Write Terraform Like a Senior Architect
A new "Terraform & OpenTofu Skill" equips coding agents like Claude Code and Cursor with battle-tested IaC guardrails — deliberately adding friction to stop hallucinations and best-practice deviations before they hit production.
8+
Agent tools supported — Claude Code, Cursor, Copilot, Gemini CLI & more
3
Clouds with first-class support — AWS / Azure / GCP
5
Core feature areas — testing, modules, state, CI/CD, security
The Five Feature Areas
Testing
Decision matrix: native tests vs Terratest
Modules
Naming conventions & version management
State
Remote backends: S3 / Azure / GCS / TF Cloud
CI/CD
Integrates Infracost · Trivy · Checkov
Security
Policy-as-code & secret management
Friction by Design
It deliberately blocks shortcuts — behaving like a senior reviewer that refuses to merge unsafe code.
× Bans wildcard IAM permissions
× Forbids hardcoded secrets
✓ Enforces correct resource lifecycles
✓ Requires references to latest documentation
Praise
An "opinionated" design that blocks shortcuts and creates senior-reviewer friction — helping DevOps teams prevent technical debt.
Caution
Concerns over increased token usage and possible erroneous AI summaries — pairing with a code-intelligence skill is advised.
An industry-wide shift. Beyond individual maintainers, HashiCorp has announced its own "HashiCorp Agent Skills" with Terraform style guides and refactoring — signaling that structurally giving AI agents IaC expertise is becoming the norm.
Continue reading The rest of this article is for AI News Blitz readers. Choose an option below to keep reading.
Already purchased? Sign in ✓ Signed in — this article isn’t included in your current plan.Unlocking the full article…