Sponsor Suno AI Music arrow_forward
Plugin

Terraform Code Generation

Terraform code generation skills for Claude Code, including HCL generation, style guides, and testing.

Type
Plugin
GitHub stars
875
License
MPL-2.0
Repo last updated
Sep 24, 2026
Source file
README.md

What Terraform Code Generation is

Terraform Code Generation is a plugin published in the hashicorp/agent-skills repository on GitHub, which has about 875 stars. The repository describes itself as: “A collection of Agent skills and Claude Code plugins for HashiCorp products.”

A plugin is a package that bundles skills, slash commands, subagents, hooks, and MCP connectors so they install together. Plugins are plain files with a manifest at .claude-plugin/plugin.json, and they work in both Claude Code and Claude Cowork.

Installing Terraform Code Generation adds everything it ships in one step. Connectors inside a plugin still need to be connected separately, and hooks and subagents only run in Cowork and Claude Code, not in regular chat.

How to install Terraform Code Generation

Claude Code

  1. Add the repository as a plugin marketplace: claude plugin marketplace add hashicorp/agent-skills
  2. Install the plugin: claude plugin install terraform-code-generation@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json.
  3. Restart the session if the new skills or commands don't appear straight away.

Claude Cowork

  1. Open Customize → Plugins and choose Add marketplace.
  2. Enter hashicorp/agent-skills (the owner/repo shorthand works for GitHub).
  3. Find Terraform Code Generation in the list, click Install, then connect any connectors it needs from its Connectors tab.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from README.md, shared under the repository's MPL-2.0 license. Read the full file on GitHub.

HashiCorp Agent Skills for Terraform and Packer.

See SKILLS.md for the complete catalog and lifecycle status of each Skill.

> Legal note: Your use of a third-party MCP client or LLM is subject solely > to that provider's terms. IBM is not responsible for the performance of those > third-party tools and may be unable to support issues caused by them.

Table of Contents

  • Recent Updates
  • Install an Individual Skill
  • Install a Product Plugin Bundle
  • Repository Structure
  • Governance and Support
  • License

Recent Updates

This repository now organizes its 20 Skills under two product plugin roots: plugins/terraform/skills/ and plugins/packer/skills/.

Migration from Legacy Plugin IDs and Paths

The product plugin bundles replace these legacy plugin IDs: terraform-code-generation, terraform-module-generation, terraform-provider-development, terraform-policy-code, packer-builders, and packer-hcp.

Replace any legacy plugin installation with terraform@hashicorp or packer@hashicorp. Replace individual paths under terraform/ /skills or packer/ /skills with plugins/ /skills/ .

Install an Individual Skill

Install Agent Skills in GitHub Copilot, Claude Code, Opencode, Cursor, IBM Bob, and more.

List the repository's Skills:

npx skills add hashicorp/agent-skills

Install one Skill from its path:

npx skills add hashicorp/agent-skills/plugins/terraform/skills/terraform-style-guide
npx skills add hashicorp/agent-skills/plugins/packer/skills/aws-ami-builder

Every supported path appears in SKILLS.md.

Install a Product Plugin Bundle

Claude Code

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

Codex

Add this repository's .agents/plugins/marketplace.json as a repository marketplace, then install the terraform or packer plugin in Codex. Both marketplaces expose the same product bundles and Skill directories.

Repository Structure

agent-skills/
├── .agents/plugins/marketplace.json
├── .claude-plugin/marketplace.json
├── plugins/
│   ├── terraform/
│   │   ├── .claude-plugin/plugin.json
│   │   ├── .codex-plugin/plugin.json
│   │   └── skills/
│   └── packer/
│       ├── .claude-plugin/plugin.json
│       ├── .codex-plugin/plugin.json
│       └── skills/
└── SKILLS.md

Governance and Support

  • CONTRIBUTING.md for contribution guidance. Contributions are restricted to HashiCorp-internal contributors until further notice.
  • SECURITY.md for instructions on reporting security or data sensitivity issues related to this repository's Agent Skills.
  • SUPPORT.md defines repository support boundaries.
  • SUPPORTED_MODELS.md defines the current Anthropic and OpenAI supported model matrix.
  • CODEOWNERS for canonical Skill ownership and review-routing source.

License

MPL-2.0

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Terraform Code Generation?

Terraform Code Generation is a plugin for Claude Code and Claude Cowork from the hashicorp/agent-skills repository on GitHub. Terraform code generation skills for Claude Code, including HCL generation, style guides, and testing.

How do I install Terraform Code Generation in Claude Code?

Add the repository as a plugin marketplace: claude plugin marketplace add hashicorp/agent-skills Install the plugin: claude plugin install terraform-code-generation@<marketplace-name>, using the marketplace name from the repository's .claude-plugin/marketplace.json. Restart the session if the new skills or commands don't appear straight away.

Can I use Terraform Code Generation in Claude Cowork?

Open Customize → Plugins and choose Add marketplace. Enter hashicorp/agent-skills (the owner/repo shorthand works for GitHub). Find Terraform Code Generation in the list, click Install, then connect any connectors it needs from its Connectors tab.

Is Terraform Code Generation safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MPL-2.0. This directory is independent and not affiliated with Anthropic or the resource's authors.