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
/plugin marketplace add hashicorp/agent-skills
/plugin install terraform@hashicorpWhat 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_idoutput - Import instance
i-abc123into resourceaws_instance.web - Check this configuration against Terraform Style Guide
How to install terraform
Plugin marketplace
/plugin marketplace add hashicorp/agent-skills/plugin install terraform@hashicorpStep 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.