terraform-skill
Terraform & OpenTofu Skill for AI Agents - testing, modules, CI/CD, and production patterns
The Terraform & OpenTofu Skill is an AI agent plugin that teaches coding assistants infrastructure-as-code best practices for Terraform 1.0+ and OpenTofu 1.6+. It provides decision frameworks for testing strategies, module development patterns, state management, CI/CD workflows, and security compliance across AWS, Azure, and GCP. The skill works with Claude Code, Cursor, Copilot, Gemini CLI, OpenCode, Codex, Kiro, and other Agent Skills-compatible hosts, guiding agents to structure production-ready infrastructure code with native tests, remote state backends, policy-as-code, and cloud-agnostic patterns.
Key Features
Use Cases
- 01Creating production-ready Terraform modules with native test coverage for AWS VPCs, Azure VNets, or GCP networks
- 02Configuring secure remote state backends with S3, Azure Storage, or GCS including encryption, versioning, and native locking
- 03Generating GitHub Actions or GitLab CI workflows with Terraform plan/apply, cost estimation, and security scanning automation
- 04Reviewing existing Terraform configurations against best practices for naming, structure, state management, and security
- 05Designing multi-environment (prod/staging) infrastructure compositions with OIDC or Workload Identity Federation for keyless authentication
- 06Porting infrastructure patterns across AWS, Azure, and GCP with equivalent resource mappings and backend configurations
Related Skills
View moresuperpowers
An agentic skills framework & software development methodology that works.
skills
Skills for Real Engineers. Straight from my .agents directory.
skills
Public repository for Agent Skills
ponytail
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
terraform-skill — FAQ
What is the Terraform & OpenTofu Skill for AI agents?+
It's an Agent Skill plugin that embeds Terraform and OpenTofu best practices into AI coding assistants like Claude Code, Cursor, and Copilot. The skill guides agents to write production infrastructure code, choose testing frameworks, configure remote state, and set up CI/CD workflows across AWS, Azure, and GCP.
How do I install the Terraform skill in Claude Code?+
Run '/plugin marketplace add antonbabenko/agent-plugins' then '/plugin install terraform-skill@antonbabenko' in Claude Code. Do not add 'antonbabenko/terraform-skill' as a separate marketplace because it clashes by name with agent-plugins.
Which AI coding agents work with this skill?+
The skill works with Claude Code, Cursor, Copilot, Gemini CLI, OpenCode, Codex, Kiro, Autohand Code, and any Agent Skills-compatible host. Installation methods vary: Claude Code uses the '/plugin' command, while others typically clone the repo into a skills directory.
Do I need API keys or Terraform installed to use this skill?+
The skill itself requires no API keys; it's guidance content that the agent reads. You need Terraform 1.0+ or OpenTofu 1.6+ installed to run the infrastructure code the agent generates. The optional terraform-ls language server needs a local terraform binary on PATH and 'terraform init' run in your workspace.
Is the Terraform skill free to use?+
Yes, the skill is open source under Apache 2.0 license and free to use. It's a standalone guidance plugin with no cloud service dependencies or usage fees.
What's the difference between installing terraform-skill alone versus with code-intelligence?+
The skill works standalone, providing Terraform-specific patterns. Installing the companion code-intelligence plugin adds general language-server navigation rules (when to use LSP versus text search, how to anchor lookups), reducing token usage and improving accuracy across all language skills without duplicating those rules in each one.
How do I install terraform-skill?+
Open the source repository on GitHub and follow its README. terraform-skill is a skill — MCP Agents Market links you directly to the official repo.
Is terraform-skill free?+
terraform-skill is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.