</>MCP Agents Market
Skill

terraform-skill

by antonbabenko2.3kUpdated 2026-07-03

Terraform & OpenTofu Skill for AI Agents - testing, modules, CI/CD, and production patterns

Claude CodeCursorCopilotGemini CLIOpenCodeCodexKiro

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

Testing decision matrices comparing native Terraform tests (1.6+) versus Terratest, with static, integration, and E2E workflow patterns
Module development guidance covering naming conventions, versioning strategies, input/output design, and public versus private module patterns
Remote state management for S3, Azure Storage, GCS, and Terraform Cloud with locking, encryption, multi-team isolation, and migration procedures
CI/CD integration templates for GitHub Actions, GitLab CI, and Atlantis with cost estimation (Infracost), compliance automation, and security scanning
Security and compliance patterns integrating Trivy, Checkov, policy-as-code, secrets management, and state file encryption
Multi-cloud first-class support with AWS, Azure, and GCP equivalents for backends, authentication (OIDC, WIF), and resource patterns
Version-specific features for Terraform 1.10+ native use_lockfile locking and 1.11+ write_only secret handling
Optional terraform-ls language server integration for definition lookups and reference finding with fallback to text search

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 more

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.

Related searches