# terraform

Plugin for Terraform workflows: configurations, modules, providers, tests, imports, stacks, and policies.

- plugin · `type=plugin` · Claude Code, Codex · ★ 936 repo stars
- Author: HashiCorp
- License: MPL-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/hashicorp/agent-skills/tree/HEAD/plugins/terraform
- Updated: 2026-10-05
- Security check: automated, 2026-11-16 (text and 3 script files) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/plugins/hashicorp-terraform

## What it does

The bundle includes 16 independent skills covering different tasks: writing HCL configurations following style guidelines, building modules, setting up providers, running tests, importing resources, managing stacks, and enforcing policies. Each skill installs separately or as a bundle via the marketplace.

Works in Claude Code and Codex. Once installed, the agent helps generate `resource`, `data`, and `variable` blocks, refactor module structures, and troubleshoot provider conflicts. Commands that apply changes require Terraform CLI in `PATH`.

The repository is shared across all HashiCorp plugins; `.claude-plugin` and `.codex-plugin` manifests point to the same `skills/` directory and are maintained by hand.

## Requirements
- Works with: Terraform

## Install

### Claude Code (native platform)

**Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add hashicorp/agent-skills
```
In the agent chat (not a shell):
```text
/plugin install terraform@hashicorp
```

## When to use it
- write Terraform configuration following style standards
- build a module with variables and outputs
- configure a provider and check version compatibility
- import existing resources into state
- run configuration tests

## Example prompts
- Create a VPC module with three subnets and a `vpc_id` output
- Import instance `i-abc123` into resource `aws_instance.web`
- Check this configuration against Terraform Style Guide

## Similar
- [terraform-skill](https://affpapa.org/en/nevibecode/skills/terraform-skill.md) — skill · 8200 installs
- [terraform-generator](https://affpapa.org/en/nevibecode/skills/terraform-generator.md) — skill · 713 installs
- [infisical-terraform](https://affpapa.org/en/nevibecode/skills/infisical-terraform.md) — skill · 586 installs
- [terraform-infrastructure](https://affpapa.org/en/nevibecode/skills/manutej-terraform-infrastructure.md) — skill · 439 installs
- [alibabacloud-terraform-code-generation](https://affpapa.org/en/nevibecode/skills/alibabacloud-terraform-code-generation.md) — skill · 110 installs
- [terraform-validator](https://affpapa.org/en/nevibecode/skills/terraform-validator.md) — skill · 711 installs

## Other versions with the same name
- [terraform · anthropics](https://affpapa.org/en/nevibecode/plugins/terraform.md) — ★ 47914 repo stars

From the same set: [hashicorp/agent-skills](https://affpapa.org/en/nevibecode/by/hashicorp/agent-skills.md) — 22 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
