Terraform Skill
Terraform Skill gives AI agents reusable guidance for module design, test selection, CI/CD, and state management when writing or reviewing Terraform and OpenTofu infrastructure code.
Project overview
Terraform Skill, maintained by Anton Babenko, organizes infrastructure work into a diagnostic workflow and on-demand reference documents. It asks the agent to establish the runtime, providers, state backend, and environment before choosing module, testing, or migration changes. We reviewed the README, Skill, and release history for this guide; installation and functionality remain untested.
Core capabilities
Diagnose before generating
Establish runtime versions and the state backend, identify risks such as address churn, secret exposure, or blast radius, then provide validation and rollback guidance.
Choose tests by cost and scope
A decision matrix distinguishes native tests, mock providers, and Terratest, including integration tests that may create real infrastructure.
Review state and deployment workflows
Covers environment isolation, remote backends, and locking. Production apply requires a reviewed plan; destroy requires a displayed destruction plan and explicit confirmation.
Installation and usage
Add the author’s marketplace in Claude Code and install terraform-skill. Then ask the agent to review a module or generate a draft with tests, keeping the first task limited to local code.
Let an AI Agent install it
Send this prompt to Codex, Claude Code, or another AI agent that can work with your local environment.
Help me install Terraform Skill from https://github.com/antonbabenko/terraform-skill . Read README, skills/terraform-skill/SKILL.md, and .claude-plugin/plugin.json first. Check Claude Code plugin support and existing marketplaces. Install using /plugin marketplace add antonbabenko/agent-plugins and /plugin install terraform-skill@antonbabenko, avoiding marketplace name conflicts. In a test directory, request an S3 bucket module with tests and check that the Skill loads with version assumptions and a validation plan. Generate drafts only; do not run apply, destroy, or real-cloud tests. Ask before credentials, additional permissions, overwriting files, or other external writes. Report what actually ran and what remains unverified.- Claude Code with plugin support and network access to GitHub.
- For IaC checks, Terraform 1.0+ or OpenTofu 1.6+, with provider versions reviewed.
- A disposable test directory; production cloud credentials are unnecessary for the first verification.
/plugin marketplace add antonbabenko/agent-plugins
/plugin install terraform-skill@antonbabenko- 1Add the author’s marketplace
In Claude Code, run the repository command and verify the source is antonbabenko/agent-plugins. ```text /plugin marketplace add antonbabenko/agent-plugins ``` If a marketplace with this name already exists, inspect its source before registering another.
- 2Install Terraform Skill
Run the installation command, then check availability in a new session. ```text /plugin install terraform-skill@antonbabenko ``` This installs guidance; it does not configure your cloud account or Terraform runtime.
- 3Generate a test module and check boundaries
Use the README example in a test directory. ```text Create a Terraform module with testing for an S3 bucket ``` Add a restriction to generate code without connecting a real cloud account. Review versions, module files, and the testing strategy. Integration tests can create resources. Review plans before production changes and confirm destruction separately.
In a new session, use the README example “Create a Terraform module with testing for an S3 bucket” and add a restriction to generate files only, without apply or real-cloud tests. Check that terraform-skill loads and the response includes version assumptions, test files, and a validation plan. Generated code does not demonstrate a successful cloud deployment.
- Installing the Skill adds guidance. Running apply, destroy, or real-cloud tests can incur costs and change resources, requiring separate review and authorization.
- Use the single antonbabenko/agent-plugins marketplace; adding terraform-skill as another marketplace causes a name conflict.
- Native tests need Terraform 1.6+, mock providers need 1.7+, and use_lockfile examples need 1.10+. Check OpenTofu features against its own releases.
- Project code enters the selected agent context; data handling depends on the host and model configuration. Do not submit real credentials, state, or plans containing secrets.
- sensitive only masks display. A data source reading secret_string can still persist it to state. Use least-privilege access for remote state.
- Only public materials were reviewed; installation and functionality were not tested. The optional Kiro Power mcp.json registers a Docker MCP service and needs separate review.
Use cases
Add module tests
Have the agent choose native tests, mocks, or Terratest for your runtime and cost constraints, then generate reviewable test files.
Review shared state
Check production and test isolation, backend locking, and whether CI applies the reviewed plan artifact.
Assessment
The README, core Skill, and state reference make this a useful candidate for repeatable IaC reviews. Its concrete version requirements, testing choices, and destructive-operation rules support that assessment. We did not install or test it; the 2457 Stars recorded during this review indicate attention only.
Why it may be useful
- A compact core workflow loads deeper references on demand.
- Explicit controls cover plan review, destroy confirmation, and sensitive state.
What to know first
- This listing is based on public documentation and source review; installation and functionality remain untested.
- Features have separate version requirements; Terraform and OpenTofu feature support must be checked independently.
- No standalone SECURITY.md was found; Skill instructions do not replace host permission controls.
README
Terraform Skill
Overview
Terraform Skill gives AI agents reusable guidance for module design, test selection, CI/CD, and state management when writing or reviewing Terraform and OpenTofu infrastructure code. Terraform & OpenTofu Skill for AI Agents - testing, modules, CI/CD, and production patterns
Getting started
- Add the author’s marketplace in Claude Code and install terraform-skill. Then ask the agent to review a module or generate a draft with tests, keeping the first task limited to local code.
- The README documents installation for Claude Code, Cursor, Gemini CLI, and other hosts. This tutorial uses Claude Code.
- Reference documents cover modules, tests, code patterns, and state management, with guidance for AWS, Azure, and GCP.
- In a new session, use the README example “Create a Terraform module with testing for an S3 bucket” and add a restriction to generate files only, without apply or real-cloud tests. Check that terraform-skill loads and the response includes version assumptions, test files, and a validation plan. Generated code does not demonstrate a successful cloud deployment.
Configuration
/plugin marketplace add antonbabenko/agent-plugins
/plugin install terraform-skill@antonbabenkoRead the complete README on GitHub →