Skip to main content
plugin CX Codex

terraform · hashicorp — Claude Code plugin: what it does, how to install

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

MPL-2.0 ★ 936 updated 2026-10-05

Install into Claude Code · Plugin marketplace All methods and platforms ↓
/plugin marketplace add hashicorp/agent-skills
/plugin install terraform@hashicorp
Open on GitHub

What terraform 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.

What it helps with

  • 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 for the agent

  • 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

How to install terraform

Plugin marketplace

/plugin marketplace add hashicorp/agent-skills
/plugin install terraform@hashicorp

Step by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own

Questions about terraform

How to install terraform in Claude Code?

Run two commands: /plugin marketplace add hashicorp/agent-skills, then /plugin install terraform@hashicorp.

What does the terraform plugin do?

It gives the agent 16 skills for Terraform workflows: writing configurations, building modules, setting up providers, importing resources, running tests, and enforcing policies.

How many skills are in the terraform plugin?

16 independent skills, each handling a specific task: code style, modules, providers, tests, imports, stacks, and policies. Install the bundle or pick individual skills.

Similar plugins

All plugins for DevOps and infrastructure →

terraform by other authors comes first.

terraform official HashiCorp Connects Terraform tooling. The agent gets access to Terraform commands through an MCP server and automates Infrastructure as Code workflows. ★ 47,914repo stars terraform-skill Anton Babenko Guides Terraform and OpenTofu refactoring, state migrations, and CI workflows. Diagnoses risks like identity churn and blast radius before generating HCL. CX Codex +1 8,200installs terraform-generator akin-ozer The terraform-generator skill writes Terraform configs: resources, modules, providers, variables and outputs. Useful when you want infrastructure as code without hand-writing HCL. CX Codex +1 713installs infisical-terraform Infisical Walks your agent through the Infisical Terraform provider: provider auth, ephemeral secrets that stay out of state, and OIDC for Terraform Cloud. CX Codex +1 586installs terraform-infrastructure manutej terraform-infrastructure guides the AI agent in writing HashiCorp Configuration Language code for AWS, Azure, and GCP, covering reusable modules, variable validation, and multi-environment state. CX Codex +1 439installs alibabacloud-terraform-code-generation aliyun alibabacloud-terraform-code-generation generates validated Terraform HCL for Alibaba Cloud from natural language prompts. Helps set up VPCs, compute instances, and storage without digging through provider docs. CX Codex +1 110installs terraform-validator akin-ozer terraform-validator runs terraform fmt, validate, tflint and checkov over your .tf files, then writes a report with the findings. CX Codex +1 711installs

From the same set22

The whole set →
push-to-registry push-to-registry teaches AI assistants how to register Packer build details in HCP. Useful for tracking machine image lifecycles and linking artifacts directly to Terraform. CX Codex +1 3,200installs windows-builder windows-builder is a Claude Code skill for building Windows images with Packer. It activates for AWS AMIs, Azure images, and VMware templates. CX Codex +1 2,900installs azure-image-builder The azure-image-builder skill guides Packer builds for Azure managed images and Azure Compute Gallery. Use it when preparing custom images for Azure virtual machines. CX Codex +1 2,900installs terraform-policy This skill writes, tests, and converts Terraform Policy files. Use it for .policy.hcl, .policytest.hcl, and Sentinel migration tasks. CX Codex +1 1,800installs provider-configuration provider-configuration guides Terraform provider authentication and credential resolution. Use it when designing a provider schema, wiring Configure(), or investigating missing credentials. CX Codex +1 1,200installs provider-framework-migration provider-framework-migration guides per-resource migrations from Terraform Plugin SDKv2 to the Plugin Framework. Covers mux setup, schema translation, and state compatibility checks. CX Codex +1 1,100installs provider-ephemeral-resources provider-ephemeral-resources walks a provider author through ephemeral resources on the Terraform Plugin Framework, where secrets reach the config and never land in state or plan. CX Codex +1 1,100installs packer This plugin bundles skills for building AWS, Azure, and Windows images and working with the HCP Packer registry. Use it for Packer tasks in Claude Code or Codex. CX Codex ★ 936repo stars

Project sponsors

Companies that keep this analytics open