Terraform & OpenTofu Agent Skill
Best-practice skill for AI agents to write, test, and deploy Terraform/OpenTofu infrastructure.
- Source repo
- antonbabenko/terraform-skill
- Stars
- ★ 2.5k
- Last updated
- 14d ago v1.18.2
- FARS reviewed
- Nov 08, 2026 +3 new
- License
- NOASSERTION
- FA score
- 69/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformChatGPT · Codex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A developer using Claude Code wants to create a Terraform module for an S3 bucket with tests, and the skill guides the agent to include best practices.
- Not a fit if
- Teams not using an Agent Skills-compatible AI coding agent
- Users on Terraform below 1.0 or OpenTofu below 1.6
- Teams needing a fully offline, dependency-free setup
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-19latest release v1.18.2 (2026-11-19)+4.3 ★/day over 7 days
- Source review
- 69/100 · Some gaps
What does this agent do, and when should you use it?
This repository provides a skill for AI coding agents (Claude Code, Cursor, Copilot, Gemini CLI, OpenCode, Codex, Kiro, etc.) to follow best practices when working with Terraform and OpenTofu. It covers testing frameworks (native tests vs Terratest), module development conventions, state management with remote backends, CI/CD integration (GitHub Actions, GitLab CI), security scanning (Trivy, Checkov), and policy-as-code. It includes decision matrices, DO vs DON'T examples, and cheat sheets. The skill is cloud-agnostic, with first-class support for AWS, Azure, and GCP, and provides cross-cloud mappings. It is based on the author's experience with terraform-aws-modules and other community resources. Installation is available via npx or per-host instructions, and it integrates with various agent ecosystems. The skill is Apache 2.0 licensed.
Provides structured guidance to AI agents for Terraform/OpenTofu tasks: 1) Selects appropriate testing approach based on context (native tests or Terratest) and generates test code; 2) Suggests module naming conventions (e.g., terraform-<provider>-<name>), directory structure, and versioning; 3) Recommends remote state backends (S3, Azure Blob, GCS) with locking and encryption; 4) Generates CI/CD workflows (GitHub Actions, GitLab CI) with cost estimation and security scans; 5) Integrates security tools like Trivy and Checkov for compliance scanning; 6) Provides side-by-side examples of good and bad practices. It is implemented as a set of markdown files, primarily SKILL.md, which agents load on demand.
- A developer using Claude Code wants to create a Terraform module for an S3 bucket with tests, and the skill guides the agent to include best practices.
- A platform engineer needs to set up remote state for multiple teams, and the skill advises on backend choice, locking, and state isolation.
- A DevOps engineer wants to add cost estimation to their Terraform CI/CD pipeline, and the skill generates a GitHub Actions workflow with Infracost.
- A team migrating from Terraform to OpenTofu uses the skill to ensure compatibility and follow OpenTofu-specific guidance.
- A multi-cloud team standardizes IaC patterns across AWS, Azure, and GCP, using the skill's cross-cloud mappings.
- A code reviewer uses the skill to audit existing Terraform configurations for compliance with best practices.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
npx skills add https://github.com/antonbabenko/terraform-skill
How do you install or deploy this agent?
For Claude Code: use plugin marketplace: /plugin marketplace add antonbabenko/agent-plugins and /plugin install terraform-skill@antonbabenko. For other agents: run npx skills add https://github.com/antonbabenko/terraform-skill or clone the repo to the appropriate skills directory (e.g., ~/.cursor/skills/).
How do you use this agent?
After installation, ask your agent something like 'Create a Terraform module with tests for an S3 bucket'. The agent will automatically load the skill when working with Terraform/OpenTofu. Ensure you have Terraform 1.0+ or OpenTofu 1.6+ and have run terraform init in your workspace. You can also refer to the README's example prompts for more specific requests.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
FARS trust-control audit
- confirmation before acting
What are this agent's strengths and limitations?
- Based on real-world best practices and community contributions, not just theory.
- Supports multiple cloud providers (AWS, Azure, GCP) with cross-cloud mappings, beneficial for multi-cloud teams.
- Provides concrete testing strategies and decision matrices to choose between native tests and Terratest.
- Includes numerous DO vs DON'T examples for easy understanding.
- Flexible installation across many AI agent platforms.
- Requires an Agent Skills-compatible host; some tools need extra setup (e.g., Codex plugin marketplace).
- Might not keep up with the latest Terraform features; users should verify current versions.
- Recommended companion code-intelligence skill is suggested for full functionality, adding an extra dependency.
- May be overkill for simple tasks; requires the agent to trigger appropriately.
- Some advanced features (like cross-cloud mapping) assume a certain level of multi-cloud knowledge.
How does this agent compare with similar options?
Compared to Terratest, the skill provides guidance on when to use native tests vs Terratest, but it is not a test framework itself. Compared to Hashicorp's official documentation, it is tailored for AI agent interaction.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Terraform & OpenTofu Agent Skill This agent | 69 · Some gaps | Agent plugin / skillFree | ★ 2.5k | 14d ago | — | ChatGPT · Codex · Claude Code |
| Capgo Capacitor Agent Skills | 60 · Some gaps | Agent plugin / skillFreemium | ★ 79 | 21d ago | JavaScript | Codex · Claude Code |
| Bug Hunter | 76 · Good | Agent plugin / skillFree + model costs | ★ 610 | 1mo ago | JavaScript | Codex · Claude Code |
| DeepEval | 69 · Some gaps | CLIFree + model costs | ★ 20k | 1d ago | Python | OpenAI API · Claude API |
How does FollowAgents rate this agent?
Why each dimension lost points
SKILL.md requires reviewed plans, explicit display of destroy targets and confirmation before destroy, and rollback notes. The MCP configuration is optional and has no auto-approvals, showing some control over permissions and external effects. Secret, state, and log protections are described, but the packet does not provide a complete data-flow account or evidence of dependency pinning and security review, so these do not earn full marks. References are named, but publisher identity remains unknown for this assessment, limiting attribution.
The skill asks for runtime, version, provider, backend, and execution context, and for validation commands suited to risk; README and contributor guidance also describe validation and release processes. Scores are limited because the provided SKILL.md is truncated and CLAUDE.md says there is no automated test suite and changes rely on manual queries. Evidence for detailed failure diagnosis and user-facing error messages is thin.
README covers multiple agent hosts and AWS, Azure, and GCP, with scenarios for testing, modules, state, and CI. The SKILL.md routing table maps failure categories to references. Scores are limited because the core description emphasizes Terraform and Claude, AWS remains the default example, and the packet cannot establish equal depth across hosts and clouds. MCP and LSP boundaries are described but not comprehensively.
README gives installation and update instructions for several hosts, example prompts, and requirements. CLAUDE.md describes a single skill entry point, on-demand references, version synchronization, and automated releases, supporting strong information architecture and versioning. Scores are limited by a repeated Kiro installation section and compatibility claims that are not cross-checked in this packet. Maintenance responsibility is mainly inferred from contributor guidance. License metadata is NOASSERTION even though the repository license file and README declare Apache 2.0.
The response contract calls for assumptions, risk categories, remediation and tradeoffs, validation plans, and rollback notes. Example prompts are directly usable for common infrastructure tasks. Scores are limited because the fixed response requirements may add overhead to ordinary tasks, and the packet cannot show actual outcomes or the incremental value over general Terraform guidance.
Version floors, commands, reference paths, and CI release steps make some guidance traceable, and the documentation distinguishes skill content from contributor workflow. Scores are limited because the packet mainly contains README, skill guidance, and contributor instructions, with too little source code or test evidence to independently corroborate technical claims. Some provenance and experience statements remain assertions rather than external verification.
- This review uses only the supplied static material. SKILL.md is truncated; unseen files are treated as unknown, and no execution outcome is inferred.
- Before installation, verify the target host and Terraform/OpenTofu, provider, and MCP image versions; the configuration uses terraform-mcp-server:latest.
- For production applies, state changes, or destroy operations, follow the skill's reviewed-plan, explicit-confirmation, and rollback-evidence requirements.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
[1.18.2](https://github.com/antonbabenko/terraform-skill/compare/v1.18.1...v1.18.2) (2026-11-19) Bug Fixes * install the nested skill dir for Cursor, Copilot, Kiro and Antigravity ([#68](https://github.com/antonbabenko/terraform-skill/issues/68)) ([c666a43](https://github.com/antonbabenko/terraform-skill/commit/c666a4313a6af3a097589bd3f523550661ae0b0b))View on GitHub ↗ -
Release notes excerpt
[1.18.1](https://github.com/antonbabenko/terraform-skill/compare/v1.18.0...v1.18.1) (2026-11-19) Bug Fixes * correct examples and claims from [#64](https://github.com/antonbabenko/terraform-skill/issues/64) and [#65](https://github.com/antonbabenko/terraform-skill/issues/65), lint doc snippets in CI ([#66](https://github.com/antonbabenko/terraform-skill/issues/66)) ([a800dd3](https://github.com/antonbabenko/terraform-skill/commit/a800dd3397c7e0633cf3eb6f136473da120e2213))View on GitHub ↗ -
Release notes excerpt
[1.18.0](https://github.com/antonbabenko/terraform-skill/compare/v1.17.2...v1.18.0) (2026-11-16) Bug Fixes * update CI action versions and fix drift-detection and plugin-cache examples ([#60](https://github.com/antonbabenko/terraform-skill/issues/60)) ([eacc81e](https://github.com/antonbabenko/terraform-skill/commit/eacc81e299d3779e50e187df14e50ddd117e3201)) Features …View on GitHub ↗
FAQ
Is the skill free?
Do I need Terraform pre-installed?
terraform init.Can the skill be used for Google Cloud or Azure?
How do I update the skill?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.