Terraform Code Generation
Terraform code generation skills for Claude Code, including HCL generation, style guides, and testing.
- Type
- Plugin
- Repository
- hashicorp/agent-skills
- 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
- 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.
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.
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-skillsInstall 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-builderEvery 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@hashicorpCodex
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.mdGovernance 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
- Terraform Provider Development Terraform provider development skills for Claude Code, including resources, data sources, actions, and acceptance testing. Plugin · hashicorp/agent-skills
- Terraform Module Generation Terraform module generation and refactoring skills for Claude Code, including module design and Terraform Stacks. Plugin · hashicorp/agent-skills
- Aws Ami Builder Build Amazon Machine Images (AMIs) with Packer using the amazon-ebs builder. Use when creating custom AMIs for EC2 instances. Skill · hashicorp/agent-skills
- Packer Builders Packer builder skills for AWS, Azure, and Windows image creation. Plugin · hashicorp/agent-skills
- Packer Hcp HCP Packer registry integration for tracking and managing image metadata. Plugin · hashicorp/agent-skills
- Claude Forge oh-my-zsh for Claude Code — 16 agents, 35 commands, 33 skills, 22 hooks + 9 examples (21 events), 14 rules, 4 MCP (minimal: playwright, context7, jina-reader, [email protected]). Adversarial verification loop (maker≠checker), unattended API-error auto-resume, session relay, and Korean prose quality guardrails. One-line install: curl -fsSL https://raw.githubusercontent.com/… Plugin · sangrokjung/claude-forge
- Rampstack Skills Full RampStack catalog of website-lifecycle skills across research, brand, build, and audit. Plugin · rampstackco/claude-skills
- Business Growth Skills 20 business growth skills: conversion-rate optimization, pricing, referrals, revenue operations, and commercial strategy (deal desk, channel economics, partnerships) Plugin · borghei/Claude-Skills