plugins marketplace
← All plugins

terraform-module-generation

v1.0.0

Terraform module generation and refactoring skills for Claude Code, including module design and Terraform Stacks.

Claude Code2 skills1 MCP serverstdio

by HashiCorpMPL-2.0790updated 5 days ago

Source

git clone https://github.com/hashicorp/agent-skills

Clone the source, then follow the repository's marketplace instructions for your runtime. The plugin root is terraform/module-generation/ inside the repository.

Layout

terraform/module-generation/
├── .claude-plugin/plugin.json
├── skills/refactor-module/SKILL.md
├── skills/terraform-stacks/SKILL.md
└── .mcp.json

Skills2

refactor-moduleskills/refactor-module/SKILL.md

Transform monolithic Terraform configurations into reusable, maintainable modules following HashiCorp's module design principles and community best practices.

terraform-stacksskills/terraform-stacks/SKILL.md

Comprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack configurations (.tfcomponent.hcl, .tfdeploy.hcl files), working with stack components and deployments from local modules, public registry, or private registry sources, managing multi-region or multi-environment infrastructure, or troubleshooting Terraform Stacks syntax and structure.

MCP servers1

terraformstdio
command
docker
args
run -i --rm -e TFE_TOKEN -e TFE_ADDRESS hashicorp/terraform-mcp-server
env.TFE_TOKEN
${TFE_TOKEN}
env.TFE_ADDRESS
${TFE_ADDRESS}

Manifests1

terraform/module-generation/.claude-plugin/plugin.json
{
  "name": "terraform-module-generation",
  "version": "1.0.0",
  "description": "Terraform module generation and refactoring skills for Claude Code, including module design and Terraform Stacks.",
  "author": {
    "name": "HashiCorp",
    "url": "https://github.com/hashicorp"
  },
  "homepage": "https://developer.hashicorp.com/terraform/language/modules",
  "repository": "https://github.com/hashicorp/agent-skills",
  "license": "MPL-2.0",
  "keywords": [
    "terraform",
    "modules",
    "infrastructure",
    "iac",
    "stacks",
    "refactoring"
  ],
  "mcpServers": {
    "terraform": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "TFE_TOKEN",
        "-e",
        "TFE_ADDRESS",
        "hashicorp/terraform-mcp-server"
      ],
      "env": {
        "TFE_TOKEN": "${TFE_TOKEN}",
        "TFE_ADDRESS": "${TFE_ADDRESS}"
      }
    }
  }
}