# Repository Briefing: antonbabenko/terraform-skill
> Source: https://repoforai.com/repo/antonbabenko/terraform-skill (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/antonbabenko/terraform-skill
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Multi-language
- **License**: See repository
- **Engineering Health**: A (79/100 · Maintenance 35/35 · Adoption 18/25 · Releases 20/20 · License 6/20)
- **Latest Release**: v1.18.2 (2026-11-19) — https://github.com/antonbabenko/terraform-skill/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: MCP, CLI
- **Momentum**: 2,520 ★ total (+0 24h / +28 7d) · 235 forks
- **Topics**: `best-practices`, `claude-skills`, `devops`, `infrastructure-as-code`, `modules`, `opentofu`, `terraform`, `testing`, `claude-code`, `agent-skills`
- **When to Use**: Best for: Platform teams that want coding agents to apply consistent Terraform/OpenTofu module, testing, state, and CI practices across repositories, with validation and approvals enforced separately. Skip if: You need a standalone MCP service, registry access alone, or an enforcement engine that can block infrastructure changes.

## Overview
```text
### Architecture & Core Mechanics
Despite the MCP classification, the core artifact is an Agent Skill, not an MCP server. A compatible host discovers SKILL.md under skills/terraform-skill and loads Terraform and OpenTofu guidance for the task. The repository includes Claude and Codex plugin directories and an mcp.json file, but HashiCorp’s Terraform MCP server is a separate, optional registry integration. The skill itself does not replace the Terraform or OpenTofu CLI.

Code navigation has two paths. With terraform-ls, the host can look up definitions and references from a position in a file; resolving across modules and providers requires a local terraform or tofu binary on PATH and an initialized workspace. Without the language server, the skill falls back to rg and file reads. The companion code-intelligence plugin is optional and supplies general navigation conventions rather than Terraform-specific rules.

### Key Capabilities & Differentiators
The strongest material helps agents make concrete engineering choices: when to use Terraform’s native tests versus Go-based Terratest, how to structure and version reusable modules, and how to isolate, migrate, or recover remote state. AWS is the default in examples, with Azure and GCP counterparts for backend, authentication, and resource patterns. State guidance spans S3, Azure, GCS, and Terraform Cloud.

Delivery patterns cover GitHub Actions, GitLab CI, Atlantis, Infracost, and Trivy or Checkov. The guidance distinguishes baseline compatibility from feature gates: Terraform’s native test framework requires 1.6+, the S3 use_lockfile example requires Terraform 1.10+, and write-only arguments require Terraform 1.11+ plus provider support. For OpenTofu, check the equivalent feature and provider support rather than carrying over Terraform version thresholds.

### Trade-offs & Limitations
The skill fills a different role from official Terraform/OpenTofu references, HashiCorp’s Terraform MCP server, and standalone IaC tooling. It brings decision guidance into the agent’s workflow; official references remain the place to verify version-specific behavior, MCP adds registry access, and tools such as TFLint, Trivy, and Checkov produce check results that CI can enforce. Installing the skill does not make an agent-generated plan safe to apply.

The cross-cloud coverage is useful for teams standardizing module and CI conventions, but AWS defaults do not transfer mechanically: identity, backend locking, and provider support still need to be checked per platform. Text lookup keeps installation simple but is less reliable for following references during refactors. Finally, the tree contains LICENSE, but the license terms are unspecified here; verify them before commercial use or redistribution.

### Hardware & Deployment Guide
Start with a skill-capable host and Terraform 1.0+ or OpenTofu 1.6+ for IaC work. The generic installation path is npx skills add https://github.com/antonbabenko/terraform-skill. Claude Code and managed Codex installs use the antonbabenko/agent-plugins marketplace; adding the skill repository as a second marketplace creates a name collision. For manual installation, check how the host discovers nested skills. Cursor, for example, needs a copy of skills/terraform-skill rather than the repository root and may not follow symlinks.

The skill can be installed locally without running a dedicated service. Offline use depends on the host, whether providers and modules are already available, and the operations being run. Release v1.18.0 corrected drift-detection and plugin-cache examples; v1.18.1 corrected examples and claims and added CI linting for documentation snippets; v1.18.2 fixed nested-directory installation for Cursor, Copilot, Kiro, and Antigravity.
```

## Key Capabilities
```text
- Architecture: Agents load a nested SKILL.md; HashiCorp Terraform MCP is optional and serves a separate registry role.
- Code navigation: terraform-ls supports position-based definition and reference lookups; rg plus file reads covers text searches and fallback.
- Testing: Decision guidance distinguishes the Terraform 1.6+ native test framework from Go-based Terratest and separates static, integration, and end-to-end checks.
- State management: Covers S3, Azure, GCS, and Terraform Cloud backends, with guidance on locking, migration, recovery, and team isolation.
- Delivery: Covers GitHub Actions and GitLab CI, with patterns for keyless cloud authentication, plan review, cost estimation, and security scanning.
- Compatibility: Separates baseline CLI requirements from feature-specific gates such as Terraform 1.10+ S3 lockfiles and 1.11+ write-only arguments.
```

## Quick Start / Clone
```bash
npx skills add https://github.com/antonbabenko/terraform-skill
```
